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

benchmarks: PostgreSQL-family and QuestDB arms use the vendor's documented client paths (autocommit, binary COPY, binary cursors) #250

Closed

Description

@tae898

The G3 client-path A/B (laptop, 12 interleaved repetitions, round trips counted with strace, answers identical in every arm) found three places where the PostgreSQL-family and QuestDB arms do not use the vendor's documented path, and each one handicaps a comparator in a way that does not flatter ArcadeDB.

(a) l1_tpc.PostgresTPC and its postgres_tuned subclass wrap every single statement in BEGIN and COMMIT, three sends per call. Autocommit makes the four CRUD calls 1.83x to 1.96x faster (60 us to 31 us p50), leaves the analytics reads unchanged (0.96x to 1.00x), and new-order and payment keep their transaction (0.96x, a null). psycopg pipeline mode is slower (0.82x, 0.88x), so it is not used.

(c) The pgvector dense load (l3d_dense.PgVector) and the cross-model product load (e2_hybrid.PgAgeE2) use text COPY with every float formatted in Python inside the ingest timer. Binary COPY with pgvector-python is 11.6x (SIFT-128, 200,000 vectors), 13.2x (96-d, 200,000), and 9.1x (64-d, 50,000) on the ingest column, with identical stored rows. The sparse load stays on text COPY (1.09x, a null).

(d1) The six QuestDB reads (l4_tsbs.QuestTS) use the default cursor. binary=True, which the QuestDB documentation recommends, is 1.34x on the 32,944-row q_high and a null on the five small results, with identical answers.

The change lands as one PR. Imports of pgvector are lazy, so a stage that never touches pgvector is unaffected. The pgvector==0.5.0 and neo4j-rust-ext==6.3.1.0 pins go into the client image at the tier 1 to tier 2 rebuild, tracked as CAMPAIGN.md section 7 row 76. No tier 1 (ArcadeDB only) stage imports the changed code paths.

Not measured: mini (the 1.9x CRUD figure needs a mini confirmation before it is printed), postgres_tuned, and TimescaleDB.

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