Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.4, 6.4.2, 6.6.2
-
None
Description
We observe that solr query time increases significantly with the number of rows requested, even all we retrieve for each document is just fl=id,score. Debugged a bit and see that most of the increased time was spent in BinaryResponseWriter, converting lucene document into SolrDocument. Inside convertLuceneDocToSolrDoc():
I am a bit puzzled why we need to iterate through all the fields in the document. Why can’t we just iterate through the requested field list?
e.g. when pass in the field list as
sdoc = convertLuceneDocToSolrDoc(doc, rctx.getSearcher().getSchema(), fnames)
and just iterate through fnames, there is a significant performance boost in our case.
Attachments
Attachments
Issue Links
- incorporates
-
SOLR-12107 [child] doc transformer used w/o uniqueKey in 'fl' fails with NPE unless documentCache is enabled
- Closed
-
SOLR-12108 raw transformers ([json] and [xml]) drop the field value if wt is not a match and documentCache is not enabled
- Closed