You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Feng Guo (Jira)" <ji...@apache.org> on 2021/12/03 06:49:00 UTC

[jira] [Updated] (LUCENE-10280) Store BKD blocks with continuous ids more efficiently

     [ 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 may be a common situation. In this case we can handle this situation more efficiently. We just need to check' stritylysorted && (docIds[start+count-1]-docids[start]+1) = = count)' to check if ids is continuous. If so, we only need to write the first id of this block.  (was: For scenes that index is sorted on the field, blocks with continuous ids may be a common situation. In this case we can handle this situation more efficiently: We only need to check' stritylysorted && (docIds[start+count-1]-docids[start]+1) = = count)' to check if ids is continuous. If so, we only need to write the first id of this block.)

> 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
>
> For scenes that index is sorted on the field, blocks with continuous ids may be a common situation. In this case we can handle this situation more efficiently. We just need to check' stritylysorted && (docIds[start+count-1]-docids[start]+1) = = count)' to check if ids is continuous. If so, we only need to write the first id of this block.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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