Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fast-joins-redesign.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tanstack/db-ivm": patch
---

Redesign of the join operators with direct algorithms for major performance improvements by replacing composition-based joins (inner+anti) with implementation using mass tracking. Delivers significant performance gains while maintaining full correctness for all join types (inner, left, right, full, anti).
6 changes: 6 additions & 0 deletions packages/db-ivm/src/multiset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,12 @@ export class MultiSet<T> {
chunkedArrayPush(this.#inner, otherArray)
}

add(item: T, multiplicity: number): void {
if (multiplicity !== 0) {
this.#inner.push([item, multiplicity])
}
}

getInner(): MultiSetArray<T> {
return this.#inner
}
Expand Down
Loading
Loading