FAQ
Hi,

For the following implementations:

1) storing boolean strings in fields X and Y separately
2) storing the same info in a field XY as 3 enums: X, Y, B, N meaning only X
is True, only Y is True, both are True or both are False

Is there significant performance gain when we substitute "X:T OR Y:T" by
"XY:B", while significant loss in "X:T" by "XY:X OR XY:B"? Or are they
negligible?

Thanks!

Tea


---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Search Discussions

  • Doug Cutting at Oct 7, 2004 at 7:06 pm

    Tea Yu wrote:
    For the following implementations:

    1) storing boolean strings in fields X and Y separately
    2) storing the same info in a field XY as 3 enums: X, Y, B, N meaning only X
    is True, only Y is True, both are True or both are False

    Is there significant performance gain when we substitute "X:T OR Y:T" by
    "XY:B", while significant loss in "X:T" by "XY:X OR XY:B"? Or are they
    negligible?
    As with most performance questions, it's best to try both and measure!
    It depends on the size of your index, the relative frequencies of X and
    Y, etc.

    Doug

    ---------------------------------------------------------------------
    To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
    For additional commands, e-mail: lucene-user-help@jakarta.apache.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupjava-user @
categorieslucene
postedOct 4, '04 at 1:46a
activeOct 7, '04 at 7:06p
posts2
users2
websitelucene.apache.org

2 users in discussion

Doug Cutting: 1 post Tea Yu: 1 post

People

Translate

site design / logo © 2022 Grokbase