Skip to content
This repository was archived by the owner on Nov 21, 2026. It is now read-only.

bindings: parallel insert_many numbers re-taken on an engine with the bucket allocator fix (#149) - #169

Merged
tae898 merged 1 commit into
mainfrom
bindings-parallel-insert-retake
Oct 5, 2026
Merged

tae898 merged 1 commit into
mainfrom
bindings-parallel-insert-retake

Conversation

@tae898

@tae898 tae898 commented Oct 4, 2026

Copy link
Copy Markdown

Closes #149.

The parallel insert_many numbers in the docs came from engines without upstream's bucket allocator fix (62124466c9): "2.5x faster at 8 buckets", "7.8 s against 3.4 s partitioned", "a keyed lookup 62 against 53 us", and "on the default single bucket it is no faster". Re-taken on a wheel whose engine prints b22b5e9954 (contains the fix), on the laptop's 4 performance cores with nothing else running, parallel level 3, 1,000,000 rows, 6 interleaved runs per arm (Mann-Whitney U, bootstrap 95% intervals):

buckets sequential / parallel load time 95% interval p
1 1.14x [1.05, 1.19] 0.026
3 1.11x [1.07, 1.15] 0.0022
4 1.13x [1.08, 1.19] 0.0022
8 1.14x [1.10, 1.17] 0.0022

Parallel at 8 buckets against parallel at 1 bucket: 1.02x [0.99, 1.06], p 0.13, so more buckets no longer help. Keyed, 400,000 rows, 4 buckets, UNIQUE id: the parallel load 3.15 s by default against 2.53 s partitioned (1.25x [1.20, 1.37]), a keyed lookup 16.2 against 14.6 us (1.11x, p 0.0049).

Changed: the insert_many docstring in core.py, docs/guide/import.md, docs/api/database.md, docs/index.md, and example 22's comment. The maintainers' bucket rule (ArcadeData#8478) stays; the claims that the parallel mode is no faster on one bucket and 2.5x at 8 go.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi

… bucket allocator fix (#149)

The docstring, the import guide, the API page, the docs index, and example 22
repeated numbers measured before upstream 6212446 (ArcadeData#8677):
"no faster on the default single bucket", "2.5x faster at 8 buckets on 4
cores", and partitioned keyed loads of 7.8 s against 3.4 s with keyed lookups
of 62 against 53 us.

Re-taken through the installed wheel (engine b22b5e9) on a laptop's four
performance cores (parallel level 3), 6 interleaved runs per arm, every run
clean (no own-cgroup memory stall, no suspend): insert_many(parallel=True) is
1.11x to 1.14x faster than the synchronous mode at 1, 3, 4, and 8 buckets
alike (Mann-Whitney U p 0.002 to 0.026), and 8 buckets are no faster than 1
(1.02x, bootstrap 95% interval 0.99 to 1.06). Keyed, 400,000 rows, 4 buckets:
the parallel load 3.15 s against 2.53 s partitioned (1.25x, interval 1.20 to
1.37), a keyed lookup 16.2 against 14.6 us.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ubz3m6QXHESerCkehC1qgi
@tae898
tae898 merged commit 09db23f into main Oct 5, 2026
50 of 92 checks passed
@tae898
tae898 deleted the bindings-parallel-insert-retake branch October 7, 2026 14:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bindings: re-take the parallel-insert numbers on an engine with upstream's bucket allocator fix

1 participant