Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
External scoring eats much memory, depending on the number of documents in the index. The ExternalFileField (used for external scoring) uses FileFloatSource, where one FileFloatSource is created per external scoring file. FileFloatSource creates a float array with the size of the number of docs (this is also done if the file to load is not found). If there are much less entries in the scoring file than there are number of docs in total the big float array wastes much memory.
This could be optimized by using a map of doc -> score, so that the map contains as many entries as there are scoring entries in the external file, but not more.
Attachments
Attachments
Issue Links
- relates to
-
SOLR-10550 Improve FileFloatSource eviction // reduce FileFloatSource memory footprint
- Open