Repository navigation
MyDB 1.0.6 — Public Preview
Downloads
| Platform or file | GitHub | 中国下载加速 |
|---|---|---|
| macOS Apple Silicon | Download | 下载 |
| Linux x86_64 (glibc 2.17+) | Download | 下载 |
| Windows x64 | Download | 下载 |
| Build information | Download | 下载 |
| SHA-256 checksums | SHA256SUMS | SHA256SUMS |
Verify the archive against SHA256SUMS before extracting it.
Overview
MyDB 1.0.6 brings property graph results into SQL with GRAPH_TABLE, improves
IVF and HNSW retrieval, reduces MySQL TLS and transactional read overhead, and
fixes correctness issues across SQL, transactions, recovery, and replication.
The release remains a public preview for feature validation, compatibility
testing, and evaluation in controlled environments. The MySQL compatibility
baseline remains 8.0.46.
See the source changes since 1.0.5
and the 1.0.5 release notes.
Upgrading from 1.0.5 requires logical migration to a fresh data directory.
Physical and semantic format checks have changed even though the catalog, WAL,
and B-tree version numbers remain unchanged. See
Moving from 1.0.5 to 1.0.6.
Graph results in SQL and hybrid search
GRAPH_TABLEexposes read-only GQL results in SQLFROMandJOINclauses.
UseCOLUMNS (...)or a supported GQLRETURNprojection, then join,
aggregate, or filter the results with ordinary SQL. Scalar casts expose typed
columns; dynamic properties and graph values use JSON.- Graph sources share the enclosing statement's transaction view, query memory
allowance, and deadline. Prepared parameters bind in textual order across
SQL and GQL. An explicit graph name does not change the session graph. - Graph sources work with CTEs, derived tables, views, and RRF branches.
EXPLAIN FORMAT=TREEandJSONshow graph scans;EXPLAIN ANALYZEexecutes
them. Graph writes and references to outer SQL columns inside the graph
program remain unsupported. Existing graph traversal limits still apply. - RRF can combine live graph traversal, BM25, vector retrieval, and scalar
retrieval in one statement. The new example applies eligibility filters and
deduplicates graph identities before the branch limit, then fetches document
bodies after the fused candidate window. - RRF branches with
LIMIT 0bind and check privileges without reading candidate
rows or materializing CTE and derived inputs. Eligible enclosing projections
avoid collecting unusedrrf_detailsvalues; plans report this separately as
score_details_materialized.
SELECT g.passage_key, MIN(g.hops) AS hops
FROM GRAPH_TABLE (
knowledge
MATCH p = TRAIL (a IS Entity WHERE a.key = 'p1')
-[IS CITES]->{1,3}(b IS Passage)
COLUMNS (CAST(b.key AS STRING) AS passage_key, PATH_LENGTH(p) AS hops)
) AS g
GROUP BY g.passage_key
ORDER BY hops, g.passage_key
LIMIT 20;See graph tables,
hybrid search, and the
four-branch SQL example.
Vector retrieval and index construction
- IVF uses progressive projection and quantization bounds to avoid unnecessary
distance evaluations on eligible inputs. Candidate windows refine their
cutoff during scanning, and supported scans skip candidates whose bounds
cannot improve the result. These bounds preserve the corresponding scan's scoring
semantics; probing only part of an IVF index remains approximate retrieval. - Private IVF builds cluster posting pages by inverted list. Batched posting
reads, contiguous-slot access, prefetch reuse, and fused heap scoring with
bounded output projections reduce copying and repeated reads during reranking.
Validation of clean bulk-built vector pages no longer dirties them. - HNSW and IVF read paths reduce quantized-code decoding and lookup overhead,
including batched scoring and architecture-specific kernels. Eligible IVF
centroid assignment can use runtime-detected SME on supported macOS Arm64
hosts, with fallback paths for other hosts and numeric domains. - The session variable
mydb_vector_query_cachedefaults toON. Set it to
OFFto bypass reading and populating repeated-query candidate caches for
IVF and HNSW, including when measuring uncached searches. - Correctness fixes cover NULL query vectors, zero and high-precision numeric
inputs, transaction-local updates during candidate widening, and typed binary
payloads. A binary parameter matching a fixed VECTOR column's payload length
is interpreted as native payload even when its first byte is0x5B([).
Distance functions use the other operand's native type and dimension when
decoding raw bytes; Hamming and Jaccard provide a BINARY context.
ANN recall still depends on data, quantization, filters, and search effort.
Compare against exact queries with the same eligibility predicates. These notes
do not assign a release-wide speedup or recall figure to these optimizations.
See vector indexes and vector search.
SQL execution and correctness
- Eligible bitmap execution of bounded recursive CTEs continues an admitted
frontier with bounded backtracking when the next frontier cannot fit its
allowance, reducing repeated work while preserving cancellation and recursion
depth checks. - Decorrelation, shared CTEs, UNION aggregates, and set operations preserve
wildcard schemas, positional outputs, derived column aliases, grouping keys,
alias shadowing, and lateral correlation. Runtime join filters no longer
invent NULL-extended rows in outer joins. Index-join temporal and DECIMAL probes
retain the comparison semantics of the general join path. - Row and vectorized execution agree on covering-index values, regular
expressions, JSON reads, binary collation ordering, ROLLUP, ENUM/SET ordinals,
and window aggregates. Variable-width window results enforce memory budgets
and release their charges on failure; moving variance excludes rounding effects
from values outside the current frame. - Sequence defaults accept bare and parenthesized
nextvalcalls and consume a
value once for each row needing that default. Explicit values do not evaluate
unused defaults. Prepared execution, conflict handling, and view CHECK OPTION
retain the generated value. Sequence allocation remains nontransactional. - INSERT IGNORE with ON DUPLICATE KEY UPDATE continues after an ignorable
secondary-key conflict. Generated columns, view checks, multi-table updates,
self-references, and foreign-key probes preserve the required row images. - Additional fixes cover regular-expression positions and zero-width matches,
malformed UTF-8 JSON paths, JSON merge-patch null resets and search-path
escaping, exact temporal intervals, year-zero calendar functions, spatial
boundaries, numeric network-function arguments, and JSON_VALUE output domains.
Invalid inputs return errors rather than panicking or silently truncating. - Multi-valued JSON indexes reject JSON null, nested containers, and strings
exceeding the CAST target length before publication. SQL NULL remains
unindexed. JSON integers retain exact precision through 65 digits; wider
integers use finite DOUBLE values, and non-finite overflow is rejected.
See optimizer and execution,
sequences, and MySQL compatibility.
Collations, privileges, and configuration
- Legacy Unicode comparisons use embedded UCA 4.0 primary weights, and
latin1_swedish_ciuses the corresponding Swedish primary ordering.
Persistent comparison keys advance to version 4. - Unsupported UCA 5.2, unimplemented locale-tailored legacy UCA variants,
gbk_chinese_ci,gb18030_chinese_ci, andlatin1_general_csreturn error
1235 instead of approximate comparisons. This also applies when a conversion
or introducer selects an unsupported default collation. Explicitly supported
binary collations remain available. - RLS requires whole-table authorization for DROP and RENAME as well as
TRUNCATE. CHECKSUM TABLE observes SELECT policies. FOR SHARE applies SELECT
policies; FOR UPDATE also applies UPDATE policies. - IPv4 CIDR account-host matching, expired-password command restrictions,
keyring function authorization and metadata, and credential redaction receive
fixes. AI projections reject mixed HTTP calls before external work. - Configuration validation covers environment overlays and preserves normalized
values. Configuration-file assignments retain their source path in
performance_schema.variables_info. Writable startup hardens server-owned
metadata directories and verifies that permission changes take effect;
unsafe credential files and wrong ownership still fail explicitly.
See collation boundaries,
row-level security, configuration,
and the new WSL deployment guide.
Transactions, DDL, and recovery
- Transactions that access temporary tables before persistent tables retain
their persistent snapshot, WAL, rollback, and savepoint behavior. Dropping a
temporary table no longer discards permanent-table rollback state. - Ordered locking reads and limited DML recheck current rows after lock waits.
Changed ordering can trigger a retry, and SKIP LOCKED releases only newly
acquired locks for rows that are not returned. - Active XA branches reject temporary-table creation, deletion, reads, and
writes with error 4091 before mutation. Resolving a detached prepared branch
while a local transaction is active returns error 1399. - Prepared XA branches imported by physical recovery or native promotion can
be resolved on an independent writable instance with local MySQL binlog
disabled. Retained binlog intent is still validated; restarting the original
source with binlog disabled does not remove its logging obligation. - Foreign-key dependencies rebind after index DDL and supported Memory COPY
changes. Encoding-compatible column renames can accompany metadata actions
while preserving inbound and outbound references, atomic rollback, and recovery. - Historical and sampled views, including nested views, reject locking reads,
UPDATE, and DELETE. Recycle-bin restore under a different table name regenerates
CHECK names; restore and purge require UNLOCK TABLES first. - Standalone
sys.sys_configchanges are recorded in WAL and included in native
replication and physical/PITR recovery. Changes inside explicit transactions
or XA remain unsupported. Format admission now explicitly covers semantic
views and the physical index baselines needed to replay WAL.
See MVCC and locking, XA,
online column changes,
backup and recovery, and recycle bin.
MySQL protocol and replication
- Buffered command reads and TLS transport reduce per-command I/O overhead.
Binary result staging, heap reads, buffer access, and transaction bookkeeping
reduce work on eligible short transactional requests while retaining packet,
memory, and MVCC checks. - Binary prepared parameters retain text, byte, and temporal domains, including
long data. Fixes also cover YEAR result widths, invalid binary temporal
components, UTF-8 column labels, result character sets, and packet sequence
advancement for large cached and uncached metadata. - Server-side cursor workers retain connection cancellation without inheriting
later commands or an expired EXECUTE deadline. Each FETCH uses fresh
cancellation state and the session deadline. Idle expiry releases capacity
and streaming snapshots even when the connection sends no further commands;
an active FETCH retains its slot until its resources are released. - Prepared-statement performance counters use runtime execution measurements.
Sent-row counts follow cursor consumption. Reserved MySQL-specific summary
fields remain zero; see performance schema. - MySQL receiver fixes cover channel defaults and option validation, DDL table
filters, GTID reset state, UNTIL boundaries, and durable relay rotations.
Synthetic reconnect rotations cannot rewind a configured or durable source
position. - PURGE BINARY LOGS BEFORE removes only a contiguous oldest prefix even when
file modification times are out of order. Binlog dump readers reject interior
filename gaps with error 1236.
MySQL replication still requires ROW/FULL. Native replication still requires
compatible formats and external fencing for promotion. See
MySQL replication,
native replication, and
protocol compatibility.
Moving from 1.0.5 to 1.0.6
| Format | 1.0.5 | 1.0.6 |
|---|---|---|
| Storage control | 1 | 2 |
| Semantic view | 2 | 3 |
| Collation key semantics | 3 | 4 |
| Catalog / WAL | 75 / 43 | 75 / 43 |
| B-tree index file / page | 26 / 18 | 26 / 18 |
| Native replication protocol | 4 | 4 |
| Native backup image | 5 | 6 |
| Backup repository | MYDB_BACKUP_REPOSITORY/2 | MYDB_BACKUP_REPOSITORY/3 |
Use a fresh data directory. The directory admission fingerprint changes;
unchanged catalog and WAL numbers do not make older directories compatible.
Physical restore and native reseeding do not convert incompatible formats.
Do not edit version markers to bypass admission checks.
- Preserve the 1.0.5 binary, original data directory, configuration, external
keys, and a verified backup readable with that binary. - Transfer reviewed logical schema and typed data to a fresh destination.
Review collation names and comparison behavior before recreating indexes and
constraints. Recreate users, grants, routines, events, policies, and graphs as
needed. Offline graph import must initialize its fresh destination before
loading other logical data. - Validate row counts, representative SQL/GQL queries, index behavior,
transactions, and privileges before switching writes. Create a new backup
repository and validate recovery with the destination binary. - Recreate native replicas with matching formats and protocol. Keep the old
instance preserved for rollback; writes accepted by the new instance are
absent from that copy.
The default isolation level remains READ COMMITTED. REPEATABLE READ uses snapshot
isolation without InnoDB gap or next-key locks. Graph writes still require
session MySQL binary logging to be off.
See changing versions and the
storage format registry.
Packages and feedback
Use GitHub Releases for published
packages and checksums. Release archives include mydb, mydb-cli,
mydb-backup, the Apache-2.0 license, third-party notices, and corresponding MPL
source archives. Verify archives against their matching SHA256SUMS.