Skip to content

HNSW Index: Multiple storages#25

Merged
villagedeb merged 1 commit into
mainfrom
deb/index/1
Jul 10, 2026
Merged

HNSW Index: Multiple storages#25
villagedeb merged 1 commit into
mainfrom
deb/index/1

Conversation

@villagedeb

Copy link
Copy Markdown
Member

No description provided.

@villagedeb villagedeb self-assigned this Jun 30, 2026
Comment thread src/storage/storage.h
char *error_msg, uint32_t error_msg_len);
};

struct MultiColumnStore {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why did we make this a multi-column store? Are there multi-column indexes we need to support? Not objecting to the flexibility, just wondering what the motivation was.

Oh sorry, I think I misunderstood now that i read more. I think this is to support multiple indexes against the same "store" - is that correct?

Looks like each would have its own root page (and there seems to be a primary root). Hopefully the layout comment is updated to explain. It is - good.

So is each one a "segment" or is it that orthogonal?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that's correct. Each column store has its own root page and independent page management (data pages, free page lists, etc.). The primary root page holds references to the other root pages, allowing the entire multi-column store to be identified by a single storage reference.

The segment concept is orthogonal. A column store belongs to exactly one segment, but multiple column stores can be distributed across multiple segments depending on the storage layout.

The motivation here is to support storing the HNSW index. I'll elaborate more on the layout and the rationale in the upcoming PRs.

@villagedeb
villagedeb merged commit ecb04d5 into main Jul 10, 2026
5 checks passed
@villagedeb
villagedeb deleted the deb/index/1 branch July 10, 2026 06:04
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 10, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants