Repository navigation
v5.2.0 #337
milliondreams
announced in
Announcements
v5.2.0
#337
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
uni-db 5.2.0
Changes since 5.1.0 (released 2026-11-11).
5.2.0 makes Locy programs pay only for what they use. The entity-resolution
program of 5.1.0, at 1,000 mentions × 1,000 entities, runs in 1.2 s where it
took 7.2 s (release build): similarity is scored from the stored vectors
directly, proof recording and fact hydration happen only where something
reads them, a
NOT EXISTStied to the outer row by itsWHEREis plannedas an anti-join, and a
DERIVEwrites its facts in one statement. A newLocyConfig::returned_ruleschooses which rules' facts a result carries,and the Locy profile now shows the work done outside rule evaluation.
Behaviour and API changes are listed first.
LocyConfigandLocyExecProfilehave new public fields (Rust sourcechange).
LocyConfig::returned_rules, andLocyExecProfile::phases/commands. A struct literal that names every field no longer compiles;add
..Default::default(), as the documented examples do. Python isunaffected.
Full-text indexes built by an earlier release should be rebuilt. Lance
14 revised its built-in stop-word lists, which every full-text index but an
n-gram one uses by default. English no longer drops its 49 negations and
contractions (
no,not,nor,don't, …): they are indexed andsearchable. An index built before holds no postings for them, so rows
indexed earlier are still not found by those words while rows added since
are. Nothing errors. With
index_rebuild.auto_rebuild_enabledsuch indexesare rebuilt when the database opens; otherwise (the default) a warning names
them at open, and
db.indexes().rebuild(label)rebuilds them. Indexes withcustom_stop_words, with stop-word removal off, or on the n-gram tokenizerare unaffected. Fork-local full-text indexes are not tracked; rebuild them
with
build_fork_local_index.IndexMetadatahas a new public field (Rust source change).analysis_revisionrecords which revision of full-text analysis an indexwas built under. A struct literal naming every field needs
..Default::default().A
WHEREevaluates its subqueries last.EXISTS { },COUNT { }andCOLLECT { }conjuncts now run only for the rows the other conjuncts keep.Answers are unchanged. A subquery that raised an error for a row the rest of
the
WHERErejects no longer runs for that row, so no longer raises.A Locy program with an
MNORorMPRODfold no longer always recordsprovenance. It is recorded when something can use it: an
EXPLAIN RULEinthe program,
top_k_proofs, exact inference or theTopKProofssemiring,or a fold whose proofs can share an event or read a probabilistic fact.
Facts, probabilities and warnings are unchanged. Such a program now reuses
strata across
ASSUME/ABDUCEand after a write, as a program without afold does, so
hypothetical_strata_reusedandsequenced_strata_reusedcanbe non-zero where they were always zero.
New features
LocyConfig::returned_rules: choose which rules' facts a resultcarries.
All(the default) returns every rule's facts,Nothingnone,Only(names)the named rules. Each returned fact is turned into a row andits node and edge ids replaced by the full entities, so a program that
derives many facts and only writes a few is faster with fewer returned.
Commands are answered the same, and
stats.derived_nodesstill countsevery fact. Python:
returned_rules="all" | "none" | [names], as aLocyConfigkeyword or a config-dict key.profile.phasesgives the conversion and hydration of facts and eachre-evaluation after a write, with the rules and facts covered;
profile.commandsgives each command's time, the facts aDERIVEwroteand the strata evaluated and reused before it. Per rule, the operator list
gains
LocyProvenanceandLocyLineagewhen the program records them.Python:
LocyProfileOutput.phases/.commands.Performance
Figures are the entity-resolution program of
website/docs/features/nlp-extraction.md, 1,000 mentions × 1,000 entities,release build.
data within 5% of unflushed). With the default
returned_rulesadd 0.3 s.similar_toandvector_similarityover two vector properties no longerconvert each pair to values first. A 1,000 × 1,000 similarity rule: 285 ms
to 50 ms at 8 dimensions, 1.96 s to 0.53 s at 384. Results are bit-identical.
side.
MATCH (a), (b) WHERE NOT (a)-[:R]->() AND a.t = b.tevaluated thepattern once per joined pair; it now filters
abefore the join.[NOT] EXISTS { MATCH (o:L) WHERE … }tied to the outer row by itsWHEREalone is a semi- or anti-join. The subquery ran once per outerrow, scanning the label each time. Applies to a body of plain nodes binding
new variables; other shapes keep the per-row path. The resolution program's
new-entity
MERGE: 1.78 s to 0.05 s.evaluation 1.68 s to 0.59 s; the commands read 500 of 210,757 facts and
only those are hydrated for them.
DERIVE's facts between existing nodes are written by one statementin a transaction (
tx.locy), not one each.The number of pairs a similarity rule reads is unchanged; reaching the
vector index from a rule is tracked as #335.
Correctness fixes
is on S3, GCS or Azure failed with "open lance dataset at s3://…" as soon
as a table that had not been created yet was a candidate, typically an
edge type's adjacency table before its first compaction: on an object
store every candidate was taken to exist.
Index datasets, fork branches and snapshots were opened without them and
worked only when the same values were also in the environment
(
AWS_ENDPOINT_URL,AWS_ACCESS_KEY_ID, …). With the credentials incloud_configalone, a flush failed with "Bucket not found".seconds on a single-threaded runtime (
#[tokio::test], acurrent_threadruntime). The drop wrote the fork's last WAL record byblocking the only thread that could drive the request.
toLower,toUpper,trim,lTrimandrTrimof a NULL literal failed with "Unsupporteddata type NULL for function lower". The literal could come from the query
text, a NULL parameter, or an outer row's NULL value inside a subquery.
Dependencies and build requirements
lance,lance-index,lance-linalg). Arrow,Parquet and DataFusion are unchanged (58.4.1, 54.1.0): Lance 14 still
requires them. New datasets are still written in file format 2.1 and
existing ones keep their format. A database written by 5.1.0 opens and
writes under 5.2.0, and one written by 5.2.0 was read back by 5.1.0 in
testing (primary, forks, indexes, a pinned snapshot). Upstream fixes
gained include rows dropped when a negated predicate met an inexact
scalar index result, and ordered scans over 8,192 rows returned out of
order.
kniv v7 sentence ("Sen. Robert F. Kennedy spoke today." was three
sentences and two entities), and the kniv generation is detected from the
model's metadata contents.
serde, regex 1.13, pest 2.9, uuid 1.29, clap, rhai 1.27, and others), and
of the Python and documentation tooling.
This discussion was created from the release v5.2.0.
All reactions