perf: merge_insert keeps a hash set entry for every matched target row

Aperta
#11,104 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

@LuciferYang ci sta già lavorando.

Dal 15/11/2026.

  • #11109 di @LuciferYang — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
20/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reading MergeState::processed_row_ids in exec/write.rs alongside delete_row_addrs (RoaringTreemap) to confirm the redundancy claim, then compare with seen_row_ids in exec/in_place.rs and Merger::processed_row_ids in merger.rs. Reproduce the reported peak memory with an 8M-row whole-row update and again with write_mode("rewrite_columns") to establish a baseline. Done means duplicate detection no longer needs a per-row hash set on the redundant path and peak memory is measurably lower with tests passing. Note an open pull request already targets this issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

performance

To detect several source rows matching one target row, merge_insert remembers every matched target row in a HashSet<u64> for the whole merge. There are three of these sets, one per write path: MergeState::processed_row_ids (exec/write.rs), seen_row_ids in the in-place column rewrite (exec/in_place.rs) and Merger::processed_row_ids (merger.rs). In exec/write.rs the set is redundant: the same rows are also inserted into delete_row_addrs, a RoaringTreemap. Updating all rows of an 8M-row table peaks at about 1.27 GB with a whole-row update and 1.31 GB with write_mode("rewrite_columns").

Lingua principale
Rust
Stelle
7.3k
Fork
929
Merge medio
2g 22h
PR unite (30g)
572

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di lance-format/lance

Tutte le issue di lance-format/lance

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.