You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
insert_many: native and JVM keep different data after a failed load (commit_every defaults 1,000 vs 10,000) #174
insert_many() commits in different batch sizes by default on the two builds: 1,000 rows on native (src/arcadedb/_native/database.py), 10,000 on JVM (core.py). Both values are pinned by tests (tests/test_ingest_defaults.py, tests/test_native_ingest_defaults.py) and were chosen per build for speed. The difference is visible when a load fails part-way: in a probe on the 26.11.1.dev0 dev wheels, a generator that raises at row 5,000, with no commit_every argument, leaves 5,000 committed rows on native and 0 on JVM (both re-raise the generator's ValueError and end with no open transaction).
So the same program keeps different data on the two builds after the same failure. Options: (a) document the per-build default and the failure behaviour on the ingest page and keep the defaults; (b) use one default on both builds (cost: re-measure the ingest numbers the defaults came from); (c) leave the default per build, but make a failure roll back the uncommitted tail only and say so. A design decision, so no PR yet; this issue records the measured difference.
Activity