Skip to content

Write pending queue during online indexing#4293

Open
jjezra wants to merge 31 commits into
FoundationDB:mainfrom
jjezra:vector_index_pending_queue
Open

Write pending queue during online indexing#4293
jjezra wants to merge 31 commits into
FoundationDB:mainfrom
jjezra:vector_index_pending_queue

Conversation

@jjezra

@jjezra jjezra commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

During online indexing, under certain circumstances, short indexer transactions will repeatedly cause conflicts with user transactions (while the user attempts to update the index). To avoid this, we should add a new index state: WRITE_ONLY_WITH_QUEUE. In this index state, user updates will be added to a write-pending queue, and the indexer will drain the queue.

@jjezra jjezra added enhancement New feature or request indexer Online Indexer issues labels Jun 22, 2026
@jjezra jjezra force-pushed the vector_index_pending_queue branch from 9b7b422 to df51931 Compare June 23, 2026 17:22
@jjezra jjezra force-pushed the vector_index_pending_queue branch 3 times, most recently from 1e62e12 to bc84cd7 Compare July 2, 2026 16:34
@jjezra jjezra requested review from ScottDugas and ohadzeliger July 6, 2026 15:56
@jjezra jjezra force-pushed the vector_index_pending_queue branch from 5c50742 to 31a5122 Compare July 6, 2026 17:55
@jjezra jjezra marked this pull request as ready for review July 6, 2026 19:56
final byte[] bitmap = new byte[(entrySize + 7) / 8];
if (remove) {
if (state.store.isIndexWriteOnly(state.index)) {
if (state.store.isAnyIndexWriteOnly(state.index)) {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rename to isIndexAnyWriteOnly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request indexer Online Indexer issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant