apache / apache/lucene

Can we "warm" SSDV ordinal maps on index reopen? [LUCENE-10565]

Open
#11,601 2 comments 0 reactions 0 assignees View on GitHub
legacy-jira-priority:Major module:facet type:enhancement
Dominant language
Java
Stars
3.6k
Forks
1.4k
Avg merge
2d 6h
Merged PRs (30d)
86

Description

As @rmuir and @jpountz pointed out in a [discussion about facet benchmarks](https://github.com/mikemccand/luceneutil/issues/169), we lazily build ordinal maps needed for SSDV faceting the first time we need them for a given index field instead of eagerly building them when the index is reopened. This puts an expensive penalty on the search path whenever an index is reloaded. Let's see if we can eagerly build these maps as part of reopening the index so the user doesn't get hit with this at search time.

---
Migrated from [LUCENE-10565](https://issues.apache.org/jira/browse/LUCENE-10565) by Greg Miller (@gsmiller), 1 vote, updated May 12 2022

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.