Skip to content

Parity: the same documents export to 1.27 times the text when insert_many ran on the native package #445

Open

Description

@tae898

Summary

The same Python documents, loaded with insert_many, export to different text depending on the package that loaded them. In the export and import study (#369) the plain JSONL of the document shape was 5,157,335 bytes when the records were loaded through the native package and 4,068,321 bytes when they were loaded through arcadedb-jvm (1.27 times) at 10,000 records. At 100,000 records it was 52.06 MB against 41.16 MB (1.26 times). Both packages were 26.11.1.post2, with the same generator and seed.

What is known

  • The values compare equal after the round trip on both packages, so no data is lost.
  • In the smoke run the records that the native package loaded carried a per-record type hint for list and map elements in the export text. I read it as a stored-type difference between the insert_many of the two packages, and I have not traced it.
  • The compressed export files of the other shapes differ by at most 0.3 percent between the two packages, so it shows in the document shape.

To find out

  • Which stored types differ for the same Python list and dict. A small case is enough: one document with a list and a map, loaded by each package, then EXPORT DATABASE and a diff of the two lines.
  • Whether the records also differ in size on disk, and not only in the export text.
  • Whether it is still there on main and on the 26.12.1 wheels. insert_many has changed since 26.11.1.post2.
  • Which form is the right one. Then both packages store the same, with a cross-wheel golden case for it (tests/test_cross_wheel_golden.py, see Parity: the two wheels return different Python floats from to_json_list, and no cross-wheel golden test exists #314).

The numbers are from #369, comments of 2026-11-11. I do not know yet whether this is a defect or only a difference in how the two packages hand lists and maps to the engine.

Activity

  1. added this to the 27.1.1 milestone on Nov 22, 2026
  2. self-assigned this
    on Nov 22, 2026
  3. added
    bug
    python
    native
    jvm
    on Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugjvmnativepython

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions