Skip to content

add fast path to database ingest - #7429

Merged
mccanne merged 3 commits into
mainfrom
ingest-sort
Oct 8, 2026
Merged

mccanne merged 3 commits into
mainfrom
ingest-sort

Conversation

@mccanne

@mccanne mccanne commented Oct 8, 2026

Copy link
Copy Markdown
Collaborator

This commit adds a fast path for sorting ingest regarding the common case that a table sort key is a simple primary type. In this case, we do native sorts on the vector data to compute an index which is used to create a view.

I believe the changes to the tests has to do with variation in stability of the sort between sam and this new path. Sam sort will go away soon so I'm not concerned about maintaining the invariant between the two.

Base automatically changed from db-columns to main October 8, 2026 16:34
This commit replaces the storage format of the databsae with BSUP columns.
We're currently suboptimally writing one big column frame per storage
object but this will change in a subsequent PR when we add a row-group-like
construct (pruner and vcache just need to understand this).

We put merge and the pool scanners in subdirectories of runtime/op to break
import loops.  We need to revisit interfaces again to come up with a cleaner
design but this will come later.

The ingest path is now native columns though there is an scode boomerang
to sort the input.  We'll avoid this and add optional sort keys in a
subsequent PR.
This commit adds a fast path for sorting ingest regarding the common case
that a table sort key is a simple primary type.  In this case, we do native
sorts on the vector data to compute an index which is used to create a view.

I believe the changes to the tests has to do with variation in stability
of the sort between sam and this new path.  Sam sort will go away soon
so I'm not concerned about maintaining the invariant between the two.
@mccanne
mccanne merged commit e83e3c6 into main Oct 8, 2026
4 checks passed
@mccanne
mccanne deleted the ingest-sort branch October 8, 2026 18:42
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.

2 participants