Skip to content

Conversation

@jeltsch
Copy link
Collaborator

@jeltsch jeltsch commented Oct 4, 2024

So far, incremental construction of an ordinary index required users to provide an upper bound of the number of pages or equivalently the number of keys stored in the index. However, such an upper bound cannot be reliably computed.

This pull request introduces an implementation of “growing vectors” and adapts ordinary-index construction to make use of it. As a result, it is not necessary anymore to provide an upper bound of the number of keys but only an initial size of the key buffer. For performance reasons, it is good for this initial size to be an upper bound of the number of keys, but index construction will also work if it is not.

This pull request does not contain tests for growing vectors. These will be added later by resolving #420.

@jeltsch jeltsch added the enhancement New feature or request label Oct 4, 2024
@jeltsch jeltsch self-assigned this Oct 4, 2024
@jeltsch jeltsch force-pushed the jeltsch/growing-vector branch from 6bc89d6 to 1db7791 Compare October 4, 2024 23:20
@jeltsch jeltsch force-pushed the jeltsch/growing-vector branch from 1db7791 to db4f2f9 Compare October 4, 2024 23:29
Copy link
Collaborator

@jorisdral jorisdral left a comment

Choose a reason for hiding this comment

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

Looks great, just a few small suggestions

@jeltsch jeltsch force-pushed the jeltsch/growing-vector branch from ba9ce06 to 65fed76 Compare October 23, 2024 12:47
@jorisdral
Copy link
Collaborator

Let's squash the commits, and then we can merge

@jeltsch jeltsch force-pushed the jeltsch/growing-vector branch from 4492f4a to b7fb557 Compare October 24, 2024 12:46
@jeltsch jeltsch force-pushed the jeltsch/growing-vector branch from b7fb557 to cce6276 Compare October 24, 2024 12:54
@jorisdral jorisdral added this pull request to the merge queue Oct 24, 2024
Merged via the queue into main with commit c361efb Oct 24, 2024
24 checks passed
@jorisdral jorisdral deleted the jeltsch/growing-vector branch October 24, 2024 15:43
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.

3 participants