Changeset 295

Show
Ignore:
Timestamp:
04/29/08 06:09:36 (7 months ago)
Author:
eric.dumin..@gmail.com
Message:

Configuration files for performance tweaks

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/log_indexing_time_with_ferret/History.txt

    r284 r295  
    11== 0.1.7  2008-04- 
    22 
    3 * 4 minor enhancements: 
     3* 5 minor enhancements: 
    44  * added cache highlighting à la Google 
    55  * rake index:update implemented as described in Ferret book by David Balmain 
    6   * rake index:prune removes missing files from indexer. 
     6  * rake index:prune removes missing files from indexer 
    77  * possibility to sort results by relevance / by date 
     8  * one configuration file for performance tweaks 
    89 
    910== 0.1.6  2008-04-25 
  • branches/log_indexing_time_with_ferret/Manifest.txt

    r293 r295  
    4444lib/picolena/templates/config/initializers/005_load_custom_title_and_names_and_links.rb 
    4545lib/picolena/templates/config/initializers/006_load_icons.rb 
     46lib/picolena/templates/config/initializers/007_load_performance_tweaks.rb 
    4647lib/picolena/templates/config/routes.rb 
    4748lib/picolena/templates/lang/ui/de.yml 
  • branches/log_indexing_time_with_ferret/config/files_to_clean

    r166 r295  
    66lib/picolena/templates/config/custom/title_and_names_and_links.yml 
    77lib/picolena/templates/config/custom/icons_and_filetypes.yml 
     8lib/picolena/templates/config/custom/indexing_performance.yml 
    89lib/picolena/templates/log 
    910lib/picolena/templates/spec/test_dirs/indexed/others/bÀñÌßé.txt 
  • branches/log_indexing_time_with_ferret/lib/picolena/config/indexing_performance.yml

    r293 r295  
     1# You probably shouldn't change those parameters 
     2# if you don't know what they represent. 
     3# For more information, refer to: 
     4#  http://ferret.davebalmain.com/api/classes/Ferret/Index/IndexWriter.html 
     5 
     6# Allowed memory for indexing process. 
     7# 128MB by default, or 2^27 
     8max_buffer_memory: 134_217_728 
     9 
     10# High value => fast indexing, slow searching 
     11# Low  value => slow indexing, fast searching 
     12# 10 by default 
     13merge_factor: 10 
     14 
     15# Maximum number of extracted terms for any given document 
     16max_field_length: 10_000 
  • branches/log_indexing_time_with_ferret/lib/picolena/templates/app/models/indexer.rb

    r286 r295  
    130130        # Great way to ensure that no file is indexed twice! 
    131131        :key         => :probably_unique_id 
    132         } 
     132        }.merge Picolena::IndexingConfiguration 
    133133    end 
    134134 
  • branches/log_indexing_time_with_ferret/lib/picolena/templates/spec/models/indexer_spec.rb

    r148 r295  
    22 
    33describe Indexer do 
    4   before(:each) do 
    5     @indexer = Indexer.new 
     4  it "should have at least 32MB memory allocated" do 
     5    Indexer.index.writer.max_buffer_memory.should > 2**25-1 
    66  end 
    77end