Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Later
-
None
-
None
-
None
Description
When using indexing aggregates, it can become very expensive when for example binary data like pdfs are involved. Within a single MultiIndex transaction, we should be save to reuse the created Lucene Document's. This is useful for aggregates, as this might currently involve reindexing the same node multiple times now in a single transaction.
In the mail discussion below I describe to use WeakReferences, though I think SoftReferences are in this case better suited (we do not want the created lucene docs to be gc-ed, unless memory gets low...)
Also see http://www.nabble.com/Improve-indexing-performance-wrt-Aggregates-td25471828.html