Skip to content

Docs: the EXPORT DATABASE settings of engine 26.12.1, and a shorter pre-fix measurement in bulk-loads - #436

Merged
tae898 merged 1 commit into
mainfrom
docs/26.12.1-docs-items
Nov 22, 2026
Merged

tae898 merged 1 commit into
mainfrom
docs/26.12.1-docs-items

Conversation

@tae898

@tae898 tae898 commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

What does this PR do?

It adds what engine 26.12.1 changes in the SQL EXPORT DATABASE ... WITH settings to import-export.adoc, and shortens the pre-fix measurement in the "Graph batches next to deletes" section of bulk-loads.adoc. Both are docs only.

import-export.adoc, section "The SQL EXPORT DATABASE":

  • overwrite: from 26.12.1 the value is read and must be true or false, and false keeps an existing file. On 26.11.1 and earlier WITH overwrite = false replaced the file.
  • A setting name the exporter does not know is refused, with a hint for a near miss. file and f are refused too, so the clause cannot move the target.
  • An empty includeTypes, excludeTypes, or includeRecords list is refused.
  • The two new settings: compressionLevel (0 to 9, default 6) and compressionThreads (-1 to 256; the default -1 is half the processors, at most 8 and at least 1; 0 is the old single-threaded gzip).
  • db.export_database(...) has no argument for the two compression settings, so on 26.12.1 it uses the defaults. I added no arguments: Docs: the SQL EXPORT DATABASE settings that change in engine 26.12.1 (overwrite value, unknown names) #380 leaves that decision to the engine pin move, and the pin is still 26.11.1.

I read each statement in the engine at ArcadeData/arcadedb 0c7117f4ad (main), and the old behaviour at the tag 26.11.1:

Statement Where I read it
overwrite takes true or false only ExporterSettings.java 184-190, StringUtils.java 39-46, test Issue11523ExportOverwriteSettingTest 107-122
false keeps an existing file, as no setting does AbstractExporterFormat.java 186-192, test 75-96
26.11.1: the value was ignored ExporterSettings.parseParameter at 26.11.1 ("overwrite" sets overwriteFile = true)
Unknown name refused, with a hint; the known names ExporterSettings.java 38-39 and 199-204, test 125-139
file and f refused test 208-220; at 26.11.1 parseParameter set file from both
Empty list refused ExporterSettings.java 130-140 and 191-193, test 244-249
compressionLevel 0 to 9, default 6 ExporterSettings.java 50, 64, and 197
compressionThreads -1 to 256, default -1 ExporterSettings.java 53, 70, and 198
Automatic is half the processors, at most 8, at least 1 ParallelDeflater.java 125-127, AbstractExporterFormat.java 91-95
0 is the single-threaded gzip ParallelGzipOutputStream.java 86-100
A value out of range is refused before anything is written ExporterSettings.java 143-159, test Issue11539ExportCompressionSettingsTest 160-177
One gzip stream that the importer reads back the same test, 80-99
The Python call sends only includeTypes, excludeTypes, and verboseLevel src/arcadedb/exporter.py 96-102 and 126-135, NativeExtras.java 1141-1148

bulk-loads.adoc: the table now has one row for each way of writing the edges and one column for each package. Every bucket size is kept. The four live-edge counts (5,261, 5,257, 5,252, and 5,269) became their range. The two paragraphs after the table are unchanged, so this stays clear of the lines #432 adds below them.

Related issues

Closes #380

Part of #365. This PR does its bulk-loads.adoc box. I checked the other small boxes against main and they are already done:

Not done, because each needs a run or a measurement:

  • The re-run of quickstart.adoc on the stable wheels.
  • The re-run of the probe table of concurrency.adoc.
  • The figures measured on 26.11.1.dev0 in which-package.adoc, vectors.adoc, and installation.adoc.

Docs

docs/modules/ROOT/pages/how-to/import-export.adoc and docs/modules/ROOT/pages/how-to/bulk-loads.adoc. README.md does not describe either.

Checklist

  • A regression test fails on the old code and passes on the new: none, the change is prose. I added no code block, because the page tests run on engine 26.11.1 and on the snapshot and the behaviour differs between them. A comment in the page says that no test of this repository pins the new text.
  • The test suite that the change can affect passes: left to CI, I did not run pytest locally. The Antora build with the repository playbook passes locally with no warning.
  • uvx pre-commit run --files <changed files> passes

…re-fix measurement in bulk-loads (closes #380, refs #365)

import-export.adoc, "The SQL EXPORT DATABASE": from engine 26.12.1 the WITH
clause reads the overwrite value (true or false only, false keeps an existing
file), refuses a setting name it does not know (file and f included) and an
empty includeTypes, excludeTypes or includeRecords list, and has two new
settings, compressionLevel (0 to 9, default 6) and compressionThreads (-1 to
256, default -1 = half the processors, at most 8, at least 1; 0 = the old
single-threaded gzip). The text says what 26.11.1 and earlier did, and that
db.export_database() has no argument for the two compression settings.

Each statement is read from the engine at ArcadeData/arcadedb 0c7117f4ad
(ExporterSettings, ExportDatabaseStatement, AbstractExporterFormat,
ParallelDeflater.autoThreads, and the tests Issue11523ExportOverwriteSettingTest
and Issue11539ExportCompressionSettingsTest) and from the 26.11.1 tag for the
old behaviour. It is prose only: the page tests run on engine 26.11.1 and on
the snapshot, and the behaviour differs between them.

bulk-loads.adoc, "Graph batches next to deletes": the pre-fix measurement is
shorter now that the fix ships in 26.11.1. The table has one row for each way
of writing the edges and one column for each package; every bucket size is
kept, the four live-edge counts became their range. The two paragraphs after
it are unchanged.
@tae898 tae898 self-assigned this Nov 22, 2026
@tae898 tae898 added the documentation Improvements or additions to documentation label Nov 22, 2026
@tae898 tae898 added this to the 26.12.1 milestone Nov 22, 2026
@tae898
tae898 merged commit 8fd38d9 into main Nov 22, 2026
6 checks passed
@tae898
tae898 deleted the docs/26.12.1-docs-items branch November 22, 2026 10:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: the SQL EXPORT DATABASE settings that change in engine 26.12.1 (overwrite value, unknown names)

1 participant