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
Native ingest: one datetime, date, decimal or binary column moves the whole batch off the columnar insert path #316
enhancementNew feature or requestnativeThe arcadedb package (native library build)performanceSpeed or memory of the bindings, with a measurementpythonPull requests that update python code
This comes from a read-only audit of the tag 26.11.1 (commit 2f28a328be); everything below marked read was seen in the code with the file and line, nothing was run or timed, and no speed claim is made. Related closed work that this builds on and does not repeat: #229 (native point reads), #231 (native insert_many ragged lists), #235 (JVM insert_many cyclic GC), #243 (JVM GraphBatch property shapes), #174 (commit sizes).
Read: the native columnar entry only has the column kinds q d b i e f s (_native/columnar.py:8-10). One column of another kind in insert_arrow, insert_dataframe or insert_many makes every column of that batch go through per-row Python dicts, a per-row validation loop and json.dumps (dataframe.py:364-369, :517-532, _native/bulk.py:57-71). Rows of agent memory almost always have a timestamp, so I expect this to be the common case, not an edge.
Proposal: add datetime and date kinds (and, if the engine's conversion allows it, decimal and binary) to BulkOps.java and columnar.py, so those columns stay columnar. It needs a rebuilt native image from the unchanged engine, so it is a wheels-only release only if the maintainers count that as wheels-only; I did not verify a bindings-only workaround.
Measure first: ingest the same table with and without one timestamp column, rows per second and CPU per row, warmed, before and after. Done when the timestamp case is within the rule of the all-numeric case or the remaining gap is explained.
Here is the figure I have for this issue, from the timed A/B I ran on 2026-11-10 on my laptop (Intel Core Ultra X9 388H, Linux 7.0.0, Python 3.12, two cores). A is the released arcadedb==26.11.1 wheel and B is the candidate wheel of the same engine (a CI build of the release/26.11.1 line before 26.11.1.post1, sha256 starting 144091c9), which has PR #333 in it. B is not the published 26.11.1.post2 wheel: PR #333 is on main and in the 26.11.1.post2 tag, and I did not re-run this on the published file.
The cell is insert_arrow of a 10-column table (6 numeric columns, 3 string columns, and l_shipdate as an Arrow date32), 4 calls of 122,880 rows after 1 warm-up call, 14 clean pairs. The rule was written before the first run: A and B alternate in paired rounds, B/A is the median of the paired ratios with a bootstrap 95 percent interval, and below 1.00 means B is faster. A WIN needs the upper end of the interval below 0.90.
On 26.11.1 that one date column sent every column of the batch down the per-row path, and on B it stays columnar: 12.108 s to 3.825 s for the 491,520 rows, about 40.6 thousand to 128.5 thousand rows per second, B/A 0.316 [0.314, 0.318] (WIN). A against itself in the same rounds gave 1.001 [0.999, 1.004], so I do not think the harness moved it.
Two things this does not show. The issue's "done when" compares the timestamp case with the all-numeric case, and this run compares B with 26.11.1, so I do not yet know how far the date table is from the same table with no date column. B also holds more memory: peak RSS 718.3 MiB to 806.6 MiB (B/A 1.128 [1.121, 1.193]) and anonymous memory (RssAnon) B/A 1.394 [1.362, 1.403], process readings that the rule does not gate on.
Still missing: the same table through the same call with the date column as a plain numeric column and as date32, with the memory, on the published 26.11.1.post2 wheel. numpy datetime64 and mixed-type columns still take the row path and are not in this run. I am leaving the issue open for that run.
Status. The native side is fixed in code: #333 adds date-time, date, decimal and bytes column kinds to the columnar insert, so such a column no longer sends the whole batch down the per-row path. It is in 26.11.1.post1 and 26.11.1.post2 (merged 2026-11-10). The JVM counterpart, a timestamp or date column as one long[], is #383, and it is in 26.11.1.post3 (on PyPI since 2026-11-14). In the timed A/B of the CI-built post3 wheel against 26.11.1.post2, insert_arrow with timestamp and date columns took 0.295 [0.283, 0.311] of the time and insert_dataframe took 0.283 [0.278, 0.290] (20 clean pairs each, A/A control 0.998 [0.979, 1.015] and 0.993 [0.976, 1.004]).
The figure above (12.108 s to 3.825 s, B/A 0.316 [0.314, 0.318], 14 clean pairs, WIN by my rule) is of a post1 candidate wheel, not of the published file. This issue's "done when" compares the timestamp case with the all-numeric case, and that is not measured yet.
What remains: the same table through insert_arrow with the date column as date32 and as a plain numeric column, with memory, on the published 26.11.1.post2 native wheel. numpy datetime64 and mixed-type columns still take the row path and are covered by no figure. The issue stays open for that run.
I am bringing this measurement forward from January. On 2026-11-27 I decided to run it now, on my laptop, planned for the night of 27 to 28 November (KST). I will post its rules here before the first run.
I am writing the rules of this measurement down before its first run.
Question. On the current native wheel, does insert_arrow of a table with one date32 column cost more than the same table with that column as a plain number? This is the run that is still open on this issue.
Arm
l_shipdate in Arrow
property type
A
int32 (days since 1970-01-01)
INTEGER
B
date32 (the same days)
DATE
Z
A again (A/A control)
INTEGER
The table has 10 columns (6 numbers, 3 strings, and l_shipdate), as in my run of 2026-11-10 above. Each run is a fresh process on a new database: 1 untimed warm-up call into a second type of the same shape, then 4 timed calls of 122,880 rows.
Verdict. Two gating figures, wall time and process CPU time of the 4 calls, each read on its own as the median of the per-round ratios B/A with a 95% bootstrap interval (10,000 resamples, seed 1). I also report rows per second and CPU per row, and a Mann-Whitney U p.
verdict
condition
WITHIN
upper end at most 1.10
COSTS MORE
lower end above 1.10
GRAY
anything else
The date case counts as within the numeric case only if both figures are WITHIN. COSTS MORE leaves the issue open until the gap is explained. Peak RSS and RssAnon are information only.
Pins, validity, throttle rule, repetitions, and limits
Pins.
What
Pin
wheel, every arm
arcadedb (native), linux x86_64, from CI run 45905152816 of main at f257597, sha256 dab39a260d90646a6e58e831898a3f36e8d074d2927e2fabad68c03ee779c4c1
engine
26.11.1
Python
3.12, numpy 2.5.4, pyarrow 26.0.0
heap
-Xmx at half of the physical memory, the same in every arm
host
my laptop (Core Ultra X9 388H, Linux), two pinned E cores, turbo on, powersave governor, editor, browser, and agent sessions held on other cores. The figures are relative only
kit
the checksum file of the scripts has sha256 4ea8a39ee0ca6ec6f5ca33eb938dc9cc1e9ba94347f24b4cbc7efceaca34ccdf
Validity, checked before any verdict. The unit is INVALID when a cell did not load through the columnar entry or did not have the column type of its arm (an untimed probe in every process), the engine differs between cells, the stored data differ from the generator (row count, sums, and counts per value of the string and date columns), or another timed job overlapped. A figure is INVALID when its A/A interval neither contains 1.00 nor lies inside [0.97, 1.03]. A figure is WEAK with fewer than 10 clean pairs for B/A or Z/A, or with an interval wider than 0.10 (above a median of 1.00: wider than a tenth of the median). INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two runs' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either run (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. The arms run back to back in each round, the order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more while a figure is WEAK, at most 19 rounds. No round starts that is not expected to end by 06:50 KST, and the verdict is then read from the finished rounds under the same rules. No round is added because a result looks close.
Rehearsal. One run of every arm in 2 rounds at 5,000 rows comes first. It checks the setup and is never read as a result. The study runs only if it passes the checks.
Reruns and changes. A GRAY is final. After INVALID or WEAK, one unchanged rerun replaces the figures that reported nothing. A change of arms, sizes, thresholds, or pins after a timed run is a new study with a new comment first.
Limits. One table shape, one host, the native wheel only. Timestamp, decimal, and binary columns are not in this run. It compares two column types in one build, not the build before the change.
enhancementNew feature or requestnativeThe arcadedb package (native library build)performanceSpeed or memory of the bindings, with a measurementpythonPull requests that update python code
Activity
Native columnar insert: date-time, date, decimal and bytes columns st…
Native columnar insert: date-time, date, decimal and bytes columns st…
insert_arrow and insert_dataframe on the native wheel: a vector colum…
tae898 commentedon Nov 12, 2026
Here is the figure I have for this issue, from the timed A/B I ran on 2026-11-10 on my laptop (Intel Core Ultra X9 388H, Linux 7.0.0, Python 3.12, two cores). A is the released
arcadedb==26.11.1wheel and B is the candidate wheel of the same engine (a CI build of therelease/26.11.1line before26.11.1.post1, sha256 starting144091c9), which has PR #333 in it. B is not the published26.11.1.post2wheel: PR #333 is on main and in the26.11.1.post2tag, and I did not re-run this on the published file.The cell is
insert_arrowof a 10-column table (6 numeric columns, 3 string columns, andl_shipdateas an Arrowdate32), 4 calls of 122,880 rows after 1 warm-up call, 14 clean pairs. The rule was written before the first run: A and B alternate in paired rounds, B/A is the median of the paired ratios with a bootstrap 95 percent interval, and below 1.00 means B is faster. A WIN needs the upper end of the interval below 0.90.On 26.11.1 that one date column sent every column of the batch down the per-row path, and on B it stays columnar: 12.108 s to 3.825 s for the 491,520 rows, about 40.6 thousand to 128.5 thousand rows per second, B/A 0.316 [0.314, 0.318] (WIN). A against itself in the same rounds gave 1.001 [0.999, 1.004], so I do not think the harness moved it.
Two things this does not show. The issue's "done when" compares the timestamp case with the all-numeric case, and this run compares B with 26.11.1, so I do not yet know how far the date table is from the same table with no date column. B also holds more memory: peak RSS 718.3 MiB to 806.6 MiB (B/A 1.128 [1.121, 1.193]) and anonymous memory (
RssAnon) B/A 1.394 [1.362, 1.403], process readings that the rule does not gate on.Still missing: the same table through the same call with the date column as a plain numeric column and as
date32, with the memory, on the published26.11.1.post2wheel. numpydatetime64and mixed-type columns still take the row path and are not in this run. I am leaving the issue open for that run.tae898 commentedon Nov 14, 2026
Status. The native side is fixed in code: #333 adds date-time, date, decimal and bytes column kinds to the columnar insert, so such a column no longer sends the whole batch down the per-row path. It is in
26.11.1.post1and26.11.1.post2(merged 2026-11-10). The JVM counterpart, a timestamp or date column as onelong[], is #383, and it is in26.11.1.post3(on PyPI since 2026-11-14). In the timed A/B of the CI-built post3 wheel against26.11.1.post2,insert_arrowwith timestamp and date columns took 0.295 [0.283, 0.311] of the time andinsert_dataframetook 0.283 [0.278, 0.290] (20 clean pairs each, A/A control 0.998 [0.979, 1.015] and 0.993 [0.976, 1.004]).The figure above (12.108 s to 3.825 s, B/A 0.316 [0.314, 0.318], 14 clean pairs, WIN by my rule) is of a post1 candidate wheel, not of the published file. This issue's "done when" compares the timestamp case with the all-numeric case, and that is not measured yet.
What remains: the same table through
insert_arrowwith the date column asdate32and as a plain numeric column, with memory, on the published26.11.1.post2native wheel. numpydatetime64and mixed-type columns still take the row path and are covered by no figure. The issue stays open for that run.tae898 commentedon Nov 27, 2026
I am bringing this measurement forward from January. On 2026-11-27 I decided to run it now, on my laptop, planned for the night of 27 to 28 November (KST). I will post its rules here before the first run.
tae898 commentedon Nov 27, 2026
I am writing the rules of this measurement down before its first run.
Question. On the current native wheel, does
insert_arrowof a table with onedate32column cost more than the same table with that column as a plain number? This is the run that is still open on this issue.l_shipdatein Arrowint32(days since 1970-01-01)INTEGERdate32(the same days)DATEINTEGERThe table has 10 columns (6 numbers, 3 strings, and
l_shipdate), as in my run of 2026-11-10 above. Each run is a fresh process on a new database: 1 untimed warm-up call into a second type of the same shape, then 4 timed calls of 122,880 rows.Verdict. Two gating figures, wall time and process CPU time of the 4 calls, each read on its own as the median of the per-round ratios B/A with a 95% bootstrap interval (10,000 resamples, seed 1). I also report rows per second and CPU per row, and a Mann-Whitney U p.
The date case counts as within the numeric case only if both figures are WITHIN. COSTS MORE leaves the issue open until the gap is explained. Peak RSS and
RssAnonare information only.Pins, validity, throttle rule, repetitions, and limits
Pins.
arcadedb(native), linux x86_64, from CI run45905152816ofmainatf257597, sha256dab39a260d90646a6e58e831898a3f36e8d074d2927e2fabad68c03ee779c4c1-Xmxat half of the physical memory, the same in every armpowersavegovernor, editor, browser, and agent sessions held on other cores. The figures are relative only4ea8a39ee0ca6ec6f5ca33eb938dc9cc1e9ba94347f24b4cbc7efceaca34ccdfValidity, checked before any verdict. The unit is INVALID when a cell did not load through the columnar entry or did not have the column type of its arm (an untimed probe in every process), the engine differs between cells, the stored data differ from the generator (row count, sums, and counts per value of the string and date columns), or another timed job overlapped. A figure is INVALID when its A/A interval neither contains 1.00 nor lies inside [0.97, 1.03]. A figure is WEAK with fewer than 10 clean pairs for B/A or Z/A, or with an interval wider than 0.10 (above a median of 1.00: wider than a tenth of the median). INVALID and WEAK report no result.
Throttle and interference rule. A run starts when the package is at most 70 C (after the first run of a round also at most 2 C above that run's start), after at most 180 s of waiting. A pair is dropped when the two runs' throttled share of the timed window (core throttle time of the two cores) differs by more than 1 percentage point, when their start temperatures differ by more than 5 C, or when my interference sampler marked either run (more than half a core of other work on a group of cores, other benchmark work, a camera, or a suspend).
Repetitions and stopping. The arms run back to back in each round, the order rotated and reversed from round to round. Rounds 0 to 12 (round 0 is dropped), then 2 more while a figure is WEAK, at most 19 rounds. No round starts that is not expected to end by 06:50 KST, and the verdict is then read from the finished rounds under the same rules. No round is added because a result looks close.
Rehearsal. One run of every arm in 2 rounds at 5,000 rows comes first. It checks the setup and is never read as a result. The study runs only if it passes the checks.
Reruns and changes. A GRAY is final. After INVALID or WEAK, one unchanged rerun replaces the figures that reported nothing. A change of arms, sizes, thresholds, or pins after a timed run is a new study with a new comment first.
Limits. One table shape, one host, the native wheel only. Timestamp, decimal, and binary columns are not in this run. It compares two column types in one build, not the build before the change.