lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otis Gospodnetic (JIRA)" <>
Subject [jira] Resolved: (LUCENE-509) Performance optimization when retrieving a single field from a document
Date Sun, 13 Aug 2006 06:17:16 GMT
     [ ]

Otis Gospodnetic resolved LUCENE-509.

    Resolution: Won't Fix

It looks like this was superseded by LUCENE-545, whose patches have been applied to the trunk.

> Performance optimization when retrieving a single field from a document
> -----------------------------------------------------------------------
>                 Key: LUCENE-509
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Improvement
>          Components: Index
>    Affects Versions: 1.9, 2.0.0
>            Reporter: Steven Tamm
>         Assigned To: Otis Gospodnetic
>         Attachments: DocField.patch, DocField_2.patch, DocField_3.patch, DocField_4.patch,
> 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.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message