# Common tasks

**Target length:** 11 minutes  
**Kernel on camera:** 2.74.26  
**Audience:** Operator who can already insert a testdb row and wants the daily lines, the GUI, and the fast path.

Every line below is handled in `workgroup-server.mjs`. If a reply is `OK sql` plus your text, the kernel did not run that statement. Stop and use a line from this list.

Chatty use is one command, then wait for one reply. That path is bound by round trip. The fast path on this engine is one `MINSERT` or one `MGET` carrying many keys, or several of those lines written on the same socket before you read. The 2.34 upgrade note records a Python wait-for-line floor around 400 microseconds and says that number is the client round trip, not the map lookup. Do not quote it as today’s score. Do not invent a new one. `SHOW LATENCY` prints whatever this process has sampled since start.

## On-screen beats

1. `PING`, `SHOW VERSION`, `STATS`, `COUNT TESTDB`.
2. A prepared insert: `PREPARE` / `EXECUTE` / `DEALLOCATE`.
3. One `MINSERT` with four pairs, then one `MGET`.
4. `SHOW WAL`, `SHOW STORAGE`, `SET FLUSH_POLICY batched`, then `always` again.
5. Control Center Overview for the same LSN, then Help pane for the port list.
6. `SHOW LATENCY` — read the JSON, do not turn it into a claim.
7. Client: `veloce ping`, `veloce sql`, and `veloce help` (mount/attach imports into testdb).

## GUI vs CLI

| Show in the GUI | Show in the terminal |
| --- | --- |
| Overview: version, rows, LSN, native ISAM, Refresh | All of the lines below |
| Help pane: 1583, 2143, 1584, 8098, `/health`, `/console` | `veloce ping`, `veloce sql` |
| SQL / builder: live `POST /api/v1/sql` | `veloce sql`, `veloce join-build`, `veloce db list` |

Full versus Lean in the header only hides the nav. It is the same kernel. The word `headless` in that UI is a catalog of a flag that is not shipped.

## Spoken script

“Daily work on this kernel is a short list. I am on localhost, port twenty-one forty-three, trial or a valid key so writes are allowed. I will say the reply I expect. If I ever get `OK sql` and then my own words back, I typed something this port does not run.”

```text
PING
SHOW VERSION
STATS
COUNT TESTDB
SHOW TABLES
```

“`PONG`. `VELOCE 2.74.3`. `STATS` is JSON with count, ops, lsn, and version. `COUNT` is `COUNT` and a number. Tables are `sys.tenants testdb`.”

“A missing record is status four. I insert with a key I can read back.”

```text
INSERT TESTDB order-5001 pending
GET TESTDB order-5001
GETEQUAL TESTDB order-5001
```

“`GET` and `GETEQUAL` both resolve a TESTDB key on this listener. Hit is `OK pending`. Miss is `STATUS 4`.”

“Prepared statements on this port prepare one shape: insert into TESTDB. The name is yours.”

```text
PREPARE ins AS INSERT TESTDB
EXECUTE ins order-5002 packed
GET TESTDB order-5002
DEALLOCATE ins
SHOW QUERIES
```

“Replies: `OK prepared ins`, `OK 1`, `OK packed`, `OK deallocated`. `SHOW QUERIES` lists remaining prepared names, plus the compliance label and the kill-switch flag. I am leaving the kill switch alone. `KILL SWITCH ON` refuses writes until `KILL SWITCH RESUME YES`. That resume can also promote a replica if auto-promote is armed. Not a casual demo.”

“Compliance is a label, not a certificate.”

```text
SET COMPLIANCE Standard
```

“Reply: `OK compliance Standard`. The other words it accepts are GDPR, HIPAA, PCI, SOC2. Storing the word HIPAA does not make this host certified. `certifiedClaim` on the planes you will see in the GUI stays false.”

“Flush policy is real. Default behavior is whatever the process started with. Two tokens work.”

```text
SET FLUSH_POLICY batched
SET FLUSH_POLICY always
SHOW WAL
```

“`OK flush_policy batched`, then `OK flush_policy always`. `SHOW WAL` is JSON: lsn, bytes, pending, flush_policy, checksum crc32. The same JSON says the native mmap WAL codec stays external. Read that leftover out loud so nobody thinks `SHOW WAL` turned on a different storage engine.”

```text
SHOW STORAGE
```

“Row count, wal bytes, tiers containing `hot`. The leftover line says CSI, S3, and mmap expand stay external. The hot tier is the tier you have.”

“Now the fast path. Four pairs, one line. Values have no spaces.”

```text
MINSERT TESTDB k1 alpha k2 beta k3 gamma k4 delta
MGET TESTDB k1 k2 k3 k4
```

“`OK 4`, then one mget reply. That is the path to teach for a batch. A loop of `INSERT`, read reply, `INSERT`, read reply, pays a round trip every row. Pipelining means writing several `MINSERT` lines on one connection before you read. The server can cork those replies. I am not going to put a millisecond on the screen. If you want a measurement from this process, ask it.”

```text
SHOW LATENCY
```

“JSON histograms: sql_insert, sql_get, isam_insert, isam_get, with n and percentiles in microseconds, sampled on this run. Empty or tiny n means you have not done enough calls for a percentile to mean anything. An old upgrade note, two thirty-four, says a Python client that waits for each line sat near a four hundred microsecond floor, and that the floor was the client, not the map. I am leaving that sentence in the past. Today’s number is the JSON in front of us, or no number.”

Switch to Control Center. Refresh.

“Same LSN as `SHOW WAL`. Help lists the ports again. Cluster pane is the cluster snapshot from health — we use it in the enterprise video. Show E2E is a leftover-honest overlay. It is analog. It is not a second kernel.”

```text
veloce ping 127.0.0.1
veloce sql 127.0.0.1
```

“Banner from fifteen eighty-three, then `SHOW TABLES` from twenty-one forty-three. `veloce mount` is the attach command — it imports a file into testdb and prints native equals false. For any other line I keep using the small Node helper from the install video. File attach is the attach video.”

“Operator URLs, all on localhost eighty ninety-eight: `/health`, `/livez`, `/readyz`, `/metrics`, `/console`. `/metrics` is Prometheus text. I open `/health` and point at `testdb.count` so it matches `COUNT TESTDB`.”

“Last limit. `SET ROLE reader` is recorded on the connection. `RESET`, `FLUSH`, and `RESTORE` go through a gate that returns `ERROR role reader`. `INSERT` and `MINSERT` go through a different gate, and that gate does not look at the reader flag. So I will not tell you that `SET ROLE reader` is a write lock. If you need a process that forwards writes to a primary, that is a replica, and it is the enterprise video.”

## Exact commands

```text
PING
QUIT
SHOW VERSION
STATS
COUNT TESTDB
SHOW TABLES
INSERT TESTDB order-5001 pending
GET TESTDB order-5001
GETEQUAL TESTDB order-5001
PREPARE ins AS INSERT TESTDB
EXECUTE ins order-5002 packed
DEALLOCATE ins
SHOW QUERIES
SET COMPLIANCE Standard
SET FLUSH_POLICY batched
SET FLUSH_POLICY always
SHOW WAL
SHOW STORAGE
SHOW LATENCY
MINSERT TESTDB k1 alpha k2 beta k3 gamma k4 delta
MGET TESTDB k1 k2 k3 k4
MGETEQUAL TESTDB k1 k2
SHOW LICENSE
```

`SET COMPLIANCE` accepts `Standard`, `GDPR`, `HIPAA`, `PCI`, `SOC2` only.

`SET FLUSH_POLICY` accepts `always` or `batched` only.

`PREPARE` accepts `PREPARE <name> AS INSERT TESTDB` only. Anything else is not a prepared statement.

Shipped client:

```text
veloce ping 127.0.0.1
veloce sql 127.0.0.1 2143
veloce help
veloce mount customers.csv --dir ./data --table CUSTOMERS
veloce mounts --dir ./data
```

HTTP:

```text
https://127.0.0.1:8098/health
https://127.0.0.1:8098/livez
https://127.0.0.1:8098/readyz
https://127.0.0.1:8098/metrics
https://127.0.0.1:8098/console
```

## Do not say

- A queries-per-second figure, a TPC result, or “sub-millisecond” as a product claim. `SHOW LATENCY` is this process’s histogram. The 400 microsecond sentence is a 2.34 client-floor note.
- `CREATE TABLE`, `UPDATE`, `DELETE`, or `JOIN` on port 2143. Those words are not this video. The sidecar video covers a limited `psql` set.
- That Lean or the word headless is a different server. `headlessFlag` is false. The GUI ships in the Workgroup zip.
- Actian Zen, Pervasive, Btrieve, a Community SKU, Always On, Kubernetes, SPIRE as a live agent, DPDK, or GenRM as a model that is running.
- That `SET COMPLIANCE HIPAA` certifies the host.
- That `SET ROLE reader` blocks `INSERT`. It does not, on the insert gate in this kernel.
