Upgrade to v1.9
MygramDB v1.9.0 adds typed C/C++ search options, more faithful replication value decoding, and stricter validation. Most deployments upgrade without configuration changes, but review the checks below before replacing a running node.
Before You Upgrade
Check configured columns and collations
MygramDB now validates every configured primary-key, text-source, and filter column before replication starts. The following column types cannot be configured:
BINARYVARBINARYBLOB
Character columns must use a utf8mb4, utf8/utf8mb3, or ascii collation. For example, a configured latin1_swedish_ci column now causes startup to fail instead of accepting data that cannot be represented consistently by the initial loader and binlog reader.
Inspect the columns referenced by your configuration, convert unsupported columns, or remove them from the table definition before upgrading.
Check configuration identifiers
Table names, database names, primary keys, filter names, and text-source names are now checked as SQL identifiers while MygramDB reads the configuration. This blocks invalid names before they reach generated SQL.
Test the exact file that the service will load:
mygramdb -t /etc/mygramdb/config.yamlReplace bare SAVE and LOAD
The legacy commands are rejected in v1.9. Replace them in scripts and runbooks:
# Before
SAVE mygramdb.dmp
LOAD mygramdb.dmp
# v1.9
DUMP SAVE mygramdb.dmp
DUMP LOAD mygramdb.dmpDUMP SAVE remains asynchronous. Check DUMP STATUS before treating a backup as complete.
Dumps and Restoration
v1.9 continues to write dump format v2, and both v1 and v2 dump files load in v1.9. Its embedded document-store payload is v3 and keeps pre-normalization text for accurate highlighting. Keep a compatible backup if you need to roll back to an older build.
DUMP LOAD now refuses a payload that would clear a non-empty replication position. Validate the dump and planned target before the maintenance window:
DUMP VERIFY mygramdb.dmp
DUMP INFO mygramdb.dmpDocker Deployments
Regenerate .env from the current environment template. The old SNAPSHOT_DIR, SNAPSHOT_INTERVAL_SEC, and SNAPSHOT_RETAIN variables are no longer part of the Docker surface. Use DUMP_DIR, DUMP_INTERVAL_SEC, and DUMP_RETAIN instead.
The current template also exposes BM25, cache, rate-limit, and TLS settings. A bind-mounted configuration file is preserved by the entrypoint rather than overwritten.
Behavior Changes to Check
| Area | Change |
|---|---|
CONFIG VERIFY relative.yaml | A relative path resolves against the active configuration file, not the service working directory. Use absolute paths in automation when that distinction matters. |
SHOW VARIABLES LIKE | Accepts exactly one pattern. Existing calls such as SHOW VARIABLES LIKE 'cache%' keep working. |
HTTP search and facet q | Treated as literal text by default. Send deliberate expressions with "mode": "boolean". |
| Boolean search terms | Punctuation such as c++, e-mail, and version strings stays inside one term. Test any query normalization in your application that depends on the old parser. |
New Configuration Surface
v1.9 makes TCP idle reaping and pending-frame limits configurable. The defaults suit most deployments, so set these only when you need to tune connection behavior:
api:
tcp:
idle_timeout_sec: 300 # 0 disables idle reaping
reaper_interval_sec: 5
max_pending_frames: 1024
max_pending_frame_bytes: 4194304mediumint and mediumint_unsigned are also available filter types. See the configuration reference for the complete schema.
Rollout Checklist
- Validate the production configuration with
mygramdb -t. - Check configured column types and collations.
- Replace bare
SAVEandLOADcalls withDUMP SAVEandDUMP LOAD. - Verify a current dump and retain a rollback-compatible copy.
- Regenerate Docker environment files if you deploy with Compose.
- Run a search and replication smoke test after the new node becomes ready.
For the complete change list, read the v1.9.0 release notes.