Issue Details (XML | Word | Printable)

Key: LUCENE-509
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Won't Fix
Priority: Major Major
Assignee: Otis Gospodnetic
Reporter: Steven Tamm
Votes: 1
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Lucene - Java

Performance optimization when retrieving a single field from a document

Created: 03/Mar/06 02:22 AM   Updated: 14/Oct/06 02:45 AM
Return to search
Component/s: Index
Affects Version/s: 1.9, 2.0.0
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works DocField.patch 2006-03-03 02:23 AM Steven Tamm 7 kB
Text File Licensed for inclusion in ASF works DocField_2.patch 2006-03-03 04:19 AM Steven Tamm 9 kB
Text File Licensed for inclusion in ASF works DocField_3.patch 2006-03-03 05:34 AM Steven Tamm 13 kB
Text File Licensed for inclusion in ASF works DocField_4.patch 2006-03-03 10:55 AM Steven Tamm 17 kB
Text File Licensed for inclusion in ASF works DocField_4b.patch 2006-03-03 11:01 AM Steven Tamm 18 kB
Issue Links:
Reference
 

Resolution Date: 13/Aug/06 06:15 AM


 Description  « Hide
If you just want to retrieve a single field from a Document, the only way to do it is to retrieve all the fields from the Document and then search it. This patch is an optimization that allows you retrieve a specific field from a document without instantiating a lot of field and string objects. This reduces our memory consumption on a per query basis by around around 20% when a lot of documents are returned.

I've added a lot of comments saying you should only call it if you only ever need one field. There's also a unit test.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.