Skip to content

Conversation

@touch-of-grey
Copy link
Contributor

@touch-of-grey touch-of-grey commented Jan 12, 2026

Based on discussion with @jackye1995 past few days, update the current MemWAL structure to introduce region specific manifest for independent update so that it can more efficiently run updates in streaming engines like Flink. This mostly comes from draft from @jackye1995, but separate out the MemWAL index part first with some my custom edits.

@github-actions github-actions bot added the enhancement New feature or request label Jan 12, 2026
@jackye1995 jackye1995 self-requested a review January 12, 2026 08:00
@jackye1995
Copy link
Contributor

Thanks for pushing progress on this, I will take a look tomorrow morning!

touch-of-grey and others added 3 commits January 13, 2026 00:09
- Mark as experimental
- Restructure sections (architecture first, then components)
- Use bloom filter instead of btree for PK existence
- Fix vector index: use same IVF type/centroids/codebook as base
- Add region pruning, sync/async ops summary
- Update query plans for multi-region (no cross-region dedup)
- Rename _memwal to _mem_wal
- Remove redundant sections

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@codecov
Copy link

codecov bot commented Jan 13, 2026

touch-of-grey and others added 2 commits January 13, 2026 01:00
- Replace RegionId struct with Uuid type alias for consistency
- Rename snapshot_timestamp to snapshot_ts_millis per spec
- Add conflict resolution between UpdateMemWalState and CreateIndex of MemWalIndex
- Implement generation comparison: committed >= to_commit is non-retryable,
  committed < to_commit is retryable
- Add rebase logic to merge merged_generations when CreateIndex rebases against
  UpdateMemWalState
- Add comprehensive unit and integration tests for conflict scenarios

Co-Authored-By: Jack Ye <[email protected]>
Co-Authored-By: Claude <[email protected]>
- Propagate load_mem_wal_index_details errors instead of silently returning Ok
- Consume conflicting_mem_wal_merged_gens directly to avoid clone

Co-Authored-By: Jack Ye <[email protected]>
Co-Authored-By: Claude <[email protected]>
Copy link
Contributor

@jackye1995 jackye1995 left a comment

Choose a reason for hiding this comment

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

thanks for working with me for all the comments! Looks good to me now, pending CI

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants