diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e8f68dd..7c32b18 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -71,9 +71,10 @@ jobs: shell: bash run: ./mvnw -B -ntp verify -Dit.env=ci -Djacoco.haltOnFailure=false - - name: Install a virtual display + # rpmbuild of the rpm package + - name: Install a virtual display and rpmbuild if: runner.os == 'Linux' - run: sudo apt-get update -qq && sudo apt-get install -y -qq xvfb x11-apps imagemagick libgtk-3-0 + run: sudo apt-get update -qq && sudo apt-get install -y -qq xvfb x11-apps imagemagick libgtk-3-0 rpm - name: Start the runnable jar of the platform shell: bash @@ -97,9 +98,9 @@ jobs: esac sleep 20 case "$RUNNER_OS" in - Linux) xwd -root -silent | convert xwd:- screenshots/login.png ;; - macOS) screencapture -x screenshots/login.png || true ;; - Windows) powershell -File .github/workflows/screenshot.ps1 screenshots/login.png || true ;; + Linux) xwd -root -silent | convert xwd:- screenshots/main.png ;; + macOS) screencapture -x screenshots/main.png || true ;; + Windows) powershell -File .github/workflows/screenshot.ps1 screenshots/main.png || true ;; esac cat run.log kill $PID 2>/dev/null || taskkill //F //PID $PID 2>/dev/null || true @@ -137,6 +138,7 @@ jobs: run.log bin/SqlJam-* bin/sqljam_*.deb + bin/sqljam-*.rpm release: if: startsWith(github.ref, 'refs/tags/v') @@ -154,7 +156,7 @@ jobs: - name: Collect the packages and their checksums run: | mkdir release - find artifacts -type f \( -name 'SqlJam-*' -o -name 'sqljam_*.deb' \) -exec cp {} release/ \; + find artifacts -type f \( -name 'SqlJam-*' -o -name 'sqljam_*.deb' -o -name 'sqljam-*.rpm' \) -exec cp {} release/ \; cd release sha256sum * > SHA256SUMS.txt cat SHA256SUMS.txt diff --git a/README.md b/README.md index f32214b..fcd7c27 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ It copies tables (with indexes, constraints, sequences and partitions) **directl | Spreadsheets and text tools want CSV | **CSV packages** with your delimiter, quote, NULL text, header, encoding (UTF-8 with BOM for Excel, GBK and more) and date format, read back with the exact column types kept in `manifest.json`, and **CSV files of other tools** with detected delimiter and types | | An import went wrong, now what? | **One transaction** by default: an error rolls back the whole import, or **commit every N rows** like other import tools. **Skip rows with errors** goes on and lists every skipped row in the log, which you can filter and save. **Confirm before commit** lets you review a successful import in one transaction, then **Commit** or **Roll Back** | | Did every row arrive, and what happened when it stopped? | A **migration report** for every import and export, successful, failed, cancelled or rolled back: source, target and options, each table with its source rows, written and skipped rows, the rows counted in the target afterwards and a ✓ or ✗ against the written rows, the objects which were created, every skipped row with its error, where the transfer stopped and the error which ended it. It opens on its own page with **View Report**, and **Transfer → Import History** lists every report. Export one as Markdown, HTML or JSON | -| A copy has to stay up to date | **Sync Tasks** copy the rows which changed since the last run into another database, found by a column of the update time or an increasing key, every N minutes or every day at a time. The first run copies all rows, the watermark moves on only after the commit, errors of the connection are run again and errors of the data are not. SqlJam runs the tasks while it is open, or registers them with the **system scheduler** (crontab, Task Scheduler of Windows) so that they run when it is closed. Collections of vector databases sync the same way, and every run leaves a migration report | +| A copy has to stay up to date | **Sync Tasks** copy the rows which changed since the last run into another database, found by a column of the update time or an increasing key, every N minutes or every day at a time. The first run copies all rows, the watermark moves on only after the commit, errors of the connection are run again and errors of the data are not. SqlJam runs the tasks while it is open. To run them when it is closed, **Copy Command** gives the command line of a task for the scheduler of your system, SqlJam itself never changes it. Collections of vector databases sync the same way, and every run leaves a migration report | | Some rows exist already | **Update or insert by key** updates the rows of the same primary key, or of the columns you choose, and inserts the others. **Skip existing by key** keeps them and inserts the new rows only. Insert is the default | | Warehouses live apart from OLTP databases | **DuckDB and ClickHouse data sources**, grouped as OLAP databases next to the relational ones | | The rows come from a join or a report, not from one table | **SQL Query** editor with syntax highlighting: run the SQL, check the first rows, then export all rows of the query as a table into SQL, Parquet, CSV or another database | @@ -49,7 +49,7 @@ It copies tables (with indexes, constraints, sequences and partitions) **directl | Embeddings move with their search | Vectors of pgvector, MySQL, MariaDB, Oracle, SQL Server, Db2, DuckDB and ClickHouse keep their dimensions, and vector indexes (HNSW, IVF) keep their distances and options | | Embeddings live in a vector database | **Vector databases** sit in the connection tree like the other data sources: Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma, read by their REST APIs. Expand one to its databases, collections, partitions, tenants or namespaces, open a collection to browse its fields and records page by page, then **Import…** writes it straight into a database with vectors: ids and vectors become columns, every top-level field becomes a column of its type and the whole payload is kept as JSON. Conditions, native filters and nearest neighbor searches choose the rows | | The database sits behind a bastion host | **SSH tunnel** per data source, with a password or a private key (ed25519, RSA, ECDSA, with a passphrase). Host keys are trusted on first use and remembered, a changed host key is refused. A broken tunnel opens again by itself | -| Which server is this, and is it well? | **Info** opens the overview (product, version, driver, session, features SqlJam detected) and the health of a data source or a vector database (uptime, connections, size, cluster state, load), refreshed when you ask. Its **Dashboard** draws live charts of the last 5 minutes, sampled every 1 to 30 seconds: sessions, transactions, statements, rows, cache hits, locks, network, CPU, memory and size, read from the statistics of each database. Embedded databases show the CPU and the memory of SqlJam, in which they run. Metrics which a server does not tell are listed with the reason | +| Which server is this, and is it well? | **Info** opens the overview (product, version, driver, session, features SqlJam detected) and the health of a data source or a vector database (uptime, connections, size, cluster state, load), refreshed when you ask. Its **Dashboard** draws live charts of the last 5 minutes, sampled every 1 to 30 seconds: sessions, transactions, statements, rows, cache hits, locks, network, CPU, memory and size, read from the statistics of each database. Embedded databases show the CPU and the memory of SqlJam, in which they run. Vector databases show their collections and records, Elasticsearch and OpenSearch also CPU, heap, indexing and searches, Qdrant requests and memory. Metrics which a server does not tell are listed with the reason | | Long values and rows for a chat or a ticket | Cells show one line, a **double click** or **Shift+Enter** opens the whole value with JSON indented and vectors described. Select rows and **Copy Rows As** CSV, TSV, JSON or Markdown, or press **Ctrl+C** to paste them into a spreadsheet | | Many data sources, one is needed | Data sources are grouped as **relational, OLAP and vector databases** with their logos, and the **filter** above the tree finds them by name or type | @@ -179,7 +179,7 @@ Three tutorial videos of about 2 minutes each walk through SqlJam: |---|---| | [SQL databases](docs/assets/sqljam-sql.mp4) | Query rows of the example database, export them into files, import the package into PostgreSQL, query with the SQL editor and copy the tables straight into SQL Server | | [Vector databases](docs/assets/sqljam-vectors.mp4) | Browse a Qdrant collection page by page, narrow it by conditions and nearest neighbors, import it into PostgreSQL and open a tenant of Weaviate | -| [Scheduled sync and reports](docs/assets/sqljam-sync.mp4) | Create a sync task of the shop into PostgreSQL, copy all rows, then only the changed ones, read the reports and let the system scheduler run it | +| [Scheduled sync and reports](docs/assets/sqljam-sync.mp4) | Create a sync task of the shop into PostgreSQL, copy all rows, then only the changed ones, read the reports and copy the command line of the task | | Data source | Export wizard | Progress | |---|---|---| @@ -448,7 +448,7 @@ JVM options live in `sqljam.vmoptions` next to the runnable jar, one option per -Dfile.encoding=UTF-8 ``` -Sync tasks run from the command line too, which is what the system scheduler calls (`sqljam.bat` on Windows): +Sync tasks run from the command line too (`sqljam.bat` on Windows). SqlJam never changes the scheduler of your system, to run tasks when SqlJam is closed you put the command into it yourself: | Command | Does | |---|---| @@ -459,6 +459,28 @@ Sync tasks run from the command line too, which is what the system scheduler cal The exit code is `0` when the runs completed, `1` when one failed or was cancelled, `2` for a wrong command. A task never runs twice at once, in SqlJam and on the command line. +To run a sync task on a schedule of your own: + +| Step | What to do | +|---|---| +| 1 | In **Transfer > Sync Tasks** select the task and press **Copy Command**, it copies the whole command line with the path of SqlJam and the id of the task | +| 2 | Remember the passwords of its data sources, a run on a schedule has nobody to ask | +| 3 | Set the task to **Run Now only** in SqlJam, so that SqlJam and your scheduler do not both run it. Or keep its schedule in SqlJam and let your scheduler call `sync --due` | +| 4 | Put the command into the scheduler of your system, see below | +| 5 | Each run leaves its report in **Transfer > Import History**, started by the command line | + +```text +# crontab of macOS and Linux (crontab -e): one task every 15 minutes +*/15 * * * * /opt/sqljam/sqljam.sh sync --task "Shop to PostgreSQL" >> ~/.sqljam/sync.log 2>&1 +# or every 5 minutes, each task runs when its schedule in SqlJam is due +*/5 * * * * /opt/sqljam/sqljam.sh sync --due >> ~/.sqljam/sync.log 2>&1 +``` + +```text +:: Windows, in a console (or the same command in the Task Scheduler) +schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat sync --task \"Shop to PostgreSQL\"" +``` + Export options (UI / `ExportConfiguration`): | Option | Default | Description | @@ -485,19 +507,19 @@ Export options (UI / `ExportConfiguration`): | Scenario (200,000 rows × 6 columns) | Time | Rows/s | |---|---|---| -| H2 → MySQL | 10.3 s | 19.5k | -| H2 → MariaDB | 9.5 s | 21.1k | -| H2 → PostgreSQL | 6.4 s | 31.3k | -| H2 → Oracle | 4.2 s | 47.9k | -| H2 → SQL Server | 12.0 s | 16.7k | -| H2 → Db2 | 9.3 s | 21.6k | -| H2 → ClickHouse | 4.2 s | 47.4k | -| H2 → DuckDB | 5.7 s | 35.1k | -| H2 → SQL package | 2.6 s | 76.1k | -| H2 → Parquet package | 5.7 s | 35.4k | -| H2 → CSV package | 5.8 s | 34.7k | -| SQL package → PostgreSQL | 24.3 s | 8.2k | -| Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload) | 18.4 s | 1.1k | +| H2 → MySQL | 9.9 s | 20.2k | +| H2 → MariaDB | 7.7 s | 26.0k | +| H2 → PostgreSQL | 6.9 s | 28.8k | +| H2 → Oracle | 4.8 s | 41.6k | +| H2 → SQL Server | 13.3 s | 15.1k | +| H2 → Db2 | 10.7 s | 18.7k | +| H2 → ClickHouse | 5.4 s | 36.8k | +| H2 → DuckDB | 5.4 s | 37.2k | +| H2 → SQL package | 2.5 s | 81.0k | +| H2 → Parquet package | 5.8 s | 34.6k | +| H2 → CSV package | 5.5 s | 36.7k | +| SQL package → PostgreSQL | 10.1 s | 19.8k | +| Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload) | 18.3 s | 1.1k | Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a server of the local network (about 100 Mbit/s), H2, DuckDB and the packages are local. Default settings. Each scenario is measured by `TransferBenchmark`. @@ -507,6 +529,7 @@ Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a serve | Tables copied one by one | Predictable load on production servers | | Packages contain plain SQL, Parquet or CSV | Readable, editable and portable, or columnar for analytics | | Writes sized for each database | Batched inserts, rewritten into multi-row statements for PostgreSQL and MySQL, several rows a statement for DuckDB, with the same value conversions everywhere | +| Inserts of a SQL package merged on import | The package stays one readable row a line, the database receives up to 100 rows a statement | --- diff --git a/docs/assets/benchmark.png b/docs/assets/benchmark.png index 1de41cc..06b8bec 100644 Binary files a/docs/assets/benchmark.png and b/docs/assets/benchmark.png differ diff --git a/docs/assets/benchmark.svg b/docs/assets/benchmark.svg index f40a8dd..3e03dcb 100644 --- a/docs/assets/benchmark.svg +++ b/docs/assets/benchmark.svg @@ -4,49 +4,51 @@ Apple M2 Max · JDK 17 · databases in Docker on a LAN server · default settings · higher is better 0 - - 20k - - 40k - - 60k + + 20k + + 40k + + 60k + + 80k - 80k rows/s + 100k rows/s H2 → MySQL - - 19.5k + + 20.2k H2 → MariaDB - - 21.1k + + 26.0k H2 → PostgreSQL - - 31.3k + + 28.8k H2 → Oracle - - 47.9k + + 41.6k H2 → SQL Server - - 16.7k + + 15.1k H2 → Db2 - - 21.6k + + 18.7k H2 → ClickHouse - - 47.4k + + 36.8k H2 → DuckDB - - 35.1k + + 37.2k H2 → SQL package - - 76.1k + + 81.0k H2 → Parquet package - - 35.4k + + 34.6k H2 → CSV package - - 34.7k + + 36.7k SQL package → PostgreSQL - - 8.2k + + 19.8k diff --git a/docs/assets/feature-map.png b/docs/assets/feature-map.png index 1284b38..1e9baa8 100644 Binary files a/docs/assets/feature-map.png and b/docs/assets/feature-map.png differ diff --git a/docs/assets/login.png b/docs/assets/login.png deleted file mode 100644 index 7e629d0..0000000 Binary files a/docs/assets/login.png and /dev/null differ diff --git a/docs/assets/sqljam-sync.mp4 b/docs/assets/sqljam-sync.mp4 index a1dbcb0..8de7928 100644 Binary files a/docs/assets/sqljam-sync.mp4 and b/docs/assets/sqljam-sync.mp4 differ diff --git a/docs/assets/sync-tasks.png b/docs/assets/sync-tasks.png index c557a35..fbf4c9f 100644 Binary files a/docs/assets/sync-tasks.png and b/docs/assets/sync-tasks.png differ diff --git a/docs/assets/table-ddl.png b/docs/assets/table-ddl.png deleted file mode 100644 index b0b072a..0000000 Binary files a/docs/assets/table-ddl.png and /dev/null differ diff --git a/docs/blogger/sqljam-en.md b/docs/blogger/sqljam-en.md index 836e4ee..f19cec5 100644 --- a/docs/blogger/sqljam-en.md +++ b/docs/blogger/sqljam-en.md @@ -31,7 +31,7 @@ SqlJam reads **one metadata tree** and generates SQL with a **dialect chosen by | Spreadsheets need CSV | CSV packages with your delimiter, quote, NULL text, header, encoding (UTF-8 with BOM, GBK and more) and date format, exact types kept in `manifest.json`, CSV files of other tools loaded too | | An import went wrong | **One transaction** by default, rolled back on any error, or **commit every N rows**. **Skip rows with errors** goes on and logs each skipped row. **Confirm before commit** reviews a successful import first | | Did every row arrive? | A **migration report** for every import and export, also when it fails or is cancelled: rows per table, skipped rows with their errors, target rows counted afterwards, created objects and where it stopped. **Import History** lists every report, Markdown, HTML or JSON on export | -| A copy has to stay up to date | **Sync Tasks** copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam or by the system scheduler when it is closed, vector collections included, a report for every run | +| A copy has to stay up to date | **Sync Tasks** copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam while it is open or by your own scheduler through its command line, vector collections included, a report for every run | | Rows exist already | **Update or insert by key** or **skip existing by key**: the primary key or the columns of a unique index match the rows, insert is the default | | Warehouses apart from OLTP | DuckDB and ClickHouse data sources, grouped as OLAP databases | | Only part of a table | Data viewer query (columns, WHERE, GROUP BY, ORDER BY) and export of the rows of the query | @@ -42,7 +42,7 @@ SqlJam reads **one metadata tree** and generates SQL with a **dialect chosen by | Embeddings move with their search | Vectors of pgvector, MySQL, MariaDB, Oracle, SQL Server, Db2, DuckDB and ClickHouse keep their dimensions, vector indexes keep their distances and options | | Embeddings live in a vector database | Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma sit in the tree as **vector databases**: browse their databases, collections, partitions, tenants and namespaces, page through the records, then import collections straight into a database with vectors: ids, vectors, a column of each field and the whole payload as JSON | | Database behind a bastion host | **SSH tunnel** per data source with a password or a private key, host keys trusted on first use, a broken tunnel opens again by itself | -| Which server, how healthy? | **Info** shows the overview and the health of a data source or a vector database, and a **Dashboard** of live charts: sessions, transactions, rows, cache, locks, network, CPU and memory | +| Which server, how healthy? | **Info** shows the overview and the health of a data source or a vector database, and a **Dashboard** of live charts: sessions, transactions, rows, cache, locks, network, CPU and memory, collections and records of vector databases | | Long values, rows for a ticket | One line per cell, a double click shows the whole value, **Copy Rows As** CSV, TSV, JSON or Markdown | | Many data sources | Grouped as relational, OLAP and vector databases with their logos, a **filter** above the tree | @@ -87,7 +87,7 @@ A vector database is a data source of the **Vector databases** category, with an Every data table shows one line per cell. A double click or **Shift+Enter** opens the whole value with JSON indented and vectors described, a header sorts the rows of the page, and **Copy Rows As** copies the selected rows as CSV, TSV, JSON or Markdown. **Info** on the toolbar shows the server, the driver, the session and the health of the selected data source. -Three tutorial videos of about 2 minutes each walk through SqlJam: [SQL databases](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sql.mp4) (query, export into files, import into PostgreSQL, the SQL editor, a copy into SQL Server), [vector databases](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-vectors.mp4) (a Qdrant collection, its import into PostgreSQL, tenants of Weaviate) and [scheduled sync and reports](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sync.mp4) (a sync task of the shop into PostgreSQL, its reports and the system scheduler). +Three tutorial videos of about 2 minutes each walk through SqlJam: [SQL databases](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sql.mp4) (query, export into files, import into PostgreSQL, the SQL editor, a copy into SQL Server), [vector databases](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-vectors.mp4) (a Qdrant collection, its import into PostgreSQL, tenants of Weaviate) and [scheduled sync and reports](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sync.mp4) (a sync task of the shop into PostgreSQL, its reports and its command line). | 1. Data source | 2. Export wizard | 3. Progress | |---|---|---| @@ -284,25 +284,40 @@ All settings live in `bin/sqljam.properties` next to the runnable jar. Settings | `sqljam.vdb.connections.file` | `${sqljam.home}/vdb-connections.json` | Saved vector databases | | `sqljam.ssh.known-hosts.file` | `${sqljam.home}/ssh_known_hosts` | Host keys of the SSH servers of tunnels | + +Sync tasks run without the window too: **Copy Command** in Transfer > Sync Tasks copies the command line of a task, which you put into the scheduler of your system yourself, SqlJam never changes it. Remember the passwords of its data sources and set the task to Run Now only in SqlJam, so that it does not run twice. + +```text +# crontab of macOS and Linux (crontab -e): one task every 15 minutes +*/15 * * * * /opt/sqljam/sqljam.sh sync --task "Shop to PostgreSQL" >> ~/.sqljam/sync.log 2>&1 +# or every 5 minutes, each task runs when its schedule in SqlJam is due +*/5 * * * * /opt/sqljam/sqljam.sh sync --due >> ~/.sqljam/sync.log 2>&1 +``` + +```text +:: Windows, in a console (or the same command in the Task Scheduler) +schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat sync --task \"Shop to PostgreSQL\"" +``` + ## 8. Performance ![Benchmark](https://raw.githubusercontent.com/paganini2008/sqljam/master/docs/assets/benchmark.png) | Scenario (200,000 rows × 6 columns) | Time | Rows/s | |---|---|---| -| H2 → MySQL | 10.3 s | 19.5k | -| H2 → MariaDB | 9.5 s | 21.1k | -| H2 → PostgreSQL | 6.4 s | 31.3k | -| H2 → Oracle | 4.2 s | 47.9k | -| H2 → SQL Server | 12.0 s | 16.7k | -| H2 → Db2 | 9.3 s | 21.6k | -| H2 → ClickHouse | 4.2 s | 47.4k | -| H2 → DuckDB | 5.7 s | 35.1k | -| H2 → SQL package | 2.6 s | 76.1k | -| H2 → Parquet package | 5.7 s | 35.4k | -| H2 → CSV package | 5.8 s | 34.7k | -| SQL package → PostgreSQL | 24.3 s | 8.2k | -| Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload) | 18.4 s | 1.1k | +| H2 → MySQL | 9.9 s | 20.2k | +| H2 → MariaDB | 7.7 s | 26.0k | +| H2 → PostgreSQL | 6.9 s | 28.8k | +| H2 → Oracle | 4.8 s | 41.6k | +| H2 → SQL Server | 13.3 s | 15.1k | +| H2 → Db2 | 10.7 s | 18.7k | +| H2 → ClickHouse | 5.4 s | 36.8k | +| H2 → DuckDB | 5.4 s | 37.2k | +| H2 → SQL package | 2.5 s | 81.0k | +| H2 → Parquet package | 5.8 s | 34.6k | +| H2 → CSV package | 5.5 s | 36.7k | +| SQL package → PostgreSQL | 10.1 s | 19.8k | +| Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload) | 18.3 s | 1.1k | Environment: Apple M2 Max, 32 GB, JDK 17. The databases run in Docker on a server of the local network (about 100 Mbit/s), H2, DuckDB and the packages are local. Default settings. Each scenario is measured by `TransferBenchmark`. diff --git a/docs/blogger/sqljam-medium.md b/docs/blogger/sqljam-medium.md index 3ffd8d3..29ced3e 100644 --- a/docs/blogger/sqljam-medium.md +++ b/docs/blogger/sqljam-medium.md @@ -28,7 +28,7 @@ SqlJam reads one metadata tree and generates SQL with a dialect chosen by target - **Spreadsheets need CSV** → CSV packages with your delimiter, quote, NULL text, header, encoding and date format, exact types kept in manifest.json, CSV files of other tools loaded too - **An import went wrong** → one transaction by default, rolled back on any error, or commit every N rows. Skip rows with errors goes on and logs each skipped row. Confirm before commit reviews a successful import first - **Did every row arrive?** → a migration report for every import and export, also when it fails or is cancelled: rows per table, skipped rows with their errors, target rows counted afterwards, created objects and where it stopped. Import History lists every report, Markdown, HTML or JSON on export -- **A copy has to stay up to date** → Sync Tasks copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam or by the system scheduler when it is closed, vector collections included, a report for every run +- **A copy has to stay up to date** → Sync Tasks copy the changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam while it is open or by your own scheduler through its command line, vector collections included, a report for every run - **Rows exist already** → update or insert by key, or skip existing by key: the primary key or the columns of a unique index match the rows - **Warehouses apart from OLTP** → DuckDB and ClickHouse data sources, grouped as OLAP databases - **Only part of a table** → a data viewer query (columns, WHERE, GROUP BY, ORDER BY) and export of its rows @@ -39,7 +39,7 @@ SqlJam reads one metadata tree and generates SQL with a dialect chosen by target - **Embeddings move with their search** → vectors of pgvector, MySQL, MariaDB, Oracle, SQL Server, Db2, DuckDB and ClickHouse keep their dimensions, vector indexes keep their distances and options - **Embeddings live in a vector database** → Milvus, Qdrant, Weaviate, Pinecone, Elasticsearch, OpenSearch and Chroma sit in the tree as vector databases. Browse their databases, collections, partitions, tenants and namespaces, page through the records, then import collections straight into a database with vectors: ids, vectors, a column of each field and the whole payload as JSON - **Database behind a bastion host** → an SSH tunnel per data source with a password or a private key, host keys trusted on first use, a broken tunnel opens again by itself -- **Which server, how healthy?** → Info shows the overview and the health of a data source or a vector database, and a Dashboard of live charts: sessions, transactions, rows, cache, locks, network, CPU and memory +- **Which server, how healthy?** → Info shows the overview and the health of a data source or a vector database, and a Dashboard of live charts: sessions, transactions, rows, cache, locks, network, CPU and memory, collections and records of vector databases - **Long values, rows for a ticket** → one line per cell, a double click shows the whole value, Copy Rows As CSV, TSV, JSON or Markdown - **Many data sources** → grouped as relational, OLAP and vector databases with their logos, a filter above the tree @@ -268,25 +268,28 @@ All settings live in bin/sqljam.properties next to the runnable jar. Settings ch - **sqljam.vdb.connections.file** = ${sqljam.home}/vdb-connections.json, saved vector databases - **sqljam.ssh.known-hosts.file** = ${sqljam.home}/ssh_known_hosts, host keys of the SSH servers of tunnels + +Sync tasks run without the window too. Copy Command in Transfer > Sync Tasks copies the command line of a task, which you put into the scheduler of your system yourself, SqlJam never changes it. For example a line of crontab: */15 * * * * /opt/sqljam/sqljam.sh sync --task "Shop to PostgreSQL". On Windows: schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat sync --task Shop". Remember the passwords of its data sources and set the task to Run Now only in SqlJam, so that it does not run twice. + ## Performance ![Benchmark](https://raw.githubusercontent.com/paganini2008/sqljam/master/docs/assets/benchmark.png) 200,000 rows × 6 columns, Apple M2 Max, 32 GB, JDK 17, databases in Docker on a server of the local network (about 100 Mbit/s), H2, DuckDB and the packages local, default settings: -- H2 → MySQL: 10.3 s, 19.5k rows/s -- H2 → MariaDB: 9.5 s, 21.1k rows/s -- H2 → PostgreSQL: 6.4 s, 31.3k rows/s -- H2 → Oracle: 4.2 s, 47.9k rows/s -- H2 → SQL Server: 12.0 s, 16.7k rows/s -- H2 → Db2: 9.3 s, 21.6k rows/s -- H2 → ClickHouse: 4.2 s, 47.4k rows/s -- H2 → DuckDB: 5.7 s, 35.1k rows/s -- H2 → SQL package: 2.6 s, 76.1k rows/s -- H2 → Parquet package: 5.7 s, 35.4k rows/s -- H2 → CSV package: 5.8 s, 34.7k rows/s -- SQL package → PostgreSQL: 24.3 s, 8.2k rows/s -- Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload): 18.4 s, 1.1k rows/s +- H2 → MySQL: 9.9 s, 20.2k rows/s +- H2 → MariaDB: 7.7 s, 26.0k rows/s +- H2 → PostgreSQL: 6.9 s, 28.8k rows/s +- H2 → Oracle: 4.8 s, 41.6k rows/s +- H2 → SQL Server: 13.3 s, 15.1k rows/s +- H2 → Db2: 10.7 s, 18.7k rows/s +- H2 → ClickHouse: 5.4 s, 36.8k rows/s +- H2 → DuckDB: 5.4 s, 37.2k rows/s +- H2 → SQL package: 2.5 s, 81.0k rows/s +- H2 → Parquet package: 5.8 s, 34.6k rows/s +- H2 → CSV package: 5.5 s, 36.7k rows/s +- SQL package → PostgreSQL: 10.1 s, 19.8k rows/s +- Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload): 18.3 s, 1.1k rows/s Quality: a full cross-database import matrix with every column type of every database, SQL, Parquet and CSV package round trips, commit and roll back verified on every database, copies in the same schema, old-version SQL executed on real servers, UI and boundary tests. diff --git a/docs/blogger/sqljam-zh.md b/docs/blogger/sqljam-zh.md index 9de6500..2e83fbd 100644 --- a/docs/blogger/sqljam-zh.md +++ b/docs/blogger/sqljam-zh.md @@ -31,7 +31,7 @@ SqlJam 用**一棵元数据树 + 按目标库和版本选择的方言**,把这 | 表格工具要 CSV | CSV 导出包可选分隔符、引号、NULL 表示、表头、编码(Excel 用的 UTF-8 BOM、GBK 等)和日期格式,`manifest.json` 记录每列类型,导回时精确还原,也能加载其他工具的 CSV 文件 | | 导错了怎么办 | 默认**一个事务**:出错整体回滚,也可以**每 N 行提交一次**。勾选**跳过出错的行**则继续导入,每条跳过的记录都写进日志,可筛选、可保存。勾选**提交前确认**,导入成功后先看结果再 **Commit** 或 **Roll Back** | | 数据到底全过去了没有 | 每次导入导出都有**迁移报告**,成功、失败、取消或回滚都有:每张表的源行数、写入行数、跳过行数,结束后重新统计的目标行数和 ✓ / ✗ 核对结果,创建了哪些对象,每条跳过的行和原因,停在哪张表的第几行,以及中断的错误。**View Report** 单独一页打开,**Transfer → Import History** 列出全部历史报告,可导出 Markdown、HTML、JSON | -| 副本要一直保持最新 | **Sync Tasks** 定时同步:按更新时间列或递增主键找出上次之后变化的行,每 N 分钟或每天定点运行。首次全量,提交成功后才移动水位,连接类错误自动重试,数据类错误不重试。可以由 SqlJam 在打开时运行,也可以登记到**系统调度器**(crontab、Windows 任务计划),SqlJam 关着也照跑。向量库集合同样可以同步,每次同步都有迁移报告 | +| 副本要一直保持最新 | **Sync Tasks** 定时同步:按更新时间列或递增主键找出上次之后变化的行,每 N 分钟或每天定点运行。首次全量,提交成功后才移动水位,连接类错误自动重试,数据类错误不重试。SqlJam 打开时自动运行,关着时可以复制任务的命令行,自己填进 crontab 或 Windows 任务计划,SqlJam 不会改动系统。向量库集合同样可以同步,每次同步都有迁移报告 | | 目标已有部分数据 | **按主键更新或插入**:主键(或自选的唯一索引列)相同的行更新,其余插入。**按主键跳过已存在的行**:已有的行保持不变,只插入新行。默认是插入 | | 数仓和业务库割裂 | DuckDB、ClickHouse 作为 OLAP 数据源,和关系型数据库分组展示 | | 只要表的一部分 | 数据页查询(列、WHERE、GROUP BY、ORDER BY),只导出查询结果的行 | @@ -42,7 +42,7 @@ SqlJam 用**一棵元数据树 + 按目标库和版本选择的方言**,把这 | 向量检索跟着数据走 | pgvector、MySQL、MariaDB、Oracle、SQL Server、Db2、DuckDB、ClickHouse 的向量保留维度,向量索引保留距离和参数 | | 向量存在向量数据库里 | Milvus、Qdrant、Weaviate、Pinecone、Elasticsearch、OpenSearch、Chroma 作为**向量数据库**出现在连接树中:浏览数据库、集合、分区、租户和命名空间,分页查看记录,再把集合直接写进支持向量的数据库:id、向量、每个字段各成一列,完整 payload 保存为 JSON | | 数据库在跳板机后面 | 每个数据源可配 **SSH 隧道**,用密码或私钥认证,主机密钥首次信任后记住,隧道断开后自动重连 | -| 连的是哪台服务器,状态如何 | **信息页**显示数据源或向量数据库的概览和健康状况。**Dashboard** 子页画最近 5 分钟的实时曲线,每 1 到 30 秒采样一次:会话、事务、语句、行数、缓存命中、锁等待、网络、CPU、内存和库大小,取自各数据库自己的统计视图。嵌入式数据库跑在 SqlJam 进程里,显示 SqlJam 的 CPU 和内存。服务器不提供的指标会列出原因 | +| 连的是哪台服务器,状态如何 | **信息页**显示数据源或向量数据库的概览和健康状况。**Dashboard** 子页画最近 5 分钟的实时曲线,每 1 到 30 秒采样一次:会话、事务、语句、行数、缓存命中、锁等待、网络、CPU、内存和库大小,取自各数据库自己的统计视图。嵌入式数据库跑在 SqlJam 进程里,显示 SqlJam 的 CPU 和内存。向量数据库显示集合数和记录数,Elasticsearch、OpenSearch 还有 CPU、堆内存、写入和查询速率,Qdrant 还有请求数和内存。服务器不提供的指标会列出原因 | | 长内容,要把几行贴进工单 | 单元格只显示一行,双击查看完整内容,**Copy Rows As** 复制为 CSV、TSV、JSON 或 Markdown | | 数据源太多 | 按关系型、OLAP、向量数据库分组并显示各自的图标,树上方的**过滤框**按名称或类型查找 | @@ -87,7 +87,7 @@ bin/ 所有数据表格每格只显示一行,双击或 **Shift+Enter** 查看完整内容(JSON 自动缩进,向量显示维度),点表头对本页排序,**Copy Rows As** 把选中的行复制为 CSV、TSV、JSON 或 Markdown。工具栏的 **Info** 显示所选数据源的服务器、驱动、会话和健康状况。 -三段教学视频,每段约 2 分钟:[SQL 数据库](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sql.mp4)(筛选行、导出到文件、导出包导入 PostgreSQL、SQL 查询器、直接复制到 SQL Server),[向量数据库](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-vectors.mp4)(浏览 Qdrant 集合、导入 PostgreSQL、Weaviate 租户),[定时同步与迁移报告](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sync.mp4)(示例库同步到 PostgreSQL、首次全量和增量、查看报告、交给系统调度器)。 +三段教学视频,每段约 2 分钟:[SQL 数据库](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sql.mp4)(筛选行、导出到文件、导出包导入 PostgreSQL、SQL 查询器、直接复制到 SQL Server),[向量数据库](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-vectors.mp4)(浏览 Qdrant 集合、导入 PostgreSQL、Weaviate 租户),[定时同步与迁移报告](https://github.com/paganini2008/sqljam/blob/master/docs/assets/sqljam-sync.mp4)(示例库同步到 PostgreSQL、首次全量和增量、查看报告、复制任务的命令行)。 | 1. 数据源 | 2. 导出向导 | 3. 进度 | |---|---|---| @@ -284,25 +284,40 @@ try (VdbClient client = VdbType.QDRANT.createClient(new VdbSource(VdbType.QDRANT | `sqljam.vdb.connections.file` | `${sqljam.home}/vdb-connections.json` | 保存的向量数据库 | | `sqljam.ssh.known-hosts.file` | `${sqljam.home}/ssh_known_hosts` | SSH 隧道服务器的主机密钥 | + +同步任务也可以不开窗口运行:在 Transfer > Sync Tasks 里选中任务,点 **Copy Command** 复制它的完整命令行,再自己填进系统的调度器。SqlJam 不会改动你的系统。注意记住相关数据源的密码,并把任务在 SqlJam 里设为 Run Now only,避免两边重复运行。 + +```text +# macOS、Linux 的 crontab(crontab -e):每 15 分钟运行一个任务 +*/15 * * * * /opt/sqljam/sqljam.sh sync --task "Shop to PostgreSQL" >> ~/.sqljam/sync.log 2>&1 +# 或者每 5 分钟检查一次,各任务按 SqlJam 里设的时间到点才运行 +*/5 * * * * /opt/sqljam/sqljam.sh sync --due >> ~/.sqljam/sync.log 2>&1 +``` + +```text +:: Windows 控制台(也可以把同样的命令填进任务计划程序) +schtasks /Create /TN "SqlJam sync" /SC MINUTE /MO 15 /TR "C:\SqlJam\sqljam.bat sync --task \"Shop to PostgreSQL\"" +``` + ## 8. Performance ![Benchmark](https://raw.githubusercontent.com/paganini2008/sqljam/master/docs/assets/benchmark.png) | 场景(20 万行 × 6 列) | 耗时 | 行/秒 | |---|---|---| -| H2 → MySQL | 10.3 s | 19.5k | -| H2 → MariaDB | 9.5 s | 21.1k | -| H2 → PostgreSQL | 6.4 s | 31.3k | -| H2 → Oracle | 4.2 s | 47.9k | -| H2 → SQL Server | 12.0 s | 16.7k | -| H2 → Db2 | 9.3 s | 21.6k | -| H2 → ClickHouse | 4.2 s | 47.4k | -| H2 → DuckDB | 5.7 s | 35.1k | -| H2 → SQL 导出包 | 2.6 s | 76.1k | -| H2 → Parquet 导出包 | 5.7 s | 35.4k | -| H2 → CSV 导出包 | 5.8 s | 34.7k | -| SQL 导出包 → PostgreSQL | 24.3 s | 8.2k | -| Qdrant → PostgreSQL (2 万个点,256 维向量和 payload) | 18.4 s | 1.1k | +| H2 → MySQL | 9.9 s | 20.2k | +| H2 → MariaDB | 7.7 s | 26.0k | +| H2 → PostgreSQL | 6.9 s | 28.8k | +| H2 → Oracle | 4.8 s | 41.6k | +| H2 → SQL Server | 13.3 s | 15.1k | +| H2 → Db2 | 10.7 s | 18.7k | +| H2 → ClickHouse | 5.4 s | 36.8k | +| H2 → DuckDB | 5.4 s | 37.2k | +| H2 → SQL 导出包 | 2.5 s | 81.0k | +| H2 → Parquet 导出包 | 5.8 s | 34.6k | +| H2 → CSV 导出包 | 5.5 s | 36.7k | +| SQL 导出包 → PostgreSQL | 10.1 s | 19.8k | +| Qdrant → PostgreSQL (2 万个点,256 维向量和 payload) | 18.3 s | 1.1k | 环境:Apple M2 Max / 32 GB / JDK 17。数据库在局域网服务器的 Docker 中(约 100 Mbit/s),H2、DuckDB 和导出包在本机。默认配置。每个场景由 `TransferBenchmark` 测得。 diff --git a/docs/index.html b/docs/index.html index ce9ac2f..ee0a9a9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -237,7 +237,7 @@

Everything a table needs on the other side

One transaction

Checked by status, type and SHA-256, all or nothing or bad rows skipped and logged, confirmed before the commit if you want.

Progress you can see

Overall percentage, per-table progress, error log and cancel.

Migration reports

Every import and export leaves a report, also when it fails or is cancelled: rows per table checked against the target, skipped rows, objects and where it stopped, kept in the import history.

-

Scheduled sync

Changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam or the system scheduler, vector collections too, a report for every run.

+

Scheduled sync

Changed rows by an update time or an increasing key, every N minutes or every day, run by SqlJam or by your own scheduler through its command line, vector collections too, a report for every run.

Dark by default

A modern JavaFX UI with 7 switchable themes.

Parquet & CSV

Columnar or text packages and files of other tools, exact types, through an embedded DuckDB.

OLAP sources

DuckDB and ClickHouse next to the relational databases.

@@ -381,15 +381,15 @@

Ways to move a table

sjm_emp 250 → 250 ✓
- Sync Tasks with a task run by SqlJam and a task run by the system scheduler -

Sync tasks copy the rows which changed since the last run, by a column of the update time or an increasing key, every N minutes or every day. SqlJam runs them while it is open, or the system scheduler runs them when it is closed. Vector collections sync too, every run leaves a report.

+ Sync Tasks with a task which ran and a task every night +

Sync tasks copy the rows which changed since the last run, by a column of the update time or an increasing key, every N minutes or every day. SqlJam runs them while it is open. Copy Command gives the command line of a task for a cron or the Task Scheduler of your own, SqlJam never changes the scheduler of your system. Vector collections sync too, every run leaves a report.

sqljam.sh sync --list
 sqljam.sh sync --task "Shop to PostgreSQL"
 sqljam.sh sync --due   # one line of cron for every task
Dashboard of a MySQL data source with live charts of threads, statements, network and buffer pool hits -

Info > Dashboard draws live charts of the last 5 minutes: sessions, transactions, statements, rows, cache hits, locks, network, CPU and memory, read from the statistics of each database. Metrics which a server does not tell are listed with the reason.

+

Info > Dashboard draws live charts of the last 5 minutes: sessions, transactions, statements, rows, cache hits, locks, network, CPU and memory, read from the statistics of each database. Vector databases show their collections and records, Elasticsearch and OpenSearch also CPU, heap, indexing and searches, Qdrant requests and memory. Metrics which a server does not tell are listed with the reason.

Sample every 1, 2, 5, 10 or 30 s · Pause · Resume
@@ -401,7 +401,7 @@

Ways to move a table

Performance

Tens of thousands of rows per second

-
76.1krows/s · H2 → SQL package
+
81.0krows/s · H2 → SQL package
100%cross-database pairs pass
SQL · Parquet · CSVexport package formats
Upsertupdate or skip rows by key
@@ -411,19 +411,19 @@

Tens of thousands of rows per second

- - - - - - - - - - - - - + + + + + + + + + + + + +
Scenario (200,000 rows × 6 columns)TimeRows/s
H2 → MySQL10.3 s19.5k
H2 → MariaDB9.5 s21.1k
H2 → PostgreSQL6.4 s31.3k
H2 → Oracle4.2 s47.9k
H2 → SQL Server12.0 s16.7k
H2 → Db29.3 s21.6k
H2 → ClickHouse4.2 s47.4k
H2 → DuckDB5.7 s35.1k
H2 → SQL package2.6 s76.1k
H2 → Parquet package5.7 s35.4k
H2 → CSV package5.8 s34.7k
SQL package → PostgreSQL24.3 s8.2k
Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload)18.4 s1.1k
H2 → MySQL9.9 s20.2k
H2 → MariaDB7.7 s26.0k
H2 → PostgreSQL6.9 s28.8k
H2 → Oracle4.8 s41.6k
H2 → SQL Server13.3 s15.1k
H2 → Db210.7 s18.7k
H2 → ClickHouse5.4 s36.8k
H2 → DuckDB5.4 s37.2k
H2 → SQL package2.5 s81.0k
H2 → Parquet package5.8 s34.6k
H2 → CSV package5.5 s36.7k
SQL package → PostgreSQL10.1 s19.8k
Qdrant → PostgreSQL (20,000 points, 256-d vectors and payload)18.3 s1.1k
diff --git a/src/main/java/com/github/sqljam/face/SyncCommand.java b/src/main/java/com/github/sqljam/face/SyncCommand.java index 48f8a97..2da4dea 100644 --- a/src/main/java/com/github/sqljam/face/SyncCommand.java +++ b/src/main/java/com/github/sqljam/face/SyncCommand.java @@ -33,8 +33,8 @@ import com.github.sqljam.face.view.ProfileRegistry; /** - * @Description: SyncCommand runs sync tasks from the command line, without the window, so that the scheduler of the - * system runs them when SqlJam is closed: + * @Description: SyncCommand runs sync tasks from the command line, without the window, e.g. from a cron of the + * user when SqlJam is closed (SqlJam does not register them with the system itself): * *
  *               sqljam sync --list                    the tasks with their schedules and last runs
@@ -171,11 +171,12 @@ private static void list(SyncScheduler scheduler, PrintStream out) {
             out.println("No sync tasks, create them in SqlJam: Transfer > Sync Tasks");
             return;
         }
-        out.println(String.join("\t", "ID", "Name", "Runner", "Schedule", "Next run", "Last run", "Last status"));
+        out.println(String.join("\t", "ID", "Name", "Schedule", "Next run", "Last run", "Last run by",
+                "Last status"));
         for (SyncTask task : tasks) {
             long next = scheduler.nextRunAt(task);
-            out.println(List.of(task.getId(), task.getName(), task.getRunner().name(), schedule(task), next >= 0
-                    ? ReportExporter.time(next) : "", ReportExporter.time(task.getLastRunAt()), task.getLastStatus()
+            out.println(List.of(task.getId(), task.getName(), schedule(task), next >= 0
+                    ? ReportExporter.time(next) : "", ReportExporter.time(task.getLastRunAt()), StringUtils.defaultString(task.getLastRunBy()), task.getLastStatus()
                     != null ? ReportExporter.words(task.getLastStatus()) : "").stream().collect(Collectors.joining(
                     "\t")));
         }
diff --git a/src/main/java/com/github/sqljam/face/model/SyncTask.java b/src/main/java/com/github/sqljam/face/model/SyncTask.java
index 4324613..4a83ad6 100644
--- a/src/main/java/com/github/sqljam/face/model/SyncTask.java
+++ b/src/main/java/com/github/sqljam/face/model/SyncTask.java
@@ -59,21 +59,6 @@ public enum WatermarkType {
         INCREASING_KEY
     }
 
-    /**
-     * Who runs the task on its schedule
-     */
-    public enum Runner {
-        /**
-         * The scheduler of SqlJam, while it is open
-         */
-        SQLJAM,
-        /**
-         * The scheduler of the system (crontab, Task Scheduler of Windows) by the command line, also when SqlJam
-         * is closed
-         */
-        SYSTEM
-    }
-
     public enum ScheduleType {
         /**
          * Run Now only
@@ -164,7 +149,6 @@ public String toString() {
     private String targetSchema;
     private List tables = new ArrayList<>();
     private ScheduleType scheduleType = ScheduleType.INTERVAL;
-    private Runner runner = Runner.SQLJAM;
     private int intervalMinutes = 60;
     /**
      * Time of a daily run, HH:mm
diff --git a/src/main/java/com/github/sqljam/face/service/SyncCommandLine.java b/src/main/java/com/github/sqljam/face/service/SyncCommandLine.java
new file mode 100644
index 0000000..1a6624e
--- /dev/null
+++ b/src/main/java/com/github/sqljam/face/service/SyncCommandLine.java
@@ -0,0 +1,88 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.service;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+import java.util.stream.Collectors;
+
+import com.github.sqljam.config.Config;
+import com.github.sqljam.face.model.SyncTask;
+
+/**
+ * @Description: SyncCommandLine tells the command which runs a sync task without the window, e.g. to put it into a
+ *               scheduler of the system (cron, launchd, the Task Scheduler of Windows) by hand. SqlJam does not
+ *               register it there itself.
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+public final class SyncCommandLine {
+
+    private SyncCommandLine() {
+    }
+
+    /**
+     * The command of the task for the shell of this system: Java with the jar of SqlJam or the launcher of its
+     * installation, sqljam.sh or sqljam.bat when SqlJam does not run from either
+     */
+    public static String of(SyncTask task, String osName) {
+        boolean windows = osName != null && osName.toLowerCase(Locale.ENGLISH).startsWith("windows");
+        List arguments = new ArrayList<>(launcher());
+        if (arguments.isEmpty()) {
+            arguments.add(windows ? "sqljam.bat" : "sqljam.sh");
+        }
+        arguments.addAll(List.of("sync", "--task", task.getId()));
+        return arguments.stream().map(argument -> windows ? windowsQuote(argument) : shellQuote(argument))
+                .collect(Collectors.joining(" "));
+    }
+
+    /**
+     * Java with the jar of SqlJam, or the launcher of an installation of SqlJam
+     */
+    static List launcher() {
+        String command = ProcessHandle.current().info().command().orElse(null);
+        if (command == null) {
+            return List.of();
+        }
+        String name = new File(command).getName().toLowerCase(Locale.ENGLISH);
+        if (!name.equals("java") && !name.equals("java.exe") && !name.equals("javaw.exe")) {
+            // The launcher of the installation passes its arguments to SqlJam
+            return List.of(command);
+        }
+        File jarDirectory = Config.getJarDirectory();
+        if (jarDirectory == null) {
+            return List.of();
+        }
+        try {
+            File jar = new File(Config.class.getProtectionDomain().getCodeSource().getLocation().toURI());
+            return List.of(command, "-Dsqljam.vmoptions.applied=true", "-jar", jar.getAbsolutePath());
+        } catch (Exception e) {
+            return List.of();
+        }
+    }
+
+    static String shellQuote(String argument) {
+        return argument.matches("[A-Za-z0-9_./:=@%+-]+") ? argument : "'" + argument.replace("'", "'\\''") + "'";
+    }
+
+    static String windowsQuote(String argument) {
+        return argument.matches("[A-Za-z0-9_./:=\\\\-]+") ? argument : "\"" + argument.replace("\"", "\\\"")
+                + "\"";
+    }
+}
diff --git a/src/main/java/com/github/sqljam/face/service/SyncScheduler.java b/src/main/java/com/github/sqljam/face/service/SyncScheduler.java
index c162613..f051c01 100644
--- a/src/main/java/com/github/sqljam/face/service/SyncScheduler.java
+++ b/src/main/java/com/github/sqljam/face/service/SyncScheduler.java
@@ -49,8 +49,8 @@
 import lombok.extern.slf4j.Slf4j;
 
 /**
- * @Description: SyncScheduler runs the sync tasks in SqlJam while it is open, like the schedulers of DBeaver and
- *               DataGrip: every N minutes or every day at a time, and Run Now. A task never runs twice at once, a run
+ * @Description: SyncScheduler runs the sync tasks in SqlJam while it is open, like the tasks of DBeaver: every N
+ *               minutes or every day at a time, and Run Now. A task never runs twice at once, a run
  *               which was missed while SqlJam was closed runs once when it starts. Errors of the connection are run
  *               again after a delay which doubles, errors of the data are not. Every run leaves a report in the
  *               history, the watermarks move on after a successful run only.
@@ -232,10 +232,6 @@ static LocalTime dailyTime(SyncTask task) {
     public void tick() {
         long now = clock.getAsLong();
         for (SyncTask task : store.getTasks()) {
-            // Tasks of the system scheduler run by the command line, not twice
-            if (task.getRunner() == SyncTask.Runner.SYSTEM) {
-                continue;
-            }
             long next = nextRunAt(task, now);
             if (next >= 0 && next <= now && !isRunning(task.getId())) {
                 runNow(task.getId());
diff --git a/src/main/java/com/github/sqljam/face/service/SystemScheduler.java b/src/main/java/com/github/sqljam/face/service/SystemScheduler.java
deleted file mode 100644
index 8d3bc0f..0000000
--- a/src/main/java/com/github/sqljam/face/service/SystemScheduler.java
+++ /dev/null
@@ -1,304 +0,0 @@
-/*
- * Copyright 2023-2026 Fred Feng
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.github.sqljam.face.service;
-
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-import java.nio.charset.StandardCharsets;
-import java.time.LocalTime;
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.List;
-import java.util.Locale;
-import java.util.concurrent.TimeUnit;
-import java.util.stream.Collectors;
-
-import org.apache.commons.lang3.StringUtils;
-import com.github.sqljam.config.Config;
-import com.github.sqljam.face.model.SyncTask;
-import lombok.extern.slf4j.Slf4j;
-
-/**
- * @Description: SystemScheduler registers sync tasks with the scheduler of the system, like DBeaver does, so that
- *               they run when SqlJam is closed: a line of the crontab on macOS and Linux, a task of the Task
- *               Scheduler on Windows. Each runs sqljam sync --task with the id of the task. Lines of the crontab
- *               of SqlJam are marked with the id, the other lines are kept as they are. Schedules which cron can
- *               not tell exactly (e.g. every 90 minutes) wake every 5 minutes and run when the task is due.
- * @Author: Fred Feng
- * @Date: 24/10/2026
- * @Version 1.0.0
- */
-@Slf4j
-public class SystemScheduler {
-
-    static final String MARK = "# sqljam-sync ";
-    static final String WINDOWS_FOLDER = "SqlJam\\";
-
-    /**
-     * Runs a command of the system with its input, returns its exit code and output
-     */
-    @FunctionalInterface
-    public interface CommandRunner {
-        Result run(List command, String input) throws IOException;
-    }
-
-    public static final class Result {
-
-        private final int exitCode;
-        private final String output;
-
-        public Result(int exitCode, String output) {
-            this.exitCode = exitCode;
-            this.output = output;
-        }
-
-        public int getExitCode() {
-            return exitCode;
-        }
-
-        public String getOutput() {
-            return output;
-        }
-    }
-
-    private final boolean windows;
-    private final List launcher;
-    private final File logFile;
-    private final CommandRunner runner;
-
-    /**
-     * @param launcher command which starts SqlJam, empty when SqlJam does not run from its jar or installation
-     */
-    public SystemScheduler(String osName, List launcher, File logFile, CommandRunner runner) {
-        this.windows = StringUtils.defaultString(osName).toLowerCase(Locale.ENGLISH).startsWith("windows");
-        this.launcher = launcher;
-        this.logFile = logFile;
-        this.runner = runner;
-    }
-
-    /**
-     * The scheduler of this system with the launcher of this SqlJam
-     */
-    public static SystemScheduler create(Config config) {
-        File home = new File(config.getString("sqljam.home", JsonStore.DEFAULT_DIRECTORY.getAbsolutePath()));
-        return new SystemScheduler(System.getProperty("os.name"), launcher(), new File(home, "sync.log"),
-                SystemScheduler::execute);
-    }
-
-    /**
-     * Java with the jar of SqlJam, or the launcher of an installation of SqlJam
-     */
-    static List launcher() {
-        String command = ProcessHandle.current().info().command().orElse(null);
-        if (command == null) {
-            return List.of();
-        }
-        String name = new File(command).getName().toLowerCase(Locale.ENGLISH);
-        if (!name.equals("java") && !name.equals("java.exe") && !name.equals("javaw.exe")) {
-            // The launcher of the installation passes its arguments to SqlJam
-            return List.of(command);
-        }
-        File jarDirectory = Config.getJarDirectory();
-        if (jarDirectory == null) {
-            return List.of();
-        }
-        try {
-            File jar = new File(Config.class.getProtectionDomain().getCodeSource().getLocation().toURI());
-            return List.of(command, "-Dsqljam.vmoptions.applied=true", "-jar", jar.getAbsolutePath());
-        } catch (Exception e) {
-            return List.of();
-        }
-    }
-
-    static Result execute(List command, String input) throws IOException {
-        Process process = new ProcessBuilder(command).redirectErrorStream(true).start();
-        try (OutputStream stdin = process.getOutputStream()) {
-            if (input != null) {
-                stdin.write(input.getBytes(StandardCharsets.UTF_8));
-            }
-        }
-        ByteArrayOutputStream output = new ByteArrayOutputStream();
-        try (InputStream stdout = process.getInputStream()) {
-            stdout.transferTo(output);
-        }
-        try {
-            if (!process.waitFor(60, TimeUnit.SECONDS)) {
-                process.destroyForcibly();
-                throw new IOException("No answer of " + command.get(0));
-            }
-        } catch (InterruptedException e) {
-            Thread.currentThread().interrupt();
-            throw new IOException(e);
-        }
-        return new Result(process.exitValue(), output.toString(StandardCharsets.UTF_8));
-    }
-
-    public boolean isAvailable() {
-        return !launcher.isEmpty();
-    }
-
-    /**
-     * Arguments of the command line of the task, the check of the time when the system wakes more often
-     */
-    List arguments(SyncTask task) {
-        List arguments = new ArrayList<>(launcher);
-        arguments.addAll(List.of("sync", "--task", task.getId()));
-        if (!isExact(task)) {
-            arguments.add("--if-due");
-        }
-        return arguments;
-    }
-
-    /**
-     * The command line which runs the task, e.g. to copy it into a scheduler of your own
-     */
-    public String getCommand(SyncTask task) {
-        return arguments(task).stream().map(argument -> windows ? windowsQuote(argument) : shellQuote(argument))
-                .collect(Collectors.joining(" "));
-    }
-
-    /**
-     * Whether the system runs the task at its times exactly, it wakes every 5 minutes otherwise
-     */
-    boolean isExact(SyncTask task) {
-        if (task.getScheduleType() == SyncTask.ScheduleType.DAILY) {
-            return true;
-        }
-        int minutes = Math.max(1, task.getIntervalMinutes());
-        if (windows) {
-            return minutes <= 1439 || minutes == 1440;
-        }
-        return minutes < 60 && 60 % minutes == 0 || minutes % 60 == 0 && 24 % (minutes / 60) == 0;
-    }
-
-    /**
-     * When cron runs the task
-     */
-    String cron(SyncTask task) {
-        if (task.getScheduleType() == SyncTask.ScheduleType.DAILY) {
-            LocalTime time = SyncScheduler.dailyTime(task);
-            return time.getMinute() + " " + time.getHour() + " * * *";
-        }
-        int minutes = Math.max(1, task.getIntervalMinutes());
-        if (minutes < 60 && 60 % minutes == 0) {
-            return minutes == 1 ? "* * * * *" : "*/" + minutes + " * * * *";
-        }
-        if (minutes % 60 == 0 && 24 % (minutes / 60) == 0) {
-            int hours = minutes / 60;
-            return hours == 24 ? "0 0 * * *" : hours == 1 ? "0 * * * *" : "0 */" + hours + " * * *";
-        }
-        return "*/5 * * * *";
-    }
-
-    /**
-     * Registers the task, or removes it when it is not run by the system on a schedule
-     */
-    public void apply(SyncTask task) throws IOException {
-        if (task.getRunner() == SyncTask.Runner.SYSTEM && task.isEnabled() && task.getScheduleType()
-                != SyncTask.ScheduleType.MANUAL) {
-            register(task);
-        } else {
-            unregister(task.getId());
-        }
-    }
-
-    public void register(SyncTask task) throws IOException {
-        if (!isAvailable()) {
-            throw new IOException("SqlJam does not run from its jar or its installation, the system can not start "
-                    + "it. Run this command on a schedule yourself: sqljam sync --task " + task.getId());
-        }
-        if (windows) {
-            List command = new ArrayList<>(List.of("schtasks", "/Create", "/F", "/TN", taskName(task
-                    .getId()), "/TR", getCommand(task)));
-            if (task.getScheduleType() == SyncTask.ScheduleType.DAILY) {
-                LocalTime time = SyncScheduler.dailyTime(task);
-                command.addAll(List.of("/SC", "DAILY", "/ST", String.format("%02d:%02d", time.getHour(), time
-                        .getMinute())));
-            } else if (isExact(task) && task.getIntervalMinutes() < 1440) {
-                command.addAll(List.of("/SC", "MINUTE", "/MO", String.valueOf(Math.max(1, task
-                        .getIntervalMinutes()))));
-            } else if (task.getIntervalMinutes() == 1440) {
-                command.addAll(List.of("/SC", "DAILY", "/ST", "00:00"));
-            } else {
-                command.addAll(List.of("/SC", "MINUTE", "/MO", "5"));
-            }
-            check(runner.run(command, null), command);
-            return;
-        }
-        List lines = crontab();
-        lines.removeIf(line -> line.endsWith(MARK + task.getId()));
-        lines.add(cron(task) + " " + getCommand(task) + " >> " + shellQuote(logFile.getAbsolutePath()) + " 2>&1 "
-                + MARK + task.getId());
-        writeCrontab(lines);
-    }
-
-    public void unregister(String taskId) throws IOException {
-        if (windows) {
-            // A task which was never registered is not there
-            runner.run(List.of("schtasks", "/Delete", "/F", "/TN", taskName(taskId)), null);
-            return;
-        }
-        List lines = crontab();
-        if (lines.removeIf(line -> line.endsWith(MARK + taskId))) {
-            writeCrontab(lines);
-        }
-    }
-
-    public boolean isRegistered(String taskId) throws IOException {
-        if (windows) {
-            return runner.run(List.of("schtasks", "/Query", "/TN", taskName(taskId)), null).getExitCode() == 0;
-        }
-        return crontab().stream().anyMatch(line -> line.endsWith(MARK + taskId));
-    }
-
-    static String taskName(String taskId) {
-        return WINDOWS_FOLDER + "sync-" + taskId;
-    }
-
-    private List crontab() throws IOException {
-        Result result = runner.run(List.of("crontab", "-l"), null);
-        // No crontab yet
-        if (result.getExitCode() != 0) {
-            return new ArrayList<>();
-        }
-        return new ArrayList<>(Arrays.asList(result.getOutput().split("\\R"))).stream().filter(StringUtils
-                ::isNotEmpty).collect(Collectors.toCollection(ArrayList::new));
-    }
-
-    private void writeCrontab(List lines) throws IOException {
-        List command = List.of("crontab", "-");
-        check(runner.run(command, lines.isEmpty() ? "" : String.join("\n", lines) + "\n"), command);
-    }
-
-    private static void check(Result result, List command) throws IOException {
-        if (result.getExitCode() != 0) {
-            throw new IOException(command.get(0) + " failed: " + StringUtils.defaultIfBlank(result.getOutput()
-                    .trim(), "exit code " + result.getExitCode()));
-        }
-    }
-
-    static String shellQuote(String argument) {
-        return argument.matches("[A-Za-z0-9_./:=@%+-]+") ? argument : "'" + argument.replace("'", "'\\''") + "'";
-    }
-
-    static String windowsQuote(String argument) {
-        return argument.matches("[A-Za-z0-9_./:=\\\\-]+") ? argument : "\"" + argument.replace("\"", "\\\"")
-                + "\"";
-    }
-}
diff --git a/src/main/java/com/github/sqljam/face/vdb/VdbDataSourceExtension.java b/src/main/java/com/github/sqljam/face/vdb/VdbDataSourceExtension.java
index 2a41095..9b4c73a 100644
--- a/src/main/java/com/github/sqljam/face/vdb/VdbDataSourceExtension.java
+++ b/src/main/java/com/github/sqljam/face/vdb/VdbDataSourceExtension.java
@@ -215,6 +215,11 @@ public Map> loadOverview() {
             }
         }
 
+        @Override
+        public java.util.function.Supplier getDashboard() {
+            return () -> new VdbMetrics(profile);
+        }
+
         @Override
         public Map> loadHealth() {
             try (VdbClient client = profile.getType().createClient(profile.toSource())) {
diff --git a/src/main/java/com/github/sqljam/face/vdb/VdbMetrics.java b/src/main/java/com/github/sqljam/face/vdb/VdbMetrics.java
new file mode 100644
index 0000000..a2255a5
--- /dev/null
+++ b/src/main/java/com/github/sqljam/face/vdb/VdbMetrics.java
@@ -0,0 +1,112 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.vdb;
+
+import java.util.LinkedHashMap;
+import java.util.List;
+import java.util.Map;
+
+import com.github.sqljam.face.service.MetricSource;
+import com.github.sqljam.vdb.VdbClient;
+import lombok.extern.slf4j.Slf4j;
+
+/**
+ * @Description: VdbMetrics reads the dashboard of a vector database by its REST API: the collections and their
+ *               records of every server, and what a server tells beyond: CPU, heap of the JVM, indexing, searches and
+ *               the store of Elasticsearch and OpenSearch, requests and memory of Qdrant. Metrics which a server does
+ *               not tell are listed after the first sample, a server which can not be reached is tried again.
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+@Slf4j
+public class VdbMetrics implements MetricSource {
+
+    static final String SAMPLE_TIME = "sample.millis";
+
+    private static final List CHARTS = List.of(
+            new Chart("Collections", Unit.COUNT, Series.gauge("Collections", "collections")),
+            new Chart("Records", Unit.COUNT, Series.gauge("Records", "records")),
+            new Chart("Records written", Unit.PER_SECOND, Series.rate("Records", "records")),
+            new Chart("CPU", Unit.PERCENT, Series.gauge("Nodes", "cpu.percent")),
+            new Chart("CPU cores used", Unit.COUNT, Series.gauge("Cores", "cpu.cores")),
+            new Chart("JVM heap", Unit.BYTES, Series.gauge("Used", "heap.used"), Series.gauge("Maximum", "heap.max")),
+            new Chart("Indexing and searches", Unit.PER_SECOND, Series.rate("Indexed", "indexing.total"), Series.rate(
+                    "Searches", "search.total")),
+            new Chart("Store", Unit.BYTES, Series.gauge("Size", "store.bytes")),
+            new Chart("Requests", Unit.PER_SECOND, Series.rate("REST and gRPC", "requests")),
+            new Chart("Memory", Unit.BYTES, Series.gauge("Resident", "memory.resident"), Series.gauge("Allocated",
+                    "memory.allocated")),
+            new Chart("Sample time", Unit.MILLIS, Series.gauge("All metrics", SAMPLE_TIME)));
+
+    private final VdbProfile profile;
+    private final Map unavailable = new LinkedHashMap<>();
+    private VdbClient client;
+    private boolean sampled;
+
+    public VdbMetrics(VdbProfile profile) {
+        this.profile = profile;
+    }
+
+    @Override
+    public List getCharts() {
+        return CHARTS;
+    }
+
+    @Override
+    public synchronized Map getUnavailable() {
+        return new LinkedHashMap<>(unavailable);
+    }
+
+    @Override
+    public synchronized Map read() throws Exception {
+        long start = System.nanoTime();
+        if (client == null) {
+            client = profile.getType().createClient(profile.toSource());
+        }
+        Map values;
+        try {
+            values = new LinkedHashMap<>(client.getMetrics());
+        } catch (RuntimeException e) {
+            // The server is not reached, a new client tries again with the next sample
+            close();
+            throw e;
+        }
+        values.put(SAMPLE_TIME, (System.nanoTime() - start) / 1_000_000.0);
+        if (!sampled) {
+            sampled = true;
+            for (Chart chart : CHARTS) {
+                for (Series series : chart.getSeries()) {
+                    series.getKeys().stream().filter(key -> !values.containsKey(key)).forEach(key -> unavailable
+                            .putIfAbsent(key, "Not told by the REST API of " + profile.getType().getDisplayName()));
+                }
+            }
+        }
+        return values;
+    }
+
+    @Override
+    public synchronized void close() {
+        if (client != null) {
+            try {
+                client.close();
+            } catch (RuntimeException e) {
+                log.debug("The client of the dashboard is closed already: {}", e.getMessage());
+            }
+            client = null;
+        }
+    }
+}
diff --git a/src/main/java/com/github/sqljam/face/view/AppContext.java b/src/main/java/com/github/sqljam/face/view/AppContext.java
index dcaf17c..1d0b714 100644
--- a/src/main/java/com/github/sqljam/face/view/AppContext.java
+++ b/src/main/java/com/github/sqljam/face/view/AppContext.java
@@ -30,7 +30,6 @@
 import com.github.sqljam.face.service.SyncRunner;
 import com.github.sqljam.face.service.SyncScheduler;
 import com.github.sqljam.face.service.SyncTaskStore;
-import com.github.sqljam.face.service.SystemScheduler;
 import com.github.sqljam.face.service.TransferService;
 import javafx.application.HostServices;
 import lombok.Getter;
@@ -56,7 +55,6 @@ public class AppContext {
     private ExampleDatabase exampleDatabase = new ExampleDatabase();
     private ReportStore reportStore;
     private SyncScheduler syncScheduler;
-    private SystemScheduler systemScheduler;
     /**
      * Shows a report on its own page, set by the main window
      */
@@ -124,20 +122,6 @@ public synchronized SyncScheduler getSyncScheduler() {
         return syncScheduler;
     }
 
-    /**
-     * The scheduler of the system which runs sync tasks by the command line
-     */
-    public synchronized SystemScheduler getSystemScheduler() {
-        if (systemScheduler == null) {
-            systemScheduler = SystemScheduler.create(settingsStore.getConfig());
-        }
-        return systemScheduler;
-    }
-
-    public synchronized void setSystemScheduler(SystemScheduler systemScheduler) {
-        this.systemScheduler = systemScheduler;
-    }
-
     public synchronized void setSyncScheduler(SyncScheduler syncScheduler) {
         this.syncScheduler = syncScheduler;
     }
diff --git a/src/main/java/com/github/sqljam/face/view/ConnectionTree.java b/src/main/java/com/github/sqljam/face/view/ConnectionTree.java
index f295169..644cb2d 100644
--- a/src/main/java/com/github/sqljam/face/view/ConnectionTree.java
+++ b/src/main/java/com/github/sqljam/face/view/ConnectionTree.java
@@ -609,17 +609,63 @@ public void restoreConnected(List ids) {
             Stream.concat(connectionItems.stream(), sourceItems.values().stream().flatMap(List::stream))
                     .filter(item -> id.equals(item.getValue().getProfile() != null ? item.getValue().getProfile()
                             .getId() : item.getValue().getSource().getId())).findFirst()
-                    .ifPresentOrElse(item -> item.setExpanded(true), () -> {
+                    .ifPresentOrElse(item -> {
+                        // Connected again without dialogs, a failure is shown in the tree
+                        if (item instanceof LazyItem) {
+                            ((LazyItem) item).quiet = true;
+                        }
+                        item.setExpanded(true);
+                    }, () -> {
                         // A data source which was deleted meanwhile
                         context.getSettings().getConnectedSources().remove(id);
                     });
         }
     }
 
+    /**
+     * The reason of an error in one short line: the message of its deepest cause without links, e.g. Connection
+     * refused instead of the message of the pool around it
+     */
+    static String summary(Throwable error) {
+        String message = null;
+        for (Throwable cause = error; cause != null; cause = cause.getCause()) {
+            if (StringUtils.isNotBlank(cause.getMessage())) {
+                message = cause.getMessage();
+            }
+        }
+        if (message == null) {
+            return Messages.format("tree.failed", error.getClass().getSimpleName());
+        }
+        String line = message.replaceAll("https?://\\S+", " ").trim().split("\\R", 2)[0].trim();
+        return Messages.format("tree.failed", StringUtils.abbreviate(StringUtils.defaultIfBlank(line, message
+                .trim()), 120));
+    }
+
+    /**
+     * Connects the data source of an error node again
+     */
+    void retry(TreeItem errorItem) {
+        if (errorItem != null && errorItem.getParent() instanceof LazyItem) {
+            ((LazyItem) errorItem.getParent()).reload();
+        }
+    }
+
+    boolean isFailed(TreeItem item) {
+        return item instanceof LazyItem && ((LazyItem) item).failed;
+    }
+
     private class LazyItem extends TreeItem {
 
         private boolean loaded;
         private boolean loading;
+        /**
+         * The data source could not be connected the last time
+         */
+        private boolean failed;
+        /**
+         * Connected when SqlJam starts, a failure shows no dialog
+         */
+        private boolean quiet;
 
         LazyItem(DbNode node) {
             super(node);
@@ -679,6 +725,8 @@ private void connect(DbNode node) {
             TaskRunner.run(() -> loadChildren(node), children -> {
                 loading = false;
                 loaded = true;
+                quiet = false;
+                setFailed(false);
                 getChildren().setAll(children);
                 if (node.getKind() == DbNode.Kind.CONNECTION || node.getKind() == DbNode.Kind.SOURCE) {
                     rememberConnected(node, true);
@@ -690,11 +738,26 @@ private void connect(DbNode node) {
                     connect(node);
                     return;
                 }
-                getChildren().setAll(Collections.singletonList(new TreeItem<>(DbNode.message(Messages.format(
-                        "tree.error", e.getMessage())))));
-                Dialogs.showError(getWindow(), Messages.format("tree.loadError", node.getLabel()), e);
+                getChildren().setAll(Collections.singletonList(new TreeItem<>(DbNode.error(summary(e),
+                        StringUtils.defaultIfBlank(e.getMessage(), e.getClass().getName())))));
+                boolean shown = !quiet;
+                quiet = false;
+                if (node.getKind() == DbNode.Kind.CONNECTION || node.getKind() == DbNode.Kind.SOURCE) {
+                    setFailed(true);
+                }
+                if (shown) {
+                    Dialogs.showError(getWindow(), Messages.format("tree.loadError", node.getLabel()), e);
+                }
             });
         }
+
+        private void setFailed(boolean failed) {
+            if (this.failed != failed) {
+                this.failed = failed;
+                // The cell of the data source shows its mark
+                refresh();
+            }
+        }
     }
 
     private class DbNodeCell extends TreeCell {
@@ -705,6 +768,9 @@ private class DbNodeCell extends TreeCell {
                 if (node != null && node.getKind() == DbNode.Kind.TABLE && event.getButton() == MouseButton.PRIMARY
                         && event.getClickCount() == 2 && onOpenTable != null) {
                     onOpenTable.accept(node);
+                } else if (node != null && node.getKind() == DbNode.Kind.ERROR && event.getButton()
+                        == MouseButton.PRIMARY && event.getClickCount() == 2) {
+                    retry(getTreeItem());
                 } else if (node != null && node.getKind() == DbNode.Kind.SOURCE_ITEM && node.getItem().getKind()
                         != SourceItem.Kind.DATABASE && event.getButton() == MouseButton.PRIMARY
                         && event.getClickCount() == 2 && onOpenSourceItem != null) {
@@ -716,7 +782,7 @@ private class DbNodeCell extends TreeCell {
         @Override
         protected void updateItem(DbNode node, boolean empty) {
             super.updateItem(node, empty);
-            getStyleClass().removeAll("tree-message", "tree-group");
+            getStyleClass().removeAll("tree-message", "tree-group", "tree-error");
             if (empty || node == null) {
                 setText(null);
                 setGraphic(null);
@@ -727,7 +793,7 @@ protected void updateItem(DbNode node, boolean empty) {
             setText(node.getLabel());
             switch (node.getKind()) {
                 case CONNECTION:
-                    setGraphic(DbTypeCells.iconOf(node.getProfile()));
+                    setGraphic(failedMark(DbTypeCells.iconOf(node.getProfile())));
                     break;
                 case CATALOG:
                     setGraphic(Icons.of(Icons.CATALOG));
@@ -753,7 +819,11 @@ protected void updateItem(DbNode node, boolean empty) {
                     getStyleClass().add("tree-group");
                     break;
                 case SOURCE:
-                    setGraphic(DbIcons.of(node.getSource().getTypeName()));
+                    setGraphic(failedMark(DbIcons.of(node.getSource().getTypeName())));
+                    break;
+                case ERROR:
+                    setGraphic(Icons.of(Icons.ALERT));
+                    getStyleClass().add("tree-error");
                     break;
                 case SOURCE_ITEM:
                     SourceItem.Kind itemKind = node.getItem().getKind();
@@ -770,19 +840,58 @@ protected void updateItem(DbNode node, boolean empty) {
                     break;
             }
             String tooltip = node.getKind() == DbNode.Kind.TABLE ? tableTooltip(node.getTable())
+                    : node.getKind() == DbNode.Kind.ERROR ? node.getDetail() + "\n\n" + Messages.get(
+                            "tree.retry.tooltip")
+                    : isFailed(getTreeItem()) ? errorOf(getTreeItem())
                     : node.getKind() == DbNode.Kind.SOURCE ? node.getSource().getTypeName()
                     : node.getKind() == DbNode.Kind.SOURCE_ITEM ? node.getItem().getKindName() : null;
             if (tooltip != null) {
-                setTooltip(new Tooltip(tooltip));
+                Tooltip tip = new Tooltip(tooltip);
+                tip.setWrapText(true);
+                tip.setMaxWidth(560);
+                setTooltip(tip);
             } else {
                 setTooltip(null);
             }
             setContextMenu(createContextMenu(node));
         }
 
+        /**
+         * The icon of a data source with a red dot when it could not be connected, like DataGrip and DBeaver
+         */
+        private javafx.scene.Node failedMark(javafx.scene.Node icon) {
+            if (!isFailed(getTreeItem())) {
+                return icon;
+            }
+            javafx.scene.shape.Circle dot = new javafx.scene.shape.Circle(3.5);
+            dot.getStyleClass().add("tree-failed-mark");
+            javafx.scene.layout.StackPane pane = new javafx.scene.layout.StackPane(icon, dot);
+            javafx.scene.layout.StackPane.setAlignment(dot, Pos.BOTTOM_RIGHT);
+            return pane;
+        }
+
+        private String errorOf(TreeItem item) {
+            return item.getChildren().stream().map(TreeItem::getValue).filter(child -> child.getKind()
+                    == DbNode.Kind.ERROR).map(DbNode::getLabel).findFirst().orElse(null);
+        }
+
         private ContextMenu createContextMenu(DbNode node) {
             ContextMenu menu = new ContextMenu();
             switch (node.getKind()) {
+                case ERROR:
+                    MenuItem retry = menuItem("tree.retry", Icons.REFRESH, () -> retry(getTreeItem()));
+                    retry.setId("retryMenuItem");
+                    menu.getItems().addAll(retry, menuItem("tree.copyError", Icons.COPY, () -> {
+                        javafx.scene.input.ClipboardContent content = new javafx.scene.input.ClipboardContent();
+                        content.putString(node.getDetail());
+                        javafx.scene.input.Clipboard.getSystemClipboard().setContent(content);
+                    }));
+                    DbNode parent = getTreeItem().getParent() != null ? getTreeItem().getParent().getValue() : null;
+                    if (parent != null && parent.getKind() == DbNode.Kind.CONNECTION) {
+                        menu.getItems().add(menuItem("action.editConnection", Icons.EDIT, () -> fire(
+                                onEditConnection, parent)));
+                    }
+                    break;
                 case CONNECTION:
                     // Connect before the connection is opened, disconnect after it is opened
                     MenuItem connect = menuItem("tree.connect", Icons.CONNECT, () -> getTreeItem().setExpanded(true));
diff --git a/src/main/java/com/github/sqljam/face/view/DataSourceExtension.java b/src/main/java/com/github/sqljam/face/view/DataSourceExtension.java
index 0276d13..d2ce61f 100644
--- a/src/main/java/com/github/sqljam/face/view/DataSourceExtension.java
+++ b/src/main/java/com/github/sqljam/face/view/DataSourceExtension.java
@@ -63,6 +63,13 @@ interface Source {
          */
         void open(Window owner, AppContext context);
 
+        /**
+         * Metrics of the dashboard of the info of the source, null for sources without
+         */
+        default java.util.function.Supplier getDashboard() {
+            return null;
+        }
+
         /**
          * Children of an item of the source in the connection tree, the top items for null: databases,
          * collections and their partitions as the source has them, read in the background
diff --git a/src/main/java/com/github/sqljam/face/view/DbNode.java b/src/main/java/com/github/sqljam/face/view/DbNode.java
index 3154e29..251403c 100644
--- a/src/main/java/com/github/sqljam/face/view/DbNode.java
+++ b/src/main/java/com/github/sqljam/face/view/DbNode.java
@@ -47,6 +47,11 @@ public enum Kind {
 
         MESSAGE,
 
+        /**
+         * A data source which could not be connected, its full error is the detail
+         */
+        ERROR,
+
         /**
          * Group of the sources of an extension, e.g. Vector databases
          */
@@ -79,6 +84,10 @@ public enum Kind {
      * Item of a source of an extension: a database, a collection or a partition
      */
     private final SourceItem item;
+    /**
+     * Full text of an error, the label is its summary
+     */
+    private String detail;
 
     private DbNode(Kind kind, ConnectionProfile profile, String catalog, String schema, TableInfo table,
                    String label) {
@@ -148,6 +157,12 @@ public static DbNode message(String message) {
         return new DbNode(Kind.MESSAGE, null, null, null, null, message);
     }
 
+    public static DbNode error(String summary, String detail) {
+        DbNode node = new DbNode(Kind.ERROR, null, null, null, null, summary);
+        node.detail = detail;
+        return node;
+    }
+
     public boolean isContainer() {
         return kind == Kind.CONNECTION || kind == Kind.CATALOG || kind == Kind.SCHEMA;
     }
diff --git a/src/main/java/com/github/sqljam/face/view/Dialogs.java b/src/main/java/com/github/sqljam/face/view/Dialogs.java
index 8ae515f..9a38d78 100644
--- a/src/main/java/com/github/sqljam/face/view/Dialogs.java
+++ b/src/main/java/com/github/sqljam/face/view/Dialogs.java
@@ -57,6 +57,115 @@ public static void initOwner(Dialog dialog, Window owner) {
         if (owner != null && owner.getScene() != null) {
             dialog.initOwner(owner);
         }
+        fitToScreen(dialog);
+    }
+
+    /**
+     * The area of the screen of a window which windows may use (without the menu bar and the task bar), replaced
+     * by tests of small screens
+     */
+    static java.util.function.Function screenArea = window -> {
+        java.util.List screens = javafx.stage.Screen.getScreensForRectangle(window.getX(),
+                window.getY(), Math.max(1, window.getWidth()), Math.max(1, window.getHeight()));
+        return (screens.isEmpty() ? javafx.stage.Screen.getPrimary() : screens.get(0)).getVisualBounds();
+    };
+
+    /**
+     * A dialog which is taller or wider than its screen when it is shown, e.g. on a small laptop, is made as large
+     * as the screen: its content scrolls, its buttons stay in view
+     */
+    static void fitToScreen(Dialog dialog) {
+        // A listener, so that onShown of the dialogs stays theirs
+        dialog.showingProperty().addListener((observable, was, showing) -> {
+            if (showing) {
+                fitShown(dialog);
+            }
+        });
+    }
+
+    static void fitShown(Dialog dialog) {
+        javafx.scene.Scene scene = dialog.getDialogPane().getScene();
+        if (scene == null || scene.getWindow() == null) {
+            return;
+        }
+        Window window = scene.getWindow();
+        javafx.geometry.Rectangle2D area = screenArea.apply(window);
+        boolean fits = fits(window.getWidth(), window.getHeight(), scene.getY(), scene.getHeight(), area);
+        if (fits && area.contains(window.getX(), window.getY(), window.getWidth(), outerHeight(window))) {
+            return;
+        }
+        javafx.scene.control.DialogPane pane = dialog.getDialogPane();
+        javafx.scene.Node content = pane.getContent();
+        if (!fits && content != null && !(content instanceof javafx.scene.control.ScrollPane)) {
+            double needed = pane.prefHeight(scene.getWidth());
+            javafx.scene.control.ScrollPane scroll = new javafx.scene.control.ScrollPane(content);
+            scroll.setFitToWidth(true);
+            scroll.getStyleClass().add("fit-scroll");
+            scroll.setStyle("-fx-background-color: transparent;");
+            pane.setContent(scroll);
+            // As high as the screen without the title bar, the scene follows the window then
+            pane.setPrefHeight(Math.min(needed, area.getHeight() - titleBar(window)));
+            if (window instanceof javafx.stage.Stage) {
+                ((javafx.stage.Stage) window).sizeToScene();
+            }
+            // The fields are found in the scroll pane at once, not only after the next pulse
+            pane.applyCss();
+            pane.layout();
+        }
+        // Moved into the screen, made as large as it when it is larger
+        fit(window, area);
+    }
+
+    /**
+     * Whether a window and its scene below the title bar fit the area. macOS makes a window as tall as the screen
+     * at most, its scene stays as tall as before and is cut at the bottom then
+     */
+    static boolean fits(double windowWidth, double windowHeight, double sceneY, double sceneHeight,
+                        javafx.geometry.Rectangle2D area) {
+        return Math.max(windowHeight, sceneY + sceneHeight) <= area.getHeight() && windowWidth <= area.getWidth();
+    }
+
+    /**
+     * The height of a window with its title bar, also when the system reports it without
+     */
+    private static double outerHeight(Window window) {
+        javafx.scene.Scene scene = window.getScene();
+        return scene == null ? window.getHeight() : Math.max(window.getHeight(), scene.getY() + scene.getHeight());
+    }
+
+    /**
+     * The height of the title bar of a window
+     */
+    private static double titleBar(Window window) {
+        return Math.max(0, Math.max(window.getScene().getY(), window.getHeight() - window.getScene().getHeight()));
+    }
+
+    /**
+     * A window which is larger than its screen is made as large as the screen and moved into it, e.g. the
+     * progress of a transfer on a small laptop
+     */
+    public static void fitToScreen(javafx.stage.Stage stage) {
+        stage.addEventHandler(javafx.stage.WindowEvent.WINDOW_SHOWN, event -> fit(stage, screenArea.apply(stage)));
+    }
+
+    private static void fit(Window window, javafx.geometry.Rectangle2D area) {
+        if (window.getHeight() > area.getHeight()) {
+            window.setHeight(area.getHeight());
+        }
+        if (window.getWidth() > area.getWidth()) {
+            window.setWidth(area.getWidth());
+        }
+        window.setX(Math.max(area.getMinX(), Math.min(window.getX(), area.getMaxX() - window.getWidth())));
+        window.setY(Math.max(area.getMinY(), Math.min(window.getY(), area.getMaxY() - outerHeight(window))));
+    }
+
+    /**
+     * The content of a dialog, also when it was put into a scroll pane to fit the screen
+     */
+    public static javafx.scene.Node contentOf(Dialog dialog) {
+        javafx.scene.Node content = dialog.getDialogPane().getContent();
+        return content instanceof javafx.scene.control.ScrollPane && content.getStyleClass().contains("fit-scroll")
+                ? ((javafx.scene.control.ScrollPane) content).getContent() : content;
     }
 
     public static void showError(Window owner, String title, Throwable e) {
diff --git a/src/main/java/com/github/sqljam/face/view/MainView.java b/src/main/java/com/github/sqljam/face/view/MainView.java
index 4942749..ca9f542 100644
--- a/src/main/java/com/github/sqljam/face/view/MainView.java
+++ b/src/main/java/com/github/sqljam/face/view/MainView.java
@@ -295,7 +295,8 @@ private Menu createDatabaseMenu() {
                     connectionTree::isConnected));
             sqlQuery.setDisable(connectionTree.getSelectedNode() == null);
             info.setDisable(!isInfoAvailable());
-            dashboard.setDisable(item == null);
+            DbNode source = connectionTree.getSelectedSource();
+            dashboard.setDisable(item == null && (source == null || source.getSource().getDashboard() == null));
         });
         return menu;
     }
@@ -542,11 +543,13 @@ private void infoSelected() {
      * The info of the selected data source on its dashboard
      */
     private void dashboardSelected() {
+        // A data source, or a source of an extension which tells its metrics, e.g. a vector database
         TreeItem item = selectedConnectionItem();
-        if (item == null) {
+        DbNode source = connectionTree.getSelectedSource();
+        if (item == null && (source == null || source.getSource().getDashboard() == null)) {
             return;
         }
-        openInfo(item.getValue());
+        openInfo(item != null ? item.getValue() : source);
         Tab tab = tabPane.getSelectionModel().getSelectedItem();
         if (tab instanceof InfoTab) {
             ((InfoTab) tab).showDashboard();
@@ -829,7 +832,7 @@ void openInfo(DbNode node) {
         if (node.getSource() != null) {
             DataSourceExtension.Source source = node.getSource();
             tab = new InfoTab(source.getName(), DbIcons.of(source.getTypeName()), source::loadOverview,
-                    source::loadHealth);
+                    source::loadHealth, source.getDashboard());
         } else {
             ConnectionProfile profile = node.getProfile();
             DatabaseSession session = context.getSessionManager().getSession(profile);
diff --git a/src/main/java/com/github/sqljam/face/view/PackageViewer.java b/src/main/java/com/github/sqljam/face/view/PackageViewer.java
index 072f137..e6a537f 100644
--- a/src/main/java/com/github/sqljam/face/view/PackageViewer.java
+++ b/src/main/java/com/github/sqljam/face/view/PackageViewer.java
@@ -98,6 +98,7 @@ public PackageViewer(Window owner, AppContext context, File directory) {
         this.directory = directory;
         stage.initOwner(owner);
         Branding.applyIcons(stage);
+        Dialogs.fitToScreen(stage);
         stage.setTitle(Messages.format("package.title", directory.getName()));
 
         fileTree.setId("packageFileTree");
diff --git a/src/main/java/com/github/sqljam/face/view/ProgressDialog.java b/src/main/java/com/github/sqljam/face/view/ProgressDialog.java
index 9053754..aeed6d9 100644
--- a/src/main/java/com/github/sqljam/face/view/ProgressDialog.java
+++ b/src/main/java/com/github/sqljam/face/view/ProgressDialog.java
@@ -185,6 +185,7 @@ public ProgressDialog(Window owner, AppContext context, String title, int totalT
         report.setTitle(title);
         stage.initOwner(owner);
         Branding.applyIcons(stage);
+        Dialogs.fitToScreen(stage);
         stage.initModality(Modality.NONE);
         stage.setTitle(title);
         statusLabel.setId("progressStatus");
diff --git a/src/main/java/com/github/sqljam/face/view/SyncTab.java b/src/main/java/com/github/sqljam/face/view/SyncTab.java
index d1efc09..b2e1667 100644
--- a/src/main/java/com/github/sqljam/face/view/SyncTab.java
+++ b/src/main/java/com/github/sqljam/face/view/SyncTab.java
@@ -27,6 +27,7 @@
 import com.github.sqljam.face.model.SyncTask;
 import com.github.sqljam.face.model.TransferReport;
 import com.github.sqljam.face.service.ReportExporter;
+import com.github.sqljam.face.service.SyncCommandLine;
 import com.github.sqljam.face.service.SyncScheduler;
 import javafx.animation.KeyFrame;
 import javafx.animation.Timeline;
@@ -65,6 +66,7 @@ public class SyncTab extends Tab {
     private final Button cancel = new Button(Messages.get("sync.cancel"), Icons.of(Icons.CANCEL));
     private final Button toggle = new Button(Messages.get("sync.disable"));
     private final Button report = new Button(Messages.get("sync.report"), Icons.of(Icons.HISTORY));
+    private final Button command = new Button(Messages.get("sync.copyCommand"), Icons.of(Icons.COPY));
     private final Consumer listener = task -> Platform.runLater(this::refresh);
 
     public SyncTab(AppContext context, Consumer opener) {
@@ -97,8 +99,8 @@ protected void updateItem(String item, boolean empty) {
         table.getColumns().add(column(Messages.get("sync.column.rows"), task -> task.getLastRunAt() > 0 ? String
                 .format("%,d", task.getLastRowCount()) : "", 90));
         table.getColumns().add(column(Messages.get("sync.column.schedule"), SyncTab::schedule, 140));
-        table.getColumns().add(column(Messages.get("sync.column.runner"), task -> Messages.get("sync.runner.short."
-                + task.getRunner().name().toLowerCase(java.util.Locale.ENGLISH)), 130));
+        table.getColumns().add(column(Messages.get("sync.column.runBy"), task -> StringUtils.defaultString(task
+                .getLastRunBy()), 130));
         table.getColumns().add(column(Messages.get("sync.column.next"), this::nextRun, 150));
         table.getColumns().add(column(Messages.get("sync.column.last"), task -> task.getLastRunAt() > 0
                 ? ReportExporter.time(task.getLastRunAt()) : Messages.get("sync.never"), 150));
@@ -136,12 +138,17 @@ protected void updateItem(String item, boolean empty) {
         toggle.setOnAction(event -> toggle(selected()));
         report.setId("syncReportButton");
         report.setOnAction(event -> openReport(selected()));
-        Button refresh = new Button(Messages.get("sync.refresh"), Icons.of(Icons.REFRESH));
+        // An icon only, the toolbar fits a window of 1280 with the tree
+        Button refresh = new Button(null, Icons.of(Icons.REFRESH));
+        refresh.setTooltip(new javafx.scene.control.Tooltip(Messages.get("sync.refresh")));
         refresh.setId("syncRefreshButton");
         refresh.setOnAction(event -> refresh());
         table.getSelectionModel().selectedItemProperty().addListener((observable, old, task) -> updateButtons());
         BorderPane root = new BorderPane(table);
-        root.setTop(new ToolBar(add, edit, delete, run, cancel, toggle, report, refresh));
+        command.setId("syncCommandButton");
+        command.setTooltip(new javafx.scene.control.Tooltip(Messages.get("sync.copyCommand.tooltip")));
+        command.setOnAction(event -> copyCommand(selected()));
+        root.setTop(new ToolBar(add, edit, delete, run, cancel, toggle, report, command, refresh));
         setContent(root);
         scheduler.addListener(listener);
         // Runs of the command line are read from the file of the tasks
@@ -237,6 +244,7 @@ private void updateButtons() {
         toggle.setDisable(task == null);
         toggle.setText(Messages.get(task != null && !task.isEnabled() ? "sync.enable" : "sync.disable"));
         report.setDisable(task == null || task.getLastReportId() == null);
+        command.setDisable(task == null);
     }
 
     /**
@@ -258,8 +266,6 @@ void edit(SyncTask task) {
     }
 
     void save(SyncTask task) {
-        boolean wasSystem = scheduler.getStore().findTask(task.getId()).map(saved -> saved.getRunner()
-                == SyncTask.Runner.SYSTEM).orElse(false);
         try {
             scheduler.getStore().saveTask(task);
         } catch (IOException e) {
@@ -267,22 +273,21 @@ void save(SyncTask task) {
             return;
         }
         refresh();
-        if (wasSystem || task.getRunner() == SyncTask.Runner.SYSTEM) {
-            applySystem(task);
-        }
         warnPasswords(task);
     }
 
     /**
-     * Registers a task of the system scheduler with the system, or removes it from there
+     * Copies the command which runs the task without the window, e.g. for a cron of the user
      */
-    private void applySystem(SyncTask task) {
-        try {
-            context.getSystemScheduler().apply(task);
-        } catch (IOException e) {
-            Dialogs.showWarning(window(), Messages.get("sync.title"), Messages.format("sync.system.error", e
-                    .getMessage()));
+    String copyCommand(SyncTask task) {
+        if (task == null) {
+            return null;
         }
+        String line = SyncCommandLine.of(task, System.getProperty("os.name"));
+        javafx.scene.input.ClipboardContent content = new javafx.scene.input.ClipboardContent();
+        content.putString(line);
+        javafx.scene.input.Clipboard.getSystemClipboard().setContent(content);
+        return line;
     }
 
     /**
@@ -309,9 +314,6 @@ void delete(SyncTask task) {
         }
         try {
             scheduler.getStore().removeTask(task.getId());
-            if (task.getRunner() == SyncTask.Runner.SYSTEM) {
-                context.getSystemScheduler().unregister(task.getId());
-            }
         } catch (IOException e) {
             Dialogs.showError(window(), Messages.get("sync.delete"), e);
         }
@@ -331,16 +333,13 @@ void toggle(SyncTask task) {
         if (task == null) {
             return;
         }
-        Optional changed;
         try {
-            changed = scheduler.getStore().updateTask(task.getId(), saved -> saved.setEnabled(!saved.isEnabled()));
+            scheduler.getStore().updateTask(task.getId(), saved -> saved.setEnabled(!saved.isEnabled()));
         } catch (IOException e) {
             Dialogs.showError(window(), Messages.get("sync.title"), e);
             return;
         }
         refresh();
-        // A task of the system which is switched off is removed from there, it is registered again when it is on
-        changed.filter(saved -> saved.getRunner() == SyncTask.Runner.SYSTEM).ifPresent(this::applySystem);
     }
 
     void openReport(SyncTask task) {
diff --git a/src/main/java/com/github/sqljam/face/view/SyncTaskDialog.java b/src/main/java/com/github/sqljam/face/view/SyncTaskDialog.java
index fa0cba0..39f7eec 100644
--- a/src/main/java/com/github/sqljam/face/view/SyncTaskDialog.java
+++ b/src/main/java/com/github/sqljam/face/view/SyncTaskDialog.java
@@ -116,7 +116,6 @@ static final class TableRow {
     private final ComboBox targetCatalogCombo = new ComboBox<>();
     private final ComboBox targetSchemaCombo = new ComboBox<>();
     private final ComboBox scheduleCombo = new ComboBox<>();
-    private final ComboBox runnerCombo = new ComboBox<>();
     private final Spinner intervalSpinner = new Spinner<>(1, 7 * 24 * 60, 60);
     private final TextField dailyField = new TextField("02:00");
     private final Spinner retriesSpinner = new Spinner<>(0, 10, 3);
@@ -151,11 +150,6 @@ public SyncTaskDialog(Window owner, AppContext context, SyncTask task) {
         targetCatalogCombo.setId("syncTargetCatalogCombo");
         targetSchemaCombo.setId("syncTargetSchemaCombo");
         scheduleCombo.setId("syncScheduleCombo");
-        runnerCombo.setId("syncRunnerCombo");
-        runnerCombo.getItems().setAll(SyncTask.Runner.values());
-        runnerCombo.setConverter(converter(runner -> Messages.get("sync.runner." + runner.name().toLowerCase(Locale
-                .ENGLISH))));
-        runnerCombo.setValue(SyncTask.Runner.SQLJAM);
         intervalSpinner.setId("syncIntervalSpinner");
         dailyField.setId("syncDailyField");
         retriesSpinner.setId("syncRetriesSpinner");
@@ -268,7 +262,6 @@ protected void updateItem(DataSourceExtension.Source item, boolean empty) {
         HBox schedule = new HBox(8, scheduleCombo, intervalSpinner, new Label(Messages.get("sync.minutes")),
                 dailyField);
         grid.addRow(row++, new Label(Messages.get("sync.schedule")), schedule);
-        grid.addRow(row++, new Label(Messages.get("sync.runner")), runnerCombo);
         grid.addRow(row++, new Label(Messages.get("sync.retries")), retriesSpinner);
         Label note = new Label(Messages.get("sync.note"));
         note.getStyleClass().add("muted");
@@ -352,7 +345,6 @@ private void kindChanged() {
     private void scheduleChanged() {
         SyncTask.ScheduleType type = scheduleCombo.getValue();
         intervalSpinner.setDisable(type != SyncTask.ScheduleType.INTERVAL);
-        runnerCombo.setDisable(type == SyncTask.ScheduleType.MANUAL);
         dailyField.setDisable(type != SyncTask.ScheduleType.DAILY);
     }
 
@@ -381,7 +373,6 @@ private void fill(SyncTask task) {
         targetCatalogCombo.setValue(task.getTargetCatalog());
         targetSchemaCombo.setValue(task.getTargetSchema());
         scheduleCombo.setValue(task.getScheduleType());
-        runnerCombo.setValue(task.getRunner());
         intervalSpinner.getValueFactory().setValue(task.getIntervalMinutes());
         dailyField.setText(task.getDailyTime());
         retriesSpinner.getValueFactory().setValue(task.getRetries());
@@ -667,7 +658,6 @@ SyncTask buildTask() {
         }
         task.setTables(tables);
         task.setScheduleType(scheduleCombo.getValue());
-        task.setRunner(runnerCombo.getValue());
         task.setIntervalMinutes(intervalSpinner.getValue());
         task.setDailyTime(dailyField.getText().trim());
         task.setRetries(retriesSpinner.getValue());
diff --git a/src/main/java/com/github/sqljam/face/view/ValueDialog.java b/src/main/java/com/github/sqljam/face/view/ValueDialog.java
index 77a45a5..0a11ea2 100644
--- a/src/main/java/com/github/sqljam/face/view/ValueDialog.java
+++ b/src/main/java/com/github/sqljam/face/view/ValueDialog.java
@@ -101,9 +101,7 @@ static String describe(String value) {
 
     public static void show(Window owner, String column, String value) {
         Alert alert = new Alert(Alert.AlertType.NONE);
-        if (owner != null && owner.getScene() != null) {
-            alert.initOwner(owner);
-        }
+        Dialogs.initOwner(alert, owner);
         Branding.applyIcons(alert);
         alert.setTitle(column);
         alert.setHeaderText(column + "  ·  " + (value == null ? "NULL" : describe(value)));
diff --git a/src/main/java/com/github/sqljam/impexp/AbstractFileImporter.java b/src/main/java/com/github/sqljam/impexp/AbstractFileImporter.java
index 1bd2337..0929e42 100644
--- a/src/main/java/com/github/sqljam/impexp/AbstractFileImporter.java
+++ b/src/main/java/com/github/sqljam/impexp/AbstractFileImporter.java
@@ -230,6 +230,9 @@ protected void runScript(File file) throws IOException, SQLException {
             runner.setMissingDropError(dbType.createDialect()::isMissingDropError);
         }
         runner.setBatchSize(batchSize);
+        if (dbType != null) {
+            runner.setRowsPerInsert(dbType.createDialect().getRowsPerScriptInsert());
+        }
         long fileBytes = file.length();
         runner.setExportListener(new ForwardingListener(exportListener) {
 
diff --git a/src/main/java/com/github/sqljam/impexp/Dialect.java b/src/main/java/com/github/sqljam/impexp/Dialect.java
index 8f6b75e..e4fb5ec 100644
--- a/src/main/java/com/github/sqljam/impexp/Dialect.java
+++ b/src/main/java/com/github/sqljam/impexp/Dialect.java
@@ -1383,6 +1383,15 @@ public int getRowsPerInsert() {
         return 1;
     }
 
+    /**
+     * Rows of a statement into which an import of a SQL package merges the INSERT statements of one row of a table,
+     * 1 for databases without INSERT statements of several rows (Oracle, Access). The package keeps one row a
+     * statement, so that every database and every tool reads it.
+     */
+    public int getRowsPerScriptInsert() {
+        return 100;
+    }
+
     public String getInsertTableStatement(String catalog, String schema, String tableName, String[] columnNames,
                                           Object[] columnValues) {
         String values = StringUtils.join(columnValues, ",");
diff --git a/src/main/java/com/github/sqljam/impexp/SqlScriptRunner.java b/src/main/java/com/github/sqljam/impexp/SqlScriptRunner.java
index 2680b22..bc1e8c9 100644
--- a/src/main/java/com/github/sqljam/impexp/SqlScriptRunner.java
+++ b/src/main/java/com/github/sqljam/impexp/SqlScriptRunner.java
@@ -72,6 +72,16 @@ public class SqlScriptRunner {
 
     private static final Pattern INSERT_STATEMENT = Pattern.compile("(?is)^(INSERT|MERGE)\\s+INTO\\s.*");
     private static final Pattern MERGE_STATEMENT = Pattern.compile("(?is)^MERGE\\s+INTO\\s.*");
+    /**
+     * INSERT INTO a table with its columns, up to its values: names without parentheses, quotes of strings or
+     * a SELECT
+     */
+    private static final Pattern INSERT_VALUES = Pattern.compile("(?is)INSERT\\s+INTO\\s+[^()'\\s]+\\s*(\\([^()']*\\))?"
+            + "\\s*VALUES\\s*");
+    /**
+     * Characters of a merged statement at most, rows of large values stay in statements of their own
+     */
+    static final int MAX_MERGED_LENGTH = 1_000_000;
     /**
      * Statements of rows, their failures are skipped rows
      */
@@ -95,6 +105,11 @@ public class SqlScriptRunner {
     private int batchSize = DEFAULT_BATCH_SIZE;
     private Boolean oracle;
     private Boolean sqlServer;
+    private Boolean backslashEscapes;
+    /**
+     * Rows into which INSERT statements of one row of a table are merged, 1 runs them as they are
+     */
+    private int rowsPerInsert = 1;
     /**
      * Errors of statements which create existing objects, they are skipped, e.g. tables which are not dropped
      */
@@ -144,6 +159,10 @@ public void setBatchCommitSize(int batchCommitSize) {
     /**
      * Statements per batch, 1 or less executes statement by statement
      */
+    public void setRowsPerInsert(int rowsPerInsert) {
+        this.rowsPerInsert = Math.max(1, rowsPerInsert);
+    }
+
     public void setBatchSize(int batchSize) {
         this.batchSize = batchSize;
     }
@@ -282,7 +301,9 @@ private void executeBatch(List batch) throws SQLException {
                     statement().execute(sql);
                 }
             } else {
-                for (String sql : batch) {
+                // Statements of one row of a table become statements of many rows, a database parses them once
+                for (String sql : rowsPerInsert > 1 ? mergeInserts(batch, rowsPerInsert, MAX_MERGED_LENGTH,
+                        isBackslashEscaped()) : batch) {
                     statement().addBatch(sql);
                 }
                 statement().executeBatch();
@@ -414,6 +435,102 @@ private boolean isSqlServer() throws SQLException {
         return sqlServer;
     }
 
+    /**
+     * Whether strings of the database escape quotes by backslashes, e.g. 'O\\'Brien' of MySQL
+     */
+    private boolean isBackslashEscaped() throws SQLException {
+        if (backslashEscapes == null) {
+            String productName = StringUtils.defaultString(connection.getMetaData().getDatabaseProductName())
+                    .toLowerCase(Locale.ENGLISH);
+            backslashEscapes = productName.contains("mysql") || productName.contains("mariadb") || productName
+                    .contains("clickhouse");
+        }
+        return backslashEscapes;
+    }
+
+    /**
+     * Merges INSERT statements of one row of the same table and columns which follow each other into statements
+     * of the rows, at most rows and length a statement. Statements which are not a plain INSERT of one row (MERGE,
+     * ON CONFLICT, RETURNING) stay as they are.
+     */
+    static List mergeInserts(List statements, int rows, int maxLength, boolean backslashEscapes) {
+        List merged = new ArrayList<>();
+        String head = null;
+        StringBuilder current = null;
+        int count = 0;
+        for (String sql : statements) {
+            int values = valuesOfOneRow(sql, backslashEscapes);
+            String prefix = values >= 0 ? sql.substring(0, values) : null;
+            if (prefix != null && prefix.equals(head) && count < rows && current.length() + sql.length() - values
+                    + 1 <= maxLength) {
+                current.append(',').append(sql, values, sql.length());
+                count++;
+                continue;
+            }
+            if (current != null) {
+                merged.add(current.toString());
+            }
+            if (prefix != null) {
+                head = prefix;
+                current = new StringBuilder(sql);
+                count = 1;
+            } else {
+                merged.add(sql);
+                head = null;
+                current = null;
+            }
+        }
+        if (current != null) {
+            merged.add(current.toString());
+        }
+        return merged;
+    }
+
+    /**
+     * Position of the values of an INSERT statement of one row which end the statement, -1 for other statements
+     */
+    static int valuesOfOneRow(String sql, boolean backslashEscapes) {
+        java.util.regex.Matcher matcher = INSERT_VALUES.matcher(sql);
+        if (!matcher.lookingAt()) {
+            return -1;
+        }
+        int start = matcher.end();
+        int end = sql.length();
+        while (end > start && Character.isWhitespace(sql.charAt(end - 1))) {
+            end--;
+        }
+        if (start >= end || sql.charAt(start) != '(') {
+            return -1;
+        }
+        int depth = 0;
+        boolean quoted = false;
+        for (int i = start; i < end; i++) {
+            char c = sql.charAt(i);
+            if (quoted) {
+                if (backslashEscapes && c == '\\') {
+                    i++;
+                } else if (c == '\'') {
+                    if (i + 1 < end && sql.charAt(i + 1) == '\'') {
+                        i++;
+                    } else {
+                        quoted = false;
+                    }
+                }
+            } else if (c == '\'') {
+                quoted = true;
+            } else if (c == '(') {
+                depth++;
+            } else if (c == ')') {
+                depth--;
+                // The row ends the statement, nothing follows it
+                if (depth == 0) {
+                    return i == end - 1 ? start : -1;
+                }
+            }
+        }
+        return -1;
+    }
+
     private boolean isOracle() throws SQLException {
         if (oracle == null) {
             String productName = connection.getMetaData().getDatabaseProductName();
diff --git a/src/main/java/com/github/sqljam/impexp/db/AccessDialect.java b/src/main/java/com/github/sqljam/impexp/db/AccessDialect.java
index 42f7c8f..36daa99 100644
--- a/src/main/java/com/github/sqljam/impexp/db/AccessDialect.java
+++ b/src/main/java/com/github/sqljam/impexp/db/AccessDialect.java
@@ -580,4 +580,12 @@ public String getStringValue(String catalog, String schema, String tableName, St
         }
         return super.getStringValue(catalog, schema, tableName, columnName, columnValue);
     }
+
+    /**
+     * No INSERT statement of several rows by VALUES, the statements of a package run one by one
+     */
+    @Override
+    public int getRowsPerScriptInsert() {
+        return 1;
+    }
 }
diff --git a/src/main/java/com/github/sqljam/impexp/db/OracleDialect.java b/src/main/java/com/github/sqljam/impexp/db/OracleDialect.java
index b85571a..a646863 100644
--- a/src/main/java/com/github/sqljam/impexp/db/OracleDialect.java
+++ b/src/main/java/com/github/sqljam/impexp/db/OracleDialect.java
@@ -641,4 +641,12 @@ public Object getColumnValue(ResultSet rs, int columnIndex, int columnType, Stri
         }
         return super.getColumnValue(rs, columnIndex, columnType, columnTypeName);
     }
+
+    /**
+     * No INSERT statement of several rows by VALUES, the statements of a package run one by one
+     */
+    @Override
+    public int getRowsPerScriptInsert() {
+        return 1;
+    }
 }
diff --git a/src/main/java/com/github/sqljam/vdb/VdbClient.java b/src/main/java/com/github/sqljam/vdb/VdbClient.java
index 55a1aea..93f1a27 100644
--- a/src/main/java/com/github/sqljam/vdb/VdbClient.java
+++ b/src/main/java/com/github/sqljam/vdb/VdbClient.java
@@ -81,6 +81,45 @@ default List listPartitions(String collection) {
      */
     void read(VdbCollection collection, VdbQuery query, int pageSize, PageConsumer consumer);
 
+    /**
+     * Collections whose records the metrics count at most, the first ones of the server
+     */
+    int METRIC_COLLECTIONS = 50;
+
+    /**
+     * Records of a collection, -1 if they can not be counted without reading them
+     */
+    default long countRecords(String collection) {
+        return count(describe(collection), VdbQuery.all());
+    }
+
+    /**
+     * Metrics of the dashboard of the server, raw values by key: collections, records, and what the server tells
+     * beyond (e.g. cpu.percent, heap.used, requests). Counters only grow, a key which can not be read is left out.
+     */
+    default Map getMetrics() {
+        Map metrics = new LinkedHashMap<>();
+        List collections = getCollections();
+        metrics.put("collections", (double) collections.size());
+        long records = 0;
+        boolean counted = false;
+        for (String collection : collections.subList(0, Math.min(METRIC_COLLECTIONS, collections.size()))) {
+            try {
+                long count = countRecords(collection);
+                if (count >= 0) {
+                    records += count;
+                    counted = true;
+                }
+            } catch (RuntimeException e) {
+                // A collection which can not be counted, e.g. without permission, the others are
+            }
+        }
+        if (counted) {
+            metrics.put("records", (double) records);
+        }
+        return metrics;
+    }
+
     /**
      * Information of the server by sections, e.g. Server: version, url; a value which is not readable tells why
      */
diff --git a/src/main/java/com/github/sqljam/vdb/VdbInfo.java b/src/main/java/com/github/sqljam/vdb/VdbInfo.java
index b69b3d1..8dda7ca 100644
--- a/src/main/java/com/github/sqljam/vdb/VdbInfo.java
+++ b/src/main/java/com/github/sqljam/vdb/VdbInfo.java
@@ -65,4 +65,36 @@ public static String bytes(long bytes) {
         }
         return String.format(Locale.ENGLISH, "%.1f %s", value, units[unit]);
     }
+
+    /**
+     * Values of the metrics of the Prometheus text of a server by name, the values of their labels added up, e.g.
+     * rest_responses_total of every endpoint
+     */
+    public static java.util.Map prometheus(String text) {
+        java.util.Map values = new java.util.LinkedHashMap<>();
+        for (String line : text.split("\\R")) {
+            String trimmed = line.trim();
+            if (trimmed.isEmpty() || trimmed.startsWith("#")) {
+                continue;
+            }
+            int brace = trimmed.indexOf('{');
+            int end = brace >= 0 ? brace : trimmed.indexOf(' ');
+            if (end <= 0) {
+                continue;
+            }
+            // The value follows the labels or the name, a timestamp may follow the value
+            String rest = (brace >= 0 ? trimmed.substring(trimmed.lastIndexOf('}') + 1) : trimmed.substring(end))
+                    .trim();
+            if (rest.isEmpty()) {
+                continue;
+            }
+            String[] tail = rest.split("\\s+");
+            try {
+                values.merge(trimmed.substring(0, end), Double.parseDouble(tail[0]), Double::sum);
+            } catch (NumberFormatException e) {
+                // NaN of a label or not a sample
+            }
+        }
+        return values;
+    }
 }
diff --git a/src/main/java/com/github/sqljam/vdb/client/ElasticsearchClient.java b/src/main/java/com/github/sqljam/vdb/client/ElasticsearchClient.java
index 8610e43..7d5edbb 100644
--- a/src/main/java/com/github/sqljam/vdb/client/ElasticsearchClient.java
+++ b/src/main/java/com/github/sqljam/vdb/client/ElasticsearchClient.java
@@ -93,6 +93,50 @@ public Map> getOverview() {
     /**
      * Health of the cluster: green, yellow or red, its nodes and shards
      */
+    @Override
+    public long countRecords(String collection) {
+        return rest.get("/" + encode(collection) + "/_count").path("count").asLong(-1);
+    }
+
+    /**
+     * The common metrics, and of the statistics of the nodes: CPU, heap of the JVM, indexing, searches and the
+     * size of the store, of all nodes
+     */
+    @Override
+    public Map getMetrics() {
+        Map metrics = super.getMetrics();
+        try {
+            JsonNode nodes = rest.get("/_nodes/stats/os,jvm,indices").path("nodes");
+            double cpu = 0;
+            int count = 0;
+            double heapUsed = 0;
+            double heapMax = 0;
+            double indexing = 0;
+            double searches = 0;
+            double store = 0;
+            for (JsonNode node : (Iterable) nodes::elements) {
+                count++;
+                cpu += node.path("os").path("cpu").path("percent").asDouble();
+                heapUsed += node.path("jvm").path("mem").path("heap_used_in_bytes").asDouble();
+                heapMax += node.path("jvm").path("mem").path("heap_max_in_bytes").asDouble();
+                indexing += node.path("indices").path("indexing").path("index_total").asDouble();
+                searches += node.path("indices").path("search").path("query_total").asDouble();
+                store += node.path("indices").path("store").path("size_in_bytes").asDouble();
+            }
+            if (count > 0) {
+                metrics.put("cpu.percent", cpu / count);
+                metrics.put("heap.used", heapUsed);
+                metrics.put("heap.max", heapMax);
+                metrics.put("indexing.total", indexing);
+                metrics.put("search.total", searches);
+                metrics.put("store.bytes", store);
+            }
+        } catch (RuntimeException e) {
+            // The statistics of the nodes are not allowed, the common metrics stay
+        }
+        return metrics;
+    }
+
     @Override
     public Map> getHealth() {
         Map> sections = super.getHealth();
diff --git a/src/main/java/com/github/sqljam/vdb/client/QdrantClient.java b/src/main/java/com/github/sqljam/vdb/client/QdrantClient.java
index 7306edc..bd6abcb 100644
--- a/src/main/java/com/github/sqljam/vdb/client/QdrantClient.java
+++ b/src/main/java/com/github/sqljam/vdb/client/QdrantClient.java
@@ -79,6 +79,49 @@ public Map> getOverview() {
     /**
      * Readiness and liveness probes, the state of the cluster of distributed deployments
      */
+    @Override
+    public long countRecords(String collection) {
+        return rest.post("/collections/" + encode(collection) + "/points/count", RestClient.getMapper()
+                .createObjectNode().put("exact", true)).path("result").path("count").asLong(-1);
+    }
+
+    /**
+     * The common metrics, and of /metrics: the REST and gRPC requests and the memory of the server
+     */
+    @Override
+    public Map getMetrics() {
+        Map metrics = super.getMetrics();
+        try {
+            Map values = VdbInfo.prometheus(rest.get("/metrics").asText());
+            // Newer servers count the requests in their histograms of durations
+            double requests = 0;
+            boolean counted = false;
+            for (String name : new String[]{"rest_responses_total", "grpc_responses_total",
+                    "rest_responses_duration_seconds_count", "grpc_responses_duration_seconds_count"}) {
+                if (values.containsKey(name) && !(name.endsWith("_count") && values.containsKey(name.replace(
+                        "_duration_seconds_count", "_total")))) {
+                    requests += values.get(name);
+                    counted = true;
+                }
+            }
+            if (counted) {
+                metrics.put("requests", requests);
+            }
+            putIfPresent(metrics, "cpu.cores", values.get("cpu_cores_used"));
+            putIfPresent(metrics, "memory.resident", values.get("memory_resident_bytes"));
+            putIfPresent(metrics, "memory.allocated", values.get("memory_allocated_bytes"));
+        } catch (RuntimeException e) {
+            // Metrics switched off or not allowed, the common ones stay
+        }
+        return metrics;
+    }
+
+    private static void putIfPresent(Map metrics, String key, Double value) {
+        if (value != null) {
+            metrics.put(key, value);
+        }
+    }
+
     @Override
     public Map> getHealth() {
         Map> sections = super.getHealth();
diff --git a/src/main/resources/com/github/sqljam/face/app.css b/src/main/resources/com/github/sqljam/face/app.css
index f9962ce..a999e71 100644
--- a/src/main/resources/com/github/sqljam/face/app.css
+++ b/src/main/resources/com/github/sqljam/face/app.css
@@ -53,6 +53,16 @@
     -fx-border-width: 0;
 }
 
+.tree-error {
+    -fx-text-fill: -color-danger-fg;
+}
+
+.tree-error .ikonli-font-icon,
+.tree-failed-mark {
+    -fx-icon-color: -color-danger-fg;
+    -fx-fill: -color-danger-fg;
+}
+
 .tree-message {
     -fx-text-fill: -color-fg-subtle;
     -fx-font-style: italic;
diff --git a/src/main/resources/com/github/sqljam/face/messages.properties b/src/main/resources/com/github/sqljam/face/messages.properties
index 470f05d..d7a10c3 100644
--- a/src/main/resources/com/github/sqljam/face/messages.properties
+++ b/src/main/resources/com/github/sqljam/face/messages.properties
@@ -32,7 +32,7 @@ about.message=Move tables across databases. Schema, data and all.\n\nCopies tabl
 about.tab=About
 about.features=Features
 feature.reliability.title=Reliability
-feature.reliability.items=One transaction, rolled back on any error|Commit every N rows|Confirm before commit|Skip rows with errors, each one logged|Progress of every table, cancel at any time|A report of every transfer, kept in the history|Sync tasks on a schedule, in SqlJam or by the system
+feature.reliability.items=One transaction, rolled back on any error|Commit every N rows|Confirm before commit|Skip rows with errors, each one logged|Progress of every table, cancel at any time|A report of every transfer, kept in the history|Sync tasks on a schedule, their command line for a cron
 feature.vectors.title=Vector databases
 feature.vectors.items=Databases, collections, partitions and tenants|Records page by page, conditions and native filters|Nearest neighbors of a record or a vector|Ids and vectors as columns, the payload as JSON|Vector indexes with their distances
 feature.tagline=Import and export for relational, OLAP and vector databases
@@ -116,6 +116,10 @@ tree.loading=Loading...
 tree.filter.prompt=Filter data sources
 tree.empty=(empty)
 tree.error=Error: {0}
+tree.failed=Cannot connect: {0}
+tree.retry=Retry
+tree.retry.tooltip=Double-click to connect again
+tree.copyError=Copy Error
 tree.loadError=Unable to load {0}
 tree.connect=Connect
 tree.disconnect=Disconnect
@@ -634,10 +638,10 @@ sync.editButton=Edit
 sync.delete=Delete
 sync.delete.confirm=Delete the sync task {0}? Its reports stay in the history.
 sync.run=Run Now
-sync.cancel=Cancel Run
+sync.cancel=Cancel
 sync.enable=Enable
 sync.disable=Disable
-sync.report=Last Report
+sync.report=Report
 sync.refresh=Refresh
 sync.running=Running
 sync.never=Never
@@ -646,15 +650,8 @@ sync.every=Every {0} min
 sync.daily=Every day at {0}
 sync.manual=Run Now only
 sync.empty=No sync tasks yet, New creates one
-sync.password=The password of {0} is not remembered, scheduled runs need it. Remember it in the data source.
-sync.runner=Run by
-sync.runner.sqljam=SqlJam, while it is open
-sync.runner.system=The system scheduler, also when SqlJam is closed
-sync.column.runner=Run by
-sync.runner.short.sqljam=SqlJam
-sync.runner.short.system=System scheduler
+sync.password=The password of {0} is not remembered, runs on a schedule need it after SqlJam starts again. Remember it in the data source.
 sync.runningElsewhere=Running (command line)
-sync.system.error=The system scheduler did not take the task: {0}
 info.dashboard=Dashboard
 dashboard.sample=Sample
 dashboard.every=every {0} s
@@ -689,3 +686,6 @@ help.dataFolder=Open SqlJam Folder
 help.shortcuts=Keyboard Shortcuts
 shortcuts.action=Action
 shortcuts.keys=Keys
+sync.column.runBy=Last run by
+sync.copyCommand=Copy Command
+sync.copyCommand.tooltip=Copies the command which runs the task without the window, e.g. for a cron or the Task Scheduler of your own
diff --git a/src/packaging/package.sh b/src/packaging/package.sh
index 6678af4..ef6ed98 100755
--- a/src/packaging/package.sh
+++ b/src/packaging/package.sh
@@ -10,7 +10,8 @@
 #   mac-aarch64, mac   SqlJam.app in SqlJam--.dmg
 #   win                SqlJam--win.zip, SqlJam\SqlJam.exe without installing, and SqlJam--win.msi
 #                      of releases (not of pre-releases like 1.0.0-rc1) when the WiX Toolset 3 is on the path
-#   linux              SqlJam--linux.tar.gz (SqlJam/bin/SqlJam) and sqljam__amd64.deb
+#   linux              SqlJam--linux.tar.gz (SqlJam/bin/SqlJam), sqljam__amd64.deb and
+#                      sqljam--1.x86_64.rpm
 #   every platform     SqlJam---jar.zip, the runnable jar with its launch scripts (Java 17+)
 #
 # The packages have their own Java runtime and the JVM options of sqljam.vmoptions. They are not signed with a
@@ -136,6 +137,13 @@ case "$PLATFORM" in
                 --vendor "Fred Feng" --linux-package-name sqljam --linux-shortcut --linux-menu-group Development
             mv "$WORK"/sqljam_*.deb "$OUT/"
         fi
+        # An rpm for Fedora, RHEL and openSUSE, the same installation as the deb
+        if command -v rpmbuild >/dev/null 2>&1; then
+            jpackage --type rpm --dest "$WORK" --app-image "$WORK/SqlJam" --name SqlJam --app-version "$APP_VERSION" \
+                --vendor "Fred Feng" --linux-package-name sqljam --linux-shortcut --linux-menu-group Development \
+                --linux-rpm-license-type "ASL 2.0"
+            mv "$WORK"/sqljam-*.rpm "$OUT/"
+        fi
         ;;
 esac
 echo "Packaged SqlJam $VERSION for $PLATFORM into $OUT"
diff --git a/src/test/java/com/github/sqljam/face/SyncCommandTest.java b/src/test/java/com/github/sqljam/face/SyncCommandTest.java
index b6c38f9..ad28053 100644
--- a/src/test/java/com/github/sqljam/face/SyncCommandTest.java
+++ b/src/test/java/com/github/sqljam/face/SyncCommandTest.java
@@ -99,7 +99,6 @@ void setUp() throws Exception {
         task.getTables().add(new SyncTask.Table("ITEMS", "ID", SyncTask.WatermarkType.INCREASING_KEY));
         task.setScheduleType(SyncTask.ScheduleType.INTERVAL);
         task.setIntervalMinutes(30);
-        task.setRunner(SyncTask.Runner.SYSTEM);
         context.getSyncScheduler().getStore().saveTask(task);
     }
 
@@ -128,7 +127,7 @@ void runsTasks() throws Exception {
         assertTrue(SyncCommand.isCommand(new String[]{"sync", "--list"}));
         assertFalse(SyncCommand.isCommand(new String[]{}));
         assertEquals(0, run("sync", "--list"));
-        assertTrue(out().contains("Items\tSYSTEM\tevery 30 min"), out());
+        assertTrue(out().contains("Items\tevery 30 min"), out());
 
         // Created just now: not due yet
         assertEquals(0, run("sync", "--task", "items", "--if-due"));
diff --git a/src/test/java/com/github/sqljam/face/service/SyncCommandLineTest.java b/src/test/java/com/github/sqljam/face/service/SyncCommandLineTest.java
new file mode 100644
index 0000000..15cc354
--- /dev/null
+++ b/src/test/java/com/github/sqljam/face/service/SyncCommandLineTest.java
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.service;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import org.junit.jupiter.api.Test;
+import com.github.sqljam.face.model.SyncTask;
+
+/**
+ * @Description: SyncCommandLineTest verifies the command line of a sync task for the shells of the systems, with
+ *               the arguments quoted where they need it
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+class SyncCommandLineTest {
+
+    @Test
+    void tellsTheCommandOfATask() {
+        SyncTask task = new SyncTask();
+        String unix = SyncCommandLine.of(task, "Mac OS X");
+        assertTrue(unix.endsWith(" sync --task " + task.getId()), unix);
+        String windows = SyncCommandLine.of(task, "Windows 11");
+        assertTrue(windows.endsWith(" sync --task " + task.getId()), windows);
+        // Tests run from the classes, not from a jar: the launcher script of the system
+        assertTrue(SyncCommandLine.launcher().isEmpty() || !unix.startsWith("sqljam"));
+    }
+
+    @Test
+    void quotesArguments() {
+        assertEquals("/usr/bin/java", SyncCommandLine.shellQuote("/usr/bin/java"));
+        assertEquals("'a b'", SyncCommandLine.shellQuote("a b"));
+        assertEquals("'it'\\''s'", SyncCommandLine.shellQuote("it's"));
+        assertEquals("C:\\SqlJam\\sqljam.exe", SyncCommandLine.windowsQuote("C:\\SqlJam\\sqljam.exe"));
+        assertEquals("\"a \\\"b\\\"\"", SyncCommandLine.windowsQuote("a \"b\""));
+    }
+}
diff --git a/src/test/java/com/github/sqljam/face/service/SystemSchedulerTest.java b/src/test/java/com/github/sqljam/face/service/SystemSchedulerTest.java
deleted file mode 100644
index 00ffbee..0000000
--- a/src/test/java/com/github/sqljam/face/service/SystemSchedulerTest.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/*
- * Copyright 2023-2026 Fred Feng
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package com.github.sqljam.face.service;
-
-import static org.junit.jupiter.api.Assertions.assertEquals;
-import static org.junit.jupiter.api.Assertions.assertFalse;
-import static org.junit.jupiter.api.Assertions.assertThrows;
-import static org.junit.jupiter.api.Assertions.assertTrue;
-
-import java.io.File;
-import java.io.IOException;
-import java.util.ArrayList;
-import java.util.List;
-
-import org.junit.jupiter.api.Test;
-import com.github.sqljam.face.model.SyncTask;
-
-/**
- * @Description: SystemSchedulerTest registers sync tasks with a crontab and a Task Scheduler which are recorded:
- *               the lines of SqlJam are marked, the other lines are kept, a task is replaced and removed, schedules
- *               which cron can not tell wake every 5 minutes and run when due, and arguments are quoted
- * @Author: Fred Feng
- * @Date: 24/10/2026
- * @Version 1.0.0
- */
-class SystemSchedulerTest {
-
-    /**
-     * A crontab in memory, and the commands which were run
-     */
-    private final List> commands = new ArrayList<>();
-    private String crontab;
-
-    private SystemScheduler scheduler(String os, List launcher) {
-        return new SystemScheduler(os, launcher, new File("/home/u/.sqljam/sync.log"), (command, input) -> {
-            commands.add(command);
-            if (command.equals(List.of("crontab", "-l"))) {
-                return crontab == null ? new SystemScheduler.Result(1, "no crontab for u")
-                        : new SystemScheduler.Result(0, crontab);
-            }
-            if (command.equals(List.of("crontab", "-"))) {
-                crontab = input;
-            }
-            return new SystemScheduler.Result(0, "");
-        });
-    }
-
-    private static SyncTask task(String id, SyncTask.ScheduleType type, int minutes) {
-        SyncTask task = new SyncTask();
-        task.setId(id);
-        task.setName(id);
-        task.setScheduleType(type);
-        task.setIntervalMinutes(minutes);
-        task.setRunner(SyncTask.Runner.SYSTEM);
-        return task;
-    }
-
-    @Test
-    void registersWithTheCrontab() throws IOException {
-        crontab = "0 3 * * * /usr/bin/backup\n";
-        SystemScheduler scheduler = scheduler("Mac OS X", List.of("/usr/bin/java", "-jar", "/opt/Sql Jam/sqljam.jar"));
-        assertTrue(scheduler.isAvailable());
-        SyncTask task = task("a1", SyncTask.ScheduleType.INTERVAL, 15);
-        scheduler.apply(task);
-        assertEquals("0 3 * * * /usr/bin/backup\n*/15 * * * * /usr/bin/java -jar '/opt/Sql Jam/sqljam.jar' sync "
-                + "--task a1 >> /home/u/.sqljam/sync.log 2>&1 # sqljam-sync a1\n", crontab);
-        assertTrue(scheduler.isRegistered("a1"));
-        // Registered again: replaced, not added
-        task.setScheduleType(SyncTask.ScheduleType.DAILY);
-        task.setDailyTime("02:30");
-        scheduler.apply(task);
-        assertEquals(2, crontab.split("\n").length);
-        assertTrue(crontab.contains("30 2 * * * /usr/bin/java"));
-        // Switched off: removed, the other line stays
-        task.setEnabled(false);
-        scheduler.apply(task);
-        assertEquals("0 3 * * * /usr/bin/backup\n", crontab);
-        assertFalse(scheduler.isRegistered("a1"));
-        // Nothing to remove: the crontab is not written
-        int written = commands.size();
-        scheduler.unregister("a1");
-        assertEquals(written + 1, commands.size());
-    }
-
-    @Test
-    void createsTheFirstCrontab() throws IOException {
-        SystemScheduler scheduler = scheduler("Linux", List.of("/opt/sqljam/bin/SqlJam"));
-        scheduler.register(task("b2", SyncTask.ScheduleType.INTERVAL, 90));
-        // Every 90 minutes is no cron time: it wakes every 5 minutes and runs when due
-        assertEquals("*/5 * * * * /opt/sqljam/bin/SqlJam sync --task b2 --if-due >> /home/u/.sqljam/sync.log 2>&1 "
-                + "# sqljam-sync b2\n", crontab);
-        scheduler.unregister("b2");
-        assertEquals("", crontab);
-    }
-
-    @Test
-    void tellsCronTimes() {
-        SystemScheduler scheduler = scheduler("Linux", List.of("sqljam"));
-        assertEquals("* * * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 1)));
-        assertEquals("*/20 * * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 20)));
-        assertEquals("0 * * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 60)));
-        assertEquals("0 */6 * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 360)));
-        assertEquals("0 0 * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 1440)));
-        assertEquals("*/5 * * * *", scheduler.cron(task("t", SyncTask.ScheduleType.INTERVAL, 7)));
-        assertFalse(scheduler.isExact(task("t", SyncTask.ScheduleType.INTERVAL, 7)));
-        assertFalse(scheduler.isExact(task("t", SyncTask.ScheduleType.INTERVAL, 300)));
-        SyncTask daily = task("t", SyncTask.ScheduleType.DAILY, 0);
-        daily.setDailyTime("23:05");
-        assertEquals("5 23 * * *", scheduler.cron(daily));
-    }
-
-    @Test
-    void registersWithTheTaskSchedulerOfWindows() throws IOException {
-        SystemScheduler scheduler = scheduler("Windows 11", List.of("C:\\Program Files\\SqlJam\\SqlJam.exe"));
-        scheduler.apply(task("c3", SyncTask.ScheduleType.INTERVAL, 90));
-        assertEquals(List.of("schtasks", "/Create", "/F", "/TN", "SqlJam\\sync-c3", "/TR",
-                "\"C:\\Program Files\\SqlJam\\SqlJam.exe\" sync --task c3", "/SC", "MINUTE", "/MO", "90"), commands
-                .get(0));
-        SyncTask daily = task("c3", SyncTask.ScheduleType.DAILY, 0);
-        daily.setDailyTime("02:00");
-        scheduler.apply(daily);
-        assertEquals(List.of("/SC", "DAILY", "/ST", "02:00"), commands.get(1).subList(7, 11));
-        scheduler.apply(task("c3", SyncTask.ScheduleType.INTERVAL, 1440));
-        assertEquals(List.of("/SC", "DAILY", "/ST", "00:00"), commands.get(2).subList(7, 11));
-        scheduler.apply(task("c3", SyncTask.ScheduleType.INTERVAL, 3000));
-        assertTrue(commands.get(3).get(6).endsWith("--if-due"));
-        assertEquals(List.of("/SC", "MINUTE", "/MO", "5"), commands.get(3).subList(7, 11));
-        SyncTask manual = task("c3", SyncTask.ScheduleType.MANUAL, 0);
-        scheduler.apply(manual);
-        assertEquals(List.of("schtasks", "/Delete", "/F", "/TN", "SqlJam\\sync-c3"), commands.get(4));
-        assertTrue(scheduler.isRegistered("c3"));
-    }
-
-    @Test
-    void failsWithoutALauncherOrWhenTheSystemRefuses() {
-        SystemScheduler unavailable = scheduler("Linux", List.of());
-        assertFalse(unavailable.isAvailable());
-        IOException e = assertThrows(IOException.class, () -> unavailable.register(task("d4", SyncTask.ScheduleType
-                .INTERVAL, 5)));
-        assertTrue(e.getMessage().contains("sqljam sync --task d4"));
-        SystemScheduler refused = new SystemScheduler("Linux", List.of("sqljam"), new File("sync.log"),
-                (command, input) -> new SystemScheduler.Result(command.contains("-l") ? 0 : 1, "permission denied"));
-        assertTrue(assertThrows(IOException.class, () -> refused.register(task("d4", SyncTask.ScheduleType.INTERVAL,
-                5))).getMessage().contains("permission denied"));
-    }
-
-    @Test
-    void quotesArguments() {
-        assertEquals("/usr/bin/java", SystemScheduler.shellQuote("/usr/bin/java"));
-        assertEquals("'a b'", SystemScheduler.shellQuote("a b"));
-        assertEquals("'it'\\''s'", SystemScheduler.shellQuote("it's"));
-        assertEquals("C:\\SqlJam\\sqljam.exe", SystemScheduler.windowsQuote("C:\\SqlJam\\sqljam.exe"));
-        assertEquals("\"a \\\"b\\\"\"", SystemScheduler.windowsQuote("a \"b\""));
-        assertEquals("SqlJam\\sync-x", SystemScheduler.taskName("x"));
-    }
-
-    @Test
-    void runsCommandsOfTheSystem() throws IOException {
-        SystemScheduler.Result result = SystemScheduler.execute(List.of("sh", "-c", "cat; echo done"), "input ");
-        assertEquals(0, result.getExitCode());
-        assertEquals("input done", result.getOutput().trim());
-        assertTrue(SystemScheduler.launcher() != null);
-    }
-}
diff --git a/src/test/java/com/github/sqljam/face/vdb/VdbMetricsTest.java b/src/test/java/com/github/sqljam/face/vdb/VdbMetricsTest.java
new file mode 100644
index 0000000..fa45016
--- /dev/null
+++ b/src/test/java/com/github/sqljam/face/vdb/VdbMetricsTest.java
@@ -0,0 +1,153 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.vdb;
+
+import static org.junit.jupiter.api.Assertions.assertEquals;
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+import static org.junit.jupiter.api.Assumptions.assumeTrue;
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.EnumSource;
+import org.junit.jupiter.api.Test;
+import com.github.sqljam.face.service.DashboardSampler;
+import com.github.sqljam.face.service.MetricSource;
+import com.github.sqljam.vdb.VdbClient;
+import com.github.sqljam.vdb.VdbCollection;
+import com.github.sqljam.vdb.VdbInfo;
+import com.github.sqljam.vdb.VdbQuery;
+import com.github.sqljam.vdb.VdbType;
+import com.github.sqljam.vdb.it.VdbServer;
+
+/**
+ * @Description: VdbMetricsTest verifies the dashboard of vector databases: the Prometheus text of a server, the
+ *               collections and records which every server tells, and the metrics of the servers of the tests,
+ *               sampled twice so that counters become rates
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+class VdbMetricsTest {
+
+    @Test
+    void readsPrometheusText() {
+        Map values = VdbInfo.prometheus("# HELP rest_responses_total requests\n"
+                + "# TYPE rest_responses_total counter\n"
+                + "rest_responses_total{endpoint=\"/collections\",status=\"200\"} 5\n"
+                + "rest_responses_total{endpoint=\"/points\",status=\"200\"} 7 1730000000000\n"
+                + "memory_resident_bytes 1048576\n"
+                + "rest_responses_duration_seconds_count{endpoint=\"/a\"} 3\n"
+                + "app_info{name=\"qdrant\",version=\"1.12.0\"} 1\n"
+                + "broken\n"
+                + "nan_metric NaN\n"
+                + "words_metric{a=\"b\"} not-a-number\n");
+        assertEquals(12.0, values.get("rest_responses_total"));
+        assertEquals(1048576.0, values.get("memory_resident_bytes"));
+        assertEquals(1.0, values.get("app_info"));
+        assertEquals(3.0, values.get("rest_responses_duration_seconds_count"));
+        assertFalse(values.containsKey("broken"));
+        assertFalse(values.containsKey("words_metric"));
+        assertTrue(Double.isNaN(values.get("nan_metric")));
+    }
+
+    /**
+     * Collections and records of any server: a collection which can not be counted is left out of the records
+     */
+    @Test
+    void countsCollectionsAndRecords() {
+        VdbClient client = new VdbClient() {
+            @Override
+            public VdbType getType() {
+                return VdbType.QDRANT;
+            }
+
+            @Override
+            public String getVersion() {
+                return "1";
+            }
+
+            @Override
+            public List getCollections() {
+                return List.of("a", "b", "denied", "uncounted");
+            }
+
+            @Override
+            public VdbCollection describe(String collection) {
+                if (collection.equals("denied")) {
+                    throw new IllegalStateException("HTTP 403");
+                }
+                return new VdbCollection(collection);
+            }
+
+            @Override
+            public long count(VdbCollection collection, VdbQuery query) {
+                return collection.getName().equals("uncounted") ? -1 : collection.getName().equals("a") ? 3 : 4;
+            }
+
+            @Override
+            public void read(VdbCollection collection, VdbQuery query, int pageSize, PageConsumer consumer) {
+            }
+
+            @Override
+            public void close() {
+            }
+        };
+        assertEquals(Map.of("collections", 4.0, "records", 7.0), client.getMetrics());
+    }
+
+    @ParameterizedTest
+    @EnumSource(value = VdbServer.class, names = {"QDRANT", "ELASTICSEARCH", "OPENSEARCH", "MILVUS", "WEAVIATE",
+            "CHROMA"})
+    void samplesDashboards(VdbServer server) throws Exception {
+        assumeTrue(server.isAvailable(), server + " is not available");
+        VdbProfile profile = new VdbProfile();
+        profile.setName(server.name());
+        profile.setType(server.getType());
+        profile.setUrl(server.getSource().getUrl());
+        profile.setApiKey(server.getSource().getApiKey());
+        profile.setUsername(server.getSource().getUsername());
+        profile.setPassword(server.getSource().getPassword());
+        profile.setCertificateTrusted(server.getSource().isCertificateTrusted());
+        try (VdbMetrics metrics = new VdbMetrics(profile)) {
+            DashboardSampler sampler = new DashboardSampler(metrics);
+            sampler.sample();
+            Thread.sleep(1200);
+            DashboardSampler.Sample sample = sampler.sample();
+            StringBuilder text = new StringBuilder(server.name()).append('\n');
+            for (MetricSource.Chart chart : metrics.getCharts()) {
+                for (MetricSource.Series series : chart.getSeries()) {
+                    boolean missing = series.getKeys().stream().anyMatch(metrics.getUnavailable()::containsKey);
+                    text.append(String.format("  %-24s %-14s %s%n", chart.getTitle(), series.getName(), missing
+                            ? "not told" : sample.get(chart, series)));
+                }
+            }
+            System.out.println(text);
+            assertTrue(sample.getValues().containsKey("Collections/Collections"), text.toString());
+            assertTrue(sample.getValues().containsKey("Sample time/All metrics"));
+            if (server == VdbServer.ELASTICSEARCH || server == VdbServer.OPENSEARCH) {
+                assertTrue(sample.getValues().containsKey("CPU/Nodes"), text.toString());
+                assertTrue(sample.getValues().containsKey("JVM heap/Used"), text.toString());
+            }
+            if (server == VdbServer.QDRANT) {
+                assertTrue(sample.getValues().containsKey("Requests/REST and gRPC"), text.toString());
+                assertTrue(sample.getValues().containsKey("Memory/Resident"), text.toString());
+            }
+        }
+    }
+}
diff --git a/src/test/java/com/github/sqljam/face/vdb/VdbSourceItemsTest.java b/src/test/java/com/github/sqljam/face/vdb/VdbSourceItemsTest.java
index 3efa4dd..1f40cfe 100644
--- a/src/test/java/com/github/sqljam/face/vdb/VdbSourceItemsTest.java
+++ b/src/test/java/com/github/sqljam/face/vdb/VdbSourceItemsTest.java
@@ -108,6 +108,8 @@ private static List names(List items) {
     @Test
     void showsCollectionsWhenDatabasesAreNotListed() throws Exception {
         DataSourceExtension.Source source = source(null);
+        // The info of a vector database has a dashboard
+        org.junit.jupiter.api.Assertions.assertTrue(source.getDashboard().get() instanceof VdbMetrics);
         List items = source.loadItems(null);
         assertEquals(List.of("COLLECTION docs", "COLLECTION faq"), names(items));
         // Partitions are not listed by this server, the collection is read whole
diff --git a/src/test/java/com/github/sqljam/face/vdb/VdbTestDialogs.java b/src/test/java/com/github/sqljam/face/vdb/VdbTestDialogs.java
new file mode 100644
index 0000000..cb24faa
--- /dev/null
+++ b/src/test/java/com/github/sqljam/face/vdb/VdbTestDialogs.java
@@ -0,0 +1,46 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.vdb;
+
+import java.io.File;
+import java.util.LinkedHashMap;
+import java.util.Map;
+import java.util.function.Supplier;
+
+import com.github.sqljam.face.view.AppContext;
+import javafx.scene.control.Dialog;
+import javafx.stage.Window;
+
+/**
+ * @Description: VdbTestDialogs creates the dialogs of the vdb line for tests of other packages, e.g. the layout of
+ *               every dialog on small screens
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+public final class VdbTestDialogs {
+
+    private VdbTestDialogs() {
+    }
+
+    public static Map>> create(Window owner, AppContext context, File dir) {
+        VdbProfileStore store = new VdbProfileStore(new File(dir, "vdb-layout.json"));
+        Map>> dialogs = new LinkedHashMap<>();
+        dialogs.put("Import from a vector database", () -> new VdbImportDialog(owner, context, store));
+        dialogs.put("Vector database", () -> new VdbConnectionDialog(owner, null, true));
+        return dialogs;
+    }
+}
diff --git a/src/test/java/com/github/sqljam/face/view/ConnectionFormTest.java b/src/test/java/com/github/sqljam/face/view/ConnectionFormTest.java
index 6d43f26..e9e413e 100644
--- a/src/test/java/com/github/sqljam/face/view/ConnectionFormTest.java
+++ b/src/test/java/com/github/sqljam/face/view/ConnectionFormTest.java
@@ -387,7 +387,7 @@ void invalidFormIsNotSaved() {
         ConnectionDialog dialog = FxTestSupport.call(() -> new ConnectionDialog(stage, context, null));
         FxTestSupport.run(dialog::show);
         FxTestSupport.run(() -> {
-            ConnectionForm dialogForm = (ConnectionForm) dialog.getDialogPane().getContent();
+            ConnectionForm dialogForm = (ConnectionForm) Dialogs.contentOf(dialog);
             @SuppressWarnings("unchecked")
             ComboBox combo = (ComboBox) dialogForm.lookup("#dbTypeCombo");
             combo.setValue(DbType.POSTGRESQL);
diff --git a/src/test/java/com/github/sqljam/face/view/DocScreenshots.java b/src/test/java/com/github/sqljam/face/view/DocScreenshots.java
index f4695a2..46148e0 100644
--- a/src/test/java/com/github/sqljam/face/view/DocScreenshots.java
+++ b/src/test/java/com/github/sqljam/face/view/DocScreenshots.java
@@ -582,7 +582,7 @@ void featureMap() throws Exception {
     }
 
     /**
-     * Sync tasks of the MySQL fixture into H2, one run now, one run by the system scheduler every night
+     * Sync tasks of the MySQL fixture into H2, one run now, one run every night
      */
     @Test
     void syncTasks() throws Exception {
@@ -610,7 +610,6 @@ void syncTasks() throws Exception {
                 com.github.sqljam.face.model.SyncTask.WatermarkType.INCREASING_KEY));
         nightly.setScheduleType(com.github.sqljam.face.model.SyncTask.ScheduleType.DAILY);
         nightly.setDailyTime("02:00");
-        nightly.setRunner(com.github.sqljam.face.model.SyncTask.Runner.SYSTEM);
         context.getSyncScheduler().getStore().saveTask(nightly);
         context.getSyncScheduler().runNow(hourly.getId()).get(120, java.util.concurrent.TimeUnit.SECONDS);
         FxTestSupport.run(mainView::openSync);
diff --git a/src/test/java/com/github/sqljam/face/view/FxTestSupport.java b/src/test/java/com/github/sqljam/face/view/FxTestSupport.java
index e11be71..188fe4d 100644
--- a/src/test/java/com/github/sqljam/face/view/FxTestSupport.java
+++ b/src/test/java/com/github/sqljam/face/view/FxTestSupport.java
@@ -29,7 +29,6 @@
 import com.github.sqljam.face.service.ConnectionStore;
 import com.github.sqljam.face.service.ExampleDatabase;
 import com.github.sqljam.face.service.SettingsStore;
-import com.github.sqljam.face.service.SystemScheduler;
 import javafx.application.Platform;
 import javafx.collections.ListChangeListener;
 import javafx.scene.Scene;
@@ -108,9 +107,6 @@ public static AppContext createContext(File dir) {
                 new File(dir, "connections.json"))), null);
         // The example database of tests is not created in the home directory of the user
         context.setExampleDatabase(new ExampleDatabase(true, new File(dir, "example")));
-        // Nor is the crontab or the Task Scheduler of this machine changed
-        context.setSystemScheduler(new SystemScheduler("Linux", List.of("sqljam"), new File(dir, "sync.log"),
-                (command, input) -> new SystemScheduler.Result(command.contains("-l") ? 1 : 0, "")));
         return context;
     }
 
diff --git a/src/test/java/com/github/sqljam/face/view/LayoutTest.java b/src/test/java/com/github/sqljam/face/view/LayoutTest.java
new file mode 100644
index 0000000..391d8ed
--- /dev/null
+++ b/src/test/java/com/github/sqljam/face/view/LayoutTest.java
@@ -0,0 +1,200 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.face.view;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+import static org.junit.jupiter.api.Assertions.assertTrue;
+
+import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Map;
+import java.util.function.Function;
+import java.util.function.Supplier;
+
+import org.junit.jupiter.api.AfterEach;
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.junit.jupiter.api.io.TempDir;
+import org.testfx.framework.junit5.ApplicationExtension;
+import org.testfx.framework.junit5.Start;
+import org.testfx.util.WaitForAsyncUtils;
+import com.github.sqljam.face.model.ConnectionProfile;
+import com.github.sqljam.face.model.TableInfo;
+import com.github.sqljam.face.vdb.VdbTestDialogs;
+import javafx.geometry.Bounds;
+import javafx.geometry.Rectangle2D;
+import javafx.scene.Node;
+import javafx.scene.Scene;
+import javafx.scene.control.CheckBox;
+import javafx.scene.control.Dialog;
+import javafx.scene.layout.StackPane;
+import javafx.stage.Stage;
+import javafx.stage.Window;
+
+/**
+ * @Description: LayoutTest opens every dialog and window of SqlJam on small screens (a laptop with its task bar and
+ *               a smaller one): none is higher or wider than its screen, the buttons at its bottom are in view, a
+ *               content which does not fit scrolls. The data source has its SSH tunnel open, its highest form.
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+@ExtendWith(ApplicationExtension.class)
+class LayoutTest {
+
+    /**
+     * Heights of the screens which windows may use: 1366 x 768 without the task bar, and a smaller screen
+     */
+    private static final double[] HEIGHTS = {700, 560};
+
+    @TempDir
+    File dir;
+
+    private Stage stage;
+    private AppContext context;
+    private ConnectionProfile profile;
+    private final Function screenArea = Dialogs.screenArea;
+
+    @Start
+    void start(Stage stage) throws Exception {
+        this.stage = stage;
+        context = FxTestSupport.createContext(dir);
+        profile = UiDatabase.create(dir, "Embedded H2");
+        context.getProfileRegistry().saveProfile(profile, true);
+        stage.setScene(new Scene(new StackPane(), 400, 300));
+        stage.show();
+    }
+
+    @AfterEach
+    void restore() {
+        Dialogs.screenArea = screenArea;
+        FxTestSupport.closeAllDialogs();
+    }
+
+    /**
+     * The dialogs by name, each created again for every screen
+     */
+    private Map>> dialogs() {
+        DbNode table = DbNode.table(profile, new TableInfo(UiDatabase.CATALOG, UiDatabase.SCHEMA, "T_PAGED", null,
+                false, false));
+        Map>> dialogs = new java.util.LinkedHashMap<>();
+        dialogs.put("Data source with SSH", () -> {
+            ConnectionDialog dialog = new ConnectionDialog(stage, context, null);
+            CheckBox ssh = (CheckBox) dialog.getDialogPane().lookup("#sshEnabledCheck");
+            if (ssh != null) {
+                ssh.setSelected(true);
+            }
+            return dialog;
+        });
+        dialogs.put("Export", () -> new ExportDialog(stage, context, table));
+        dialogs.put("Import package", () -> new ImportPackageDialog(stage, context, null));
+        dialogs.put("Import files", () -> new ImportParquetDialog(stage, context, null));
+        dialogs.put("Sync task", () -> new SyncTaskDialog(stage, context, null));
+        dialogs.put("Column mapping", () -> new ColumnMappingDialog(stage, List.of("T_PAGED", "T_ONE"), name -> List
+                .of(new ColumnMappingDialog.Column("ID", "INT", true)), Map.of()));
+        dialogs.put("Credentials", () -> new CredentialsDialog(stage, "Embedded H2", "Password", "sa",
+                "Access denied for user sa"));
+        dialogs.put("About", () -> Dialogs.createAbout(stage, null));
+        dialogs.putAll(VdbTestDialogs.create(stage, context, dir));
+        return dialogs;
+    }
+
+    @Test
+    void fitsDialogsToSmallScreens() {
+        List problems = new ArrayList<>();
+        for (double height : HEIGHTS) {
+            Dialogs.screenArea = window -> new Rectangle2D(0, 0, 1280, height);
+            for (Map.Entry>> entry : dialogs().entrySet()) {
+                Dialog dialog = FxTestSupport.call(() -> {
+                    Dialog created = entry.getValue().get();
+                    created.show();
+                    return created;
+                });
+                WaitForAsyncUtils.waitForFxEvents();
+                String problem = FxTestSupport.call(() -> check(dialog.getDialogPane().getScene(), height));
+                if (problem != null) {
+                    problems.add(entry.getKey() + " on a screen of " + (int) height + ": " + problem);
+                }
+                FxTestSupport.run(() -> {
+                    dialog.setResult(null);
+                    dialog.close();
+                    if (dialog.isShowing()) {
+                        dialog.getDialogPane().getScene().getWindow().hide();
+                    }
+                });
+            }
+        }
+        assertTrue(problems.isEmpty(), String.join("\n", problems));
+    }
+
+    /**
+     * The progress of a transfer and the package viewer, windows of their own
+     */
+    /**
+     * macOS makes a window as tall as the screen at most before it is shown, its scene stays taller then
+     */
+    @Test
+    void findsScenesTallerThanTheirWindows() {
+        Rectangle2D area = new Rectangle2D(0, 30, 1352, 781);
+        assertTrue(Dialogs.fits(800, 700, 28, 672, area));
+        assertFalse(Dialogs.fits(800, 781, 28, 931, area));
+        assertFalse(Dialogs.fits(800, 781, 28, 781, area));
+        assertFalse(Dialogs.fits(800, 900, 28, 872, area));
+        assertFalse(Dialogs.fits(1400, 700, 28, 672, area));
+    }
+
+    @Test
+    void fitsWindowsToSmallScreens() throws Exception {
+        Dialogs.screenArea = window -> new Rectangle2D(0, 0, 1280, 560);
+        ProgressDialog progress = FxTestSupport.call(() -> new ProgressDialog(stage, context, "Import", 3));
+        FxTestSupport.run(() -> progress.getStage().show());
+        WaitForAsyncUtils.waitForFxEvents();
+        assertTrue(FxTestSupport.call(() -> progress.getStage().getHeight()) <= 560.5);
+        assertTrue(FxTestSupport.call(() -> check(progress.getStage().getScene(), 560)) == null, FxTestSupport.call(
+                () -> check(progress.getStage().getScene(), 560)));
+        FxTestSupport.run(() -> progress.getStage().close());
+    }
+
+    /**
+     * What is wrong with the window of the scene on a screen of the height, null when nothing is
+     */
+    private static String check(Scene scene, double height) {
+        Window window = scene.getWindow();
+        scene.getRoot().applyCss();
+        scene.getRoot().layout();
+        if (window.getHeight() > height + 0.5) {
+            return String.format("the window is %.0f high", window.getHeight());
+        }
+        if (window.getY() < -0.5 || window.getY() + window.getHeight() > height + 0.5) {
+            return String.format("the window is at %.0f to %.0f", window.getY(), window.getY() + window.getHeight());
+        }
+        // The buttons at the bottom of a dialog
+        for (Node buttons : scene.getRoot().lookupAll(".button-bar")) {
+            if (!buttons.isVisible()) {
+                continue;
+            }
+            Bounds bounds = buttons.localToScene(buttons.getBoundsInLocal());
+            if (bounds.getMaxY() > scene.getHeight() + 0.5) {
+                return String.format("its buttons end at %.0f of %.0f", bounds.getMaxY(), scene.getHeight());
+            }
+            if (bounds.getHeight() < 10) {
+                return String.format("its buttons are %.0f high", bounds.getHeight());
+            }
+        }
+        return null;
+    }
+}
diff --git a/src/test/java/com/github/sqljam/face/view/MainViewTest.java b/src/test/java/com/github/sqljam/face/view/MainViewTest.java
index da13841..6ac5705 100644
--- a/src/test/java/com/github/sqljam/face/view/MainViewTest.java
+++ b/src/test/java/com/github/sqljam/face/view/MainViewTest.java
@@ -95,6 +95,9 @@ void start(Stage stage) throws Exception {
         context.getProfileRegistry().saveProfile(unreachable, true);
         mainView = new MainView(context);
         stage.setScene(new Scene(mainView, 1200, 800));
+        // The window of the tests keeps the size of the tests before, the toolbar needs its own width
+        stage.setWidth(1200);
+        stage.setHeight(800);
         stage.show();
     }
 
@@ -222,8 +225,28 @@ void showsEmptyAndErrorNodes() {
         FxTestSupport.waitForDialogPane();
         FxTestSupport.closeAllDialogs();
         FxTestSupport.waitUntil(() -> unreachable.getChildren().get(0).getValue().getKind()
-                == DbNode.Kind.MESSAGE);
-        assertTrue(labels(unreachable).get(0).startsWith("Error:"));
+                == DbNode.Kind.ERROR);
+        // A short reason in the tree, the data source marked, the full error in the detail
+        assertTrue(labels(unreachable).get(0).startsWith("Cannot connect: "));
+        assertTrue(FxTestSupport.call(() -> tree().isFailed(unreachable)));
+        assertNotNull(FxTestSupport.call(() -> unreachable.getChildren().get(0).getValue().getDetail()));
+        // Retry connects again, the failure shows its dialog again
+        FxTestSupport.run(() -> tree().retry(unreachable.getChildren().get(0)));
+        FxTestSupport.waitForDialogPane();
+        FxTestSupport.closeAllDialogs();
+        FxTestSupport.waitUntil(() -> unreachable.getChildren().get(0).getValue().getKind()
+                == DbNode.Kind.ERROR);
+    }
+
+    @Test
+    void summarizesErrorsInOneLine() {
+        Exception error = new RuntimeException("Failed to initialize pool: ORA-17820: Network adapter\n"
+                + "https://docs.oracle.com/error-help/db/ora-17820/", new java.io.IOException(
+                "Connection refused https://example.com/help"));
+        assertEquals("Cannot connect: Connection refused", ConnectionTree.summary(error));
+        assertEquals("Cannot connect: ORA-17820: Network adapter", ConnectionTree.summary(new RuntimeException(
+                "ORA-17820: Network adapter\nhttps://docs.oracle.com/error-help/db/ora-17820/")));
+        assertEquals("Cannot connect: NullPointerException", ConnectionTree.summary(new NullPointerException()));
     }
 
     @Test
diff --git a/src/test/java/com/github/sqljam/face/view/StartupTest.java b/src/test/java/com/github/sqljam/face/view/StartupTest.java
index 1c1d562..6fe2742 100644
--- a/src/test/java/com/github/sqljam/face/view/StartupTest.java
+++ b/src/test/java/com/github/sqljam/face/view/StartupTest.java
@@ -118,7 +118,7 @@ private TreeItem connection() {
     private static boolean connected(TreeItem item) {
         return FxTestSupport.call(() -> !item.getChildren().isEmpty() && item.getChildren().stream().noneMatch(
                 child -> child.getValue().getKind() == DbNode.Kind.LOADING || child.getValue().getKind()
-                        == DbNode.Kind.MESSAGE));
+                        == DbNode.Kind.ERROR));
     }
 
     private static DialogPane credentials() {
@@ -185,7 +185,7 @@ void asksRefusedPasswordAgain() throws Exception {
         FxTestSupport.run(() -> ((Button) refused.lookupButton(ButtonType.CANCEL)).fire());
         FxTestSupport.closeAllDialogs();
         FxTestSupport.waitUntil(() -> FxTestSupport.call(() -> again.getChildren().stream().anyMatch(child -> child
-                .getValue().getKind() == DbNode.Kind.MESSAGE)));
+                .getValue().getKind() == DbNode.Kind.ERROR)));
     }
 
     @Test
diff --git a/src/test/java/com/github/sqljam/face/view/SyncDemo.java b/src/test/java/com/github/sqljam/face/view/SyncDemo.java
index 987d346..ac754a3 100644
--- a/src/test/java/com/github/sqljam/face/view/SyncDemo.java
+++ b/src/test/java/com/github/sqljam/face/view/SyncDemo.java
@@ -292,14 +292,12 @@ void showsScheduledSync() throws Exception {
         FxTestSupport.run(() -> schemas.setValue(SCHEMA));
         pause(600);
 
-        say("Every 15 minutes, run by SqlJam while it is open. The system scheduler would run it when SqlJam is "
-                + "closed too.");
+        say("Every 15 minutes, while SqlJam is open. Copy Command gives its command line for a cron of your own.");
         ComboBox schedules = (ComboBox) top("syncScheduleCombo");
         choose(schedules, SyncTask.ScheduleType.INTERVAL);
         highlight(top("syncIntervalSpinner"));
         FxTestSupport.run(() -> ((javafx.scene.control.Spinner) top("syncIntervalSpinner"))
                 .getValueFactory().setValue(15));
-        highlight(top("syncRunnerCombo"));
         DialogPane pane = onFx(() -> (DialogPane) top("syncNameField").getScene().getRoot());
         press(onFx(() -> pane.lookupButton(ButtonType.OK)));
         FxTestSupport.waitUntil(() -> !tab.getTasks().isEmpty());
@@ -307,7 +305,7 @@ void showsScheduledSync() throws Exception {
         say("Run Now: the first run copies all rows. The watermark is read before the rows.");
         runNow(tab);
         say("Completed, 5 rows. PostgreSQL has: " + targetRows() + ".");
-        say("Last Report opens the report of the run: rows of each table, checked in the target, and the "
+        say("Report opens the report of the run: rows of each table, checked in the target, and the "
                 + "watermark.");
         press(tab.getContent().lookup("#syncReportButton"));
         pause(3500);
diff --git a/src/test/java/com/github/sqljam/face/view/SyncTabTest.java b/src/test/java/com/github/sqljam/face/view/SyncTabTest.java
index db20fc0..d9b4f1f 100644
--- a/src/test/java/com/github/sqljam/face/view/SyncTabTest.java
+++ b/src/test/java/com/github/sqljam/face/view/SyncTabTest.java
@@ -102,6 +102,9 @@ void start(Stage stage) throws Exception {
         }
         mainView = new MainView(context);
         stage.setScene(new Scene(mainView, 1200, 800));
+        // The window of the tests keeps the size of the tests before, the toolbar needs its own width
+        stage.setWidth(1200);
+        stage.setHeight(800);
         stage.show();
     }
 
@@ -293,46 +296,34 @@ void warnsOfPasswordsWhichAreNotRemembered() throws Exception {
     }
 
     /**
-     * A task of the system scheduler is registered when it is saved, removed when it is switched off or deleted
+     * Copy Command gives the command line of the task, SqlJam registers nothing with the system
      */
     @Test
-    void registersTasksOfTheSystemScheduler() throws Exception {
-        String[] crontab = {null};
-        context.setSystemScheduler(new com.github.sqljam.face.service.SystemScheduler("Linux", List.of("sqljam"),
-                new File(dir, "sync.log"), (command, input) -> {
-                    if (command.contains("-l")) {
-                        return new com.github.sqljam.face.service.SystemScheduler.Result(crontab[0] == null ? 1 : 0,
-                                crontab[0] == null ? "" : crontab[0]);
-                    }
-                    crontab[0] = input;
-                    return new com.github.sqljam.face.service.SystemScheduler.Result(0, "");
-                }));
+    void copiesTheCommandOfATask() throws Exception {
         SyncTab tab = openSync();
-        SyncTaskDialog dialog = dialog(null);
-        FxTestSupport.run(() -> {
-            ComboBox targets = node(dialog, "syncTargetCombo");
-            targets.setValue(targets.getItems().stream().filter(profile -> profile.getName().equals("target"))
-                    .findFirst().orElseThrow());
-            row(dialog, "ORDERS").selected.set(true);
-            ((ComboBox) node(dialog, "syncRunnerCombo")).setValue(SyncTask.Runner.SYSTEM);
-        });
-        FxTestSupport.waitUntil(() -> "UPDATED_AT".equals(row(dialog, "ORDERS").watermarkColumn.get()));
-        SyncTask task = FxTestSupport.call(dialog::buildTask);
-        assertEquals(SyncTask.Runner.SYSTEM, task.getRunner());
+        SyncTask task = new SyncTask();
+        task.setName("nightly");
+        task.setSourceId(source.getId());
+        task.setTargetId(target.getId());
+        task.getTables().add(new SyncTask.Table("ORDERS", "ID", SyncTask.WatermarkType.INCREASING_KEY));
+        task.setScheduleType(SyncTask.ScheduleType.MANUAL);
         FxTestSupport.run(() -> tab.save(task));
-        assertTrue(crontab[0].contains("0 * * * * sqljam sync --task " + task.getId()), crontab[0]);
-        assertEquals("System scheduler", FxTestSupport.call(() -> tab.getTable().getColumns().get(4).getCellData(0)));
-        // The scheduler of SqlJam leaves it to the system
-        context.getSyncScheduler().tick();
-        assertFalse(context.getSyncScheduler().isRunning(task.getId()));
+        // Found among the items of the toolbar, a narrow window puts it into the overflow menu instead of the scene
+        Button command = FxTestSupport.call(() -> {
+            tab.getContent().applyCss();
+            return (Button) tab.getContent().lookupAll(".tool-bar").stream()
+                    .flatMap(bar -> ((javafx.scene.control.ToolBar) bar).getItems().stream())
+                    .filter(item -> "syncCommandButton".equals(item.getId())).findFirst().orElseThrow();
+        });
+        assertTrue(FxTestSupport.call(command::isDisabled));
         FxTestSupport.run(() -> tab.getTable().getSelectionModel().select(0));
-        FxTestSupport.run(((Button) tab.getContent().lookup("#syncToggleButton"))::fire);
-        assertEquals("", crontab[0]);
-        FxTestSupport.run(((Button) tab.getContent().lookup("#syncToggleButton"))::fire);
-        assertTrue(crontab[0].contains(task.getId()));
-        Platform.runLater(() -> tab.delete(tab.getTasks().get(0)));
-        FxTestSupport.closeDialog(ButtonType.OK);
-        FxTestSupport.waitUntil(() -> "".equals(crontab[0]));
+        assertFalse(FxTestSupport.call(command::isDisabled));
+        FxTestSupport.run(command::fire);
+        // The headless screen of the tests has no clipboard of the system, the copied line is told
+        String copied = FxTestSupport.call(() -> tab.copyCommand(tab.getTable().getSelectionModel()
+                .getSelectedItem()));
+        assertTrue(copied.endsWith(" sync --task " + task.getId()), copied);
+        assertNull(FxTestSupport.call(() -> tab.copyCommand(null)));
     }
 
     @Test
diff --git a/src/test/java/com/github/sqljam/face/view/TutorialVideo.java b/src/test/java/com/github/sqljam/face/view/TutorialVideo.java
index bd7c40c..0b6f805 100644
--- a/src/test/java/com/github/sqljam/face/view/TutorialVideo.java
+++ b/src/test/java/com/github/sqljam/face/view/TutorialVideo.java
@@ -94,7 +94,7 @@
  *               Server), vector databases (the filter of the tree, a Qdrant collection page by page, conditions,
  *               nearest neighbors and whole values, its import into PostgreSQL, the tenants of Weaviate, the info)
  *               and the scheduled sync (a task of the example into PostgreSQL, the first and the next run, their
- *               reports, the system scheduler and the history). They are recorded once per major version, they
+ *               reports, the command line of a task and the history). They are recorded once per major version, they
  *               are not tests of the build (the name does not end with Test), run them by
  *               mvn test -Pui -Dtest=TutorialVideo -Dvideo.dir=docs/assets
  *               The windows are shown on the screen while recording, the target databases are those of the
@@ -359,7 +359,7 @@ private void changeShop() throws SQLException {
 
     /**
      * A sync task of the example into PostgreSQL: the first run copies all rows, the next one the changed rows,
-     * every run leaves a report, the system scheduler runs it when SqlJam is closed, the history lists the runs
+     * every run leaves a report, its command line runs it without the window, the history lists the runs
      */
     @SuppressWarnings("unchecked")
     private void sync() throws Exception {
@@ -444,18 +444,11 @@ private void sync() throws Exception {
         recorder.caption("Errors of the connection are run again, errors of the data are not, the watermark moves "
                 + "after the commit only");
         pause(3500);
-        recorder.caption("Run by the system scheduler (crontab, Task Scheduler), the task runs when SqlJam is closed "
-                + "too");
+        recorder.caption("Copy Command gives the command line of the task, for a cron of your own when SqlJam is "
+                + "closed");
         FxTestSupport.run(() -> tab.getTable().getSelectionModel().select(0));
-        press(node(tab.getContent(), "syncEditButton"));
-        waitFor(() -> topNode("syncRunnerCombo"));
-        fitDialog(topWindow());
-        pause(800);
-        choose(topNode("syncRunnerCombo"), SyncTask.Runner.SYSTEM);
-        pause(800);
-        press(buttonOf(topWindow(), "OK"));
-        waitFor(() -> syncTask().getRunner() == SyncTask.Runner.SYSTEM ? true : null);
-        pause(2500);
+        press(node(tab.getContent(), "syncCommandButton"));
+        pause(3000);
 
         recorder.caption("Transfer > Import History keeps the report of every run, next to the imports and exports");
         fileMenu("historyMenuItem");
diff --git a/src/test/java/com/github/sqljam/impexp/SqlScriptRunnerTest.java b/src/test/java/com/github/sqljam/impexp/SqlScriptRunnerTest.java
index b204c1f..9589a31 100644
--- a/src/test/java/com/github/sqljam/impexp/SqlScriptRunnerTest.java
+++ b/src/test/java/com/github/sqljam/impexp/SqlScriptRunnerTest.java
@@ -175,6 +175,76 @@ public void onRowSkipped(String catalogName, String schemaName, String tableName
         assertFalse(SqlScriptRunner.isRowStatement("CREATE TABLE inserts (id INT)"));
     }
 
+    /**
+     * INSERT statements of one row of a table are merged into statements of many rows, others stay as they are
+     */
+    @Test
+    void mergesInsertsOfOneRow() {
+        List merged = SqlScriptRunner.mergeInserts(List.of(
+                "INSERT INTO \"s\".\"t\" (\"a\",\"b\") VALUES (1, 'x, (y)')",
+                "INSERT INTO \"s\".\"t\" (\"a\",\"b\") VALUES (2, 'it''s')",
+                "INSERT INTO \"s\".\"t\" (\"a\") VALUES (3)",
+                "INSERT INTO \"s\".\"u\" VALUES (4)",
+                "INSERT INTO \"s\".\"u\" VALUES (5) ON CONFLICT (a) DO UPDATE SET b = (1)",
+                "INSERT INTO \"s\".\"u\" VALUES (6) RETURNING (a)",
+                "INSERT INTO \"s\".\"u\" SELECT 7",
+                "MERGE INTO \"s\".\"u\" USING x ON (1 = 1)",
+                "INSERT INTO \"s\".\"u\" VALUES (8)",
+                "INSERT INTO \"s\".\"u\" VALUES (9)",
+                "INSERT INTO \"s\".\"u\" VALUES (10)"), 2, 1000, false);
+        assertEquals(List.of(
+                "INSERT INTO \"s\".\"t\" (\"a\",\"b\") VALUES (1, 'x, (y)'),(2, 'it''s')",
+                "INSERT INTO \"s\".\"t\" (\"a\") VALUES (3)",
+                "INSERT INTO \"s\".\"u\" VALUES (4)",
+                "INSERT INTO \"s\".\"u\" VALUES (5) ON CONFLICT (a) DO UPDATE SET b = (1)",
+                "INSERT INTO \"s\".\"u\" VALUES (6) RETURNING (a)",
+                "INSERT INTO \"s\".\"u\" SELECT 7",
+                "MERGE INTO \"s\".\"u\" USING x ON (1 = 1)",
+                "INSERT INTO \"s\".\"u\" VALUES (8),(9)",
+                "INSERT INTO \"s\".\"u\" VALUES (10)"), merged);
+        // A long statement is not merged beyond the length
+        assertEquals(2, SqlScriptRunner.mergeInserts(List.of("INSERT INTO t VALUES ('aaaa')",
+                "INSERT INTO t VALUES ('bbbb')"), 100, 35, false).size());
+        // Backslashes escape quotes in MySQL, not in PostgreSQL
+        assertTrue(SqlScriptRunner.valuesOfOneRow("INSERT INTO t VALUES ('O\\'Brien', 1)", true) > 0);
+        assertEquals(-1, SqlScriptRunner.valuesOfOneRow("INSERT INTO t VALUES ('O\\'Brien', 1)", false));
+        assertTrue(SqlScriptRunner.valuesOfOneRow("insert into t values ('a\\', 1)  ", false) > 0);
+        assertEquals(-1, SqlScriptRunner.valuesOfOneRow("INSERT INTO t VALUES ('open", false));
+        assertEquals(-1, SqlScriptRunner.valuesOfOneRow("UPDATE t SET a = 1", false));
+    }
+
+    /**
+     * Merged statements of a batch which fails are run one by one again, the rows with errors are skipped alone
+     */
+    @Test
+    void runsMergedInsertsOneByOneAfterAnError() throws Exception {
+        try (Connection connection = DriverManager.getConnection("jdbc:h2:mem:merged;DB_CLOSE_DELAY=-1")) {
+            List skipped = new ArrayList<>();
+            SqlScriptRunner runner = new SqlScriptRunner(connection);
+            runner.setStopOnError(false);
+            runner.setRowsPerInsert(100);
+            runner.setExportListener(new ExportListener() {
+                @Override
+                public void onRowSkipped(String catalogName, String schemaName, String tableName, String key,
+                                         Throwable e) {
+                    skipped.add(key);
+                }
+            });
+            StringBuilder script = new StringBuilder("CREATE TABLE m (id INT PRIMARY KEY, name VARCHAR(5));\n");
+            for (int i = 1; i <= 250; i++) {
+                script.append("INSERT INTO m VALUES (").append(i).append(", '").append(i == 120 ? "too long" : "n")
+                        .append("');\n");
+            }
+            runner.runScript(script.toString());
+            assertEquals(List.of("INSERT INTO m VALUES (120, 'too long')"), skipped);
+            assertEquals(1, runner.getFailedCount());
+            try (ResultSet rs = connection.createStatement().executeQuery("SELECT COUNT(*) FROM m")) {
+                rs.next();
+                assertEquals(249, rs.getInt(1));
+            }
+        }
+    }
+
     @Test
     void runBatches() throws Exception {
         try (Connection connection = DriverManager.getConnection("jdbc:h2:mem:batch;DB_CLOSE_DELAY=-1")) {
diff --git a/src/test/java/com/github/sqljam/it/BenchmarkChart.java b/src/test/java/com/github/sqljam/it/BenchmarkChart.java
new file mode 100644
index 0000000..0c52763
--- /dev/null
+++ b/src/test/java/com/github/sqljam/it/BenchmarkChart.java
@@ -0,0 +1,89 @@
+/*
+ * Copyright 2023-2026 Fred Feng
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.github.sqljam.it;
+
+import static org.junit.jupiter.api.Assertions.assertFalse;
+
+import java.io.File;
+import java.nio.charset.StandardCharsets;
+import java.nio.file.Files;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.Locale;
+import java.util.stream.Collectors;
+
+import org.junit.jupiter.api.Test;
+import org.junit.jupiter.api.extension.ExtendWith;
+import org.testfx.framework.junit5.ApplicationExtension;
+import com.github.sqljam.face.view.DocImages;
+import com.github.sqljam.face.view.FxTestSupport;
+import javafx.scene.Group;
+import javafx.scene.image.WritableImage;
+
+/**
+ * @Description: BenchmarkChart draws the chart of the Performance section again from a table of results which
+ *               TransferBenchmark wrote (transfer.md), without measuring again, e.g. when a run on a slow network
+ *               replaced it. The seconds follow from the rows a second, so that the chart tells the same numbers as
+ *               the table. It is not a test of the build, run it by
+ *               mvn test -Dtest=BenchmarkChart -Dbench.table=target/bench/transfer.md -Dbench.output=docs/assets
+ * @Author: Fred Feng
+ * @Date: 24/10/2026
+ * @Version 1.0.0
+ */
+@ExtendWith(ApplicationExtension.class)
+class BenchmarkChart {
+
+    /**
+     * Results of the rows of a table of TransferBenchmark: | Scenario | Rows | Time | Rows/s |
+     */
+    static List parse(List lines) {
+        List results = new ArrayList<>();
+        for (String line : lines) {
+            String[] cells = line.split("\\|");
+            if (cells.length < 5 || !cells[4].trim().endsWith("k")) {
+                continue;
+            }
+            String label = cells[1].trim();
+            long rows = Long.parseLong(cells[2].trim().replace(",", ""));
+            double rate = Double.parseDouble(cells[4].trim().replace("k", "")) * 1000;
+            String color = label.startsWith("Qdrant") ? TransferBenchmark.VECTOR : label.startsWith("SQL package")
+                    ? TransferBenchmark.IMPORT : label.endsWith("package") ? TransferBenchmark.PACKAGE
+                    : TransferBenchmark.DIRECT;
+            results.add(new TransferBenchmark.Result(label, color, rows, rows / rate));
+        }
+        return results;
+    }
+
+    @Test
+    void redraw() throws Exception {
+        List lines = Files.readAllLines(new File(System.getProperty("bench.table",
+                "target/bench/transfer.md")).toPath(), StandardCharsets.UTF_8);
+        List results = parse(lines);
+        assertFalse(results.isEmpty());
+        String environment = lines.stream().filter(line -> line.startsWith("Environment: ")).map(line -> line
+                .substring("Environment: ".length())).findFirst().orElse("");
+        String title = String.format(Locale.ENGLISH, "Throughput · %,d rows, 6 columns", results.get(0).rows);
+        List shapes = TransferBenchmark.chart(title, environment, results.stream().filter(
+                result -> !TransferBenchmark.VECTOR.equals(result.color)).collect(Collectors.toList()));
+        File output = new File(System.getProperty("bench.output", "target/bench"));
+        output.mkdirs();
+        Files.writeString(new File(output, "benchmark.svg").toPath(), TransferBenchmark.svg(shapes),
+                StandardCharsets.UTF_8);
+        WritableImage image = FxTestSupport.call(() -> new Group(shapes.stream().map(TransferBenchmark.Shape::toNode)
+                .collect(Collectors.toList())).snapshot(null, null));
+        DocImages.write(image, new File(output, "benchmark.png"));
+    }
+}
diff --git a/src/test/java/com/github/sqljam/vdb/it/VdbServer.java b/src/test/java/com/github/sqljam/vdb/it/VdbServer.java
index 7743719..94080c9 100644
--- a/src/test/java/com/github/sqljam/vdb/it/VdbServer.java
+++ b/src/test/java/com/github/sqljam/vdb/it/VdbServer.java
@@ -79,9 +79,13 @@ static final class Settings {
         private static final Properties PROPERTIES = new Properties();
         private static final Map AVAILABLE = new EnumMap<>(VdbServer.class);
 
+        // Servers of the environment like those of the databases (-Dit.env), the ci environment has none
         static {
-            try (InputStream in = VdbServer.class.getResourceAsStream("/it-vdb-test.properties")) {
-                PROPERTIES.load(new InputStreamReader(in, StandardCharsets.UTF_8));
+            String environment = System.getProperty("it.env", "test");
+            try (InputStream in = VdbServer.class.getResourceAsStream("/it-vdb-" + environment + ".properties")) {
+                if (in != null) {
+                    PROPERTIES.load(new InputStreamReader(in, StandardCharsets.UTF_8));
+                }
             } catch (IOException e) {
                 throw new IllegalStateException(e);
             }