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
benchmarks-website/server: snapshot in Vortex format, not CSV
Switches /api/admin/snapshot from `EXPORT DATABASE … (FORMAT csv)` to
per-table `COPY (SELECT * FROM <table>) TO … (FORMAT vortex)`. Dogfoods
the project's own format and compresses an order of magnitude better
than gzipped CSV on this shape (BIGINT[] runtime arrays + short strings).
- schema.rs grows a `pub const TABLES: &[&str]` so the snapshot loop
has a stable list to iterate.
- admin::snapshot writes `schema.sql` from `SCHEMA_DDL` verbatim, then
`INSTALL vortex FROM community; LOAD vortex;` (idempotent — autoload
is enabled in the bundled libduckdb-sys), then one COPY per table.
- ops/README.md restore section rewritten: untar → `.read schema.sql`
→ `INSERT … SELECT * FROM read_vortex(<file>)` per table.
- Two snapshot tests are marked `#[ignore]` because they need outbound
network to fetch the vortex extension. Run them by hand before merge:
cargo test -p vortex-bench-server --test admin -- --ignored
Signed-off-by: Claude <noreply@anthropic.com>
|`GET /health`| none |`deploy.sh` polls for liveness after a restart. |
429
-
|`POST /api/admin/snapshot?ts=<id>`| admin |Triggers `EXPORT DATABASE`. `ts` must match `[A-Za-z0-9_-]{1,64}`. 409 if the dir exists.|
443
+
|`POST /api/admin/snapshot?ts=<id>`| admin |Writes `schema.sql` + per-table `.vortex` files. `ts` must match `[A-Za-z0-9_-]{1,64}`. 409 if the dir exists. |
0 commit comments