Skip to content

Implement composite index#32

Open
matdexir wants to merge 2 commits intobuffdb:mainfrom
matdexir:feat/composite-indexes
Open

Implement composite index#32
matdexir wants to merge 2 commits intobuffdb:mainfrom
matdexir:feat/composite-indexes

Conversation

@matdexir
Copy link
Contributor

@matdexir matdexir commented Sep 5, 2025

I've implemented the following features for composite indexes:

  • create
  • find_exact
  • remove

I've also added respective tests.

One question I have regarding the composite index is whether it should support a find_partial feature. For example, given the following structure:

{
  (thing1, thing2): [doc1, doc2],
  (thing1, thing3): [doc3, doc4]
}

should find((thing1, _)) return [doc1, doc2, doc3, doc4]?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant