Repository navigation
Docs: the EXPORT DATABASE settings of engine 26.12.1, and a shorter pre-fix measurement in bulk-loads - #436
Merged
Merged
Conversation
…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.
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
It adds what engine 26.12.1 changes in the SQL
EXPORT DATABASE ... WITHsettings toimport-export.adoc, and shortens the pre-fix measurement in the "Graph batches next to deletes" section ofbulk-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 betrueorfalse, andfalsekeeps an existing file. On 26.11.1 and earlierWITH overwrite = falsereplaced the file.fileandfare refused too, so the clause cannot move the target.includeTypes,excludeTypes, orincludeRecordslist is refused.compressionLevel(0 to 9, default 6) andcompressionThreads(-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/arcadedb0c7117f4ad(main), and the old behaviour at the tag26.11.1:overwritetakestrueorfalseonlyExporterSettings.java184-190,StringUtils.java39-46, testIssue11523ExportOverwriteSettingTest107-122falsekeeps an existing file, as no setting doesAbstractExporterFormat.java186-192, test 75-96ExporterSettings.parseParameterat26.11.1("overwrite"setsoverwriteFile = true)ExporterSettings.java38-39 and 199-204, test 125-139fileandfrefused26.11.1parseParametersetfilefrom bothExporterSettings.java130-140 and 191-193, test 244-249compressionLevel0 to 9, default 6ExporterSettings.java50, 64, and 197compressionThreads-1 to 256, default -1ExporterSettings.java53, 70, and 198ParallelDeflater.java125-127,AbstractExporterFormat.java91-95ParallelGzipOutputStream.java86-100ExporterSettings.java143-159, testIssue11539ExportCompressionSettingsTest160-177includeTypes,excludeTypes, andverboseLevelsrc/arcadedb/exporter.py96-102 and 126-135,NativeExtras.java1141-1148bulk-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.adocbox. I checked the other small boxes againstmainand they are already done:language: python, thepyproject.tomlcomment names the README section "Build and test from source", which exists, and the examples inscripts/build.shandnative/wheel/build_wheel.pyare26.12.1-SNAPSHOTand26.12.1.dev0on engine26.11.1, which is whatDEV_ENGINEis. The26.11.1that is left inbuild.shis a fact about Studio in the licence guard, not an example.ci.adoc: done in Docs: quickstart output on 26.11.1.post2, facets pre-release hint, concurrency caveat, ci.adoc bold (refs #365) #375. Both bullets read+docs/**+, and no**in the page is outside a passthrough.Not done, because each needs a run or a measurement:
quickstart.adocon the stable wheels.concurrency.adoc.which-package.adoc,vectors.adoc, andinstallation.adoc.Docs
docs/modules/ROOT/pages/how-to/import-export.adocanddocs/modules/ROOT/pages/how-to/bulk-loads.adoc.README.mddoes not describe either.Checklist
uvx pre-commit run --files <changed files>passes