Note that there are some explanatory texts on larger screens.

plurals
  1. POTuning infinispan/hibernate search indexing
    primarykey
    data
    text
    <p>Using</p> <p>Infinispan 6.0.0 Hibernate Search 4.4.0</p> <p>But indexing seems extremely slow.</p> <p>Here are the jmx stats from the DefaultCacheManager...</p> <p>averageReadTime: 0 averageWriteTime: 9903</p> <p>I tried max_merge_docs and merge_factor and ram_buffer as indicated in the docs here: <a href="http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html/search-configuration.html#d0e2031" rel="nofollow">http://docs.jboss.org/hibernate/search/4.4/reference/en-US/html/search-configuration.html#d0e2031</a></p> <p>But that seems to do nothing. The only thing that sort of works better is the number of shards...</p> <pre><code>&lt;namedCache name="myCache"&gt; &lt;clustering mode="distribution"&gt; &lt;async/&gt; &lt;hash numOwners="1"/&gt; &lt;/clustering&gt; &lt;indexing enabled="true" indexLocalOnly="true"&gt; &lt;properties&gt; &lt;property name="default.directory_provider" value="ram" /&gt; &lt;property name="default.indexwriter.merge_factor" value="30000" /&gt; &lt;property name="default.indexwriter.ram_buffer_size" value="1024" /&gt; &lt;!--&lt;property name="default.sharding_strategy.nbr_of_shards" value="4" /&gt; --&gt; &lt;/properties&gt; &lt;/indexing&gt; &lt;/namedCache&gt; </code></pre> <p>The values above are the last ones I tried. I tried different ones to no avail. Only nbr_of_shards seems to speed things up just a tad.</p> <p>The model...</p> <pre><code>@Indexed @ProvidedId public class MyModel implements Serializable { @DocumentId Integer id; Integer prop1; Integer prop2; @Field(analyze = Analyze.NO) String prop3; @Field(analyze = Analyze.NO) String prop4; @Field(analyze = Analyze.NO) String prop5; @Field(analyze = Analyze.NO) String prop6; @Field(analyze = Analyze.NO) String prop7; @Field(analyze = Analyze.NO) String prop9; @Field(analyze = Analyze.NO) Long prop10; } </code></pre> <p>And in my servlet doPost()</p> <pre><code>MyModel model = new MyModel(); // Get POST params here and set the model properties... cache.put(id, model); out.println("Added!"); </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload