Skip to content

insert_many: native and JVM keep different data after a failed load (commit_every defaults 1,000 vs 10,000) #174

Closed

Description

@tae898

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions