lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: How to read values of a field efficiently
Date Tue, 24 Jul 2007 06:32:06 GMT

: This part (reading field values) takes fairly long compared
: to the other fields (that use getFacetTermEnumCounts or
: getFieldCacheCounts as implemented in SimpleFacets), so that
: I asume that there is potential for optimization.
:
: Fairly long: getFieldCacheCounts for the cat field takes ~70 ms
: for the second request, while reading prices takes ~600 ms.

using the ValueSource from the field should be roughly as fast as using
the FieldCache since it's backed by the fieldcache ... allthough a few
things jump out at me as kind of odd...

1) why ask for hte float value and then cast it to int?
2) what is a TIntArrayList and what kind of overhead does calling add have?
3) if getFieldCacheCounts is fast enough, why not based your code on that
   instead of getting the ValueSource?





-Hoss


Mime
View raw message