<< | Index | >>
Goal/Estimate/Evaluation:
Segmentation fault (while init_products (creating a fulltext index table for products)
migel> init_products -> connection closed
/usr/lib64/ruby/site_ruby/1.8/odba/cache_entry.rb:60: [BUG] Segmentation fault ruby 1.8.6 (2009-06-08) [x86_64-linux] Abgebrochen
Note
Experiment
def init_products(estimate = false) pharmacode_list = ODBA.cache.index_keys('migel_model_product_pharmacode') total = pharmacode_list.length start_time = Time.now #ODBA.cache.index_keys('migel_model_product_pharmacode').each do |pharmacode| pharmacode_list.each_with_index do |pharmacode, i| #add_product Migel::Model::Product.find_by_pharmacode(pharmacode) products.store(pharmacode, Migel::Model::Product.find_by_pharmacode(pharmacode)) puts estimate_time(start_time, total, i+1) if estimate end products.odba_store end
Point
Experiment
migel> clear_products -> migel> init_products true -> Hash
Log
.. 30741 / 30742 Estimate total: 0.60 [m] It will be done in: 0.00 [m] 30742 / 30742 Estimate total: 0.60 [m] It will be done in: -0.00 [m]
Note
Next (build fulltext index tables up)
migel> rebuild_fulltext_index_tables -> Array
Run
Result
Note
Experiment
def limitation_text(update = false) if update @limitation_text ||= Migel::Util::Multilingual.new else if @limitation_text ODBA::DRbWrapper.new(@limitation_text) end end end def en name.de end def de name.de end def fr name.fr end
Note
Result
Note
migel server side
pass
because it is similar to the multilingual.rb of de.oddb.org
oddb side (client side)