[
https://issues.apache.org/jira/browse/LUCENE-10280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Feng Guo updated LUCENE-10280:
------------------------------
Description:
For scenes that index is sorted on the field, blocks with continuous ids can be
a common situation. In this case we can handle this situation more
efficiently(only need to write the first id of this block).
We can just check
{code:java}
stritylysorted && (docIds[start+count-1] - docids[start] + 1) == count{code}
to see if ids are continuous, the check is very fast :)
was:
For scenes that index is sorted on the field, blocks with continuous ids can be
a common situation. In this case we can handle this situation more
efficiently(only need to write the first id of this block).
We just need to check
{code:java}
stritylysorted && (docIds[start+count-1] - docids[start] + 1) == count{code}
to check if ids are continuous, the check is very fast :)
> Store BKD blocks with continuous ids more efficiently
> -----------------------------------------------------
>
> Key: LUCENE-10280
> URL: https://issues.apache.org/jira/browse/LUCENE-10280
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/codecs
> Reporter: Feng Guo
> Priority: Minor
> Time Spent: 10m
> Remaining Estimate: 0h
>
> For scenes that index is sorted on the field, blocks with continuous ids can
> be a common situation. In this case we can handle this situation more
> efficiently(only need to write the first id of this block).
> We can just check
> {code:java}
> stritylysorted && (docIds[start+count-1] - docids[start] + 1) == count{code}
> to see if ids are continuous, the check is very fast :)
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]