GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — bindings: insert_many reads its rows a chunk at a time, so memory no longer grows with the row count (#294) by tae898 · Pull Request #295 · humemai/arcadedb-embedded-python
This repository was archived by the owner on Nov 21, 2026. It is now read-only.
ConversationFixes #294.
Behaviour
The Java Measurements (laptop, cores 12-15,
|
| rows | 26.10.1 | this branch |
|---|---|---|
| 0.5M | 1.9 GB | 0.8 GB |
| 1M | 4.5 GB | 0.9 GB |
| 2M | 5.5 GB | 1.0 GB |
| 4M | 8.2 GB | 1.4 GB |
RssAnon minus the committed heap stays near 0.5 GB on this branch at every size. Speed at 1M rows, interleaved, 8 pairs after a warm-up round: 14.2 to 15.1 s on this branch against 16.5 to 18.3 s before, faster in every pair. The package ran hot (about 97 C) and both arms throttled, so treat that only as "not slower".
TestInsertManyStreams in tests/test_bulk_insert.py (9 tests, about 5 s): rows are stored while the iterable is still being read; the Python peak allocation for 60,000 rows stays under 12 MB (it was about 25 MB and linear in the row count); commit_every counts across chunks; commit_every=0 stays one transaction; an iterable error keeps only the committed batches; a fallback chunk does not affect the others; the parallel mode streams every row and still raises on a duplicate in a later chunk. All 9 fail on the old code. The full suite has no new failures (the 19 failures in the count push-down and light-edge known-issue files fail the same way without this change, against the engine snapshot I tested on).
🤖 Generated with Claude Code
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…longer grows with the row count (#294) insert_many called list(rows), serialized the whole list to one JSON text, and the engine parsed it into one JSON array before the first insert, so a load held about 1.5 KB per row at once (Python list, JSON text, parsed rows on the heap). It now reads 10,000 rows at a time and sends each chunk as its own JSON text inside the transaction it manages, committing every commit_every rows counted across chunks. The per-row fallback and the parallel mode work per chunk too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WQegLio3qLR2dE6gBFhRK6
There was an error while loading. Please reload this page.
…_many defect (#294) (#296) The l4 arcadedb_ts_doc ingest at ts1000 was OOM-killed at the tier's 32 GB cap in the 26.10.1 campaign because Database.insert_many held the whole input three times at once; fixed by #295, which reads 10,000 rows at a time. The cell is now a declared outcome with one plain sentence under the time-series table, out of the unexplained-failure set, with a next-measurement line. Keyed on the rows (l4, ts1000, arcadedb_ts_doc, ingest, every row oom_killed, embedded bindings version below _BINDINGS_FASTER_FROM), so it retires by itself once a row from the fixed bindings completes. No other cell is touched. page_check, PAGE-SPEC, CAMPAIGN row 86, and tests added. Co-authored-by: Claude Opus 5.5 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
insert_many holds the whole input in memory, so memory grows with the row count
There was an error while loading. Please reload this page.