Repository navigation
FalkorDB v6.2.0
Highlights
FalkorDB 6.2.0 runs on Valkey, and Valkey is now the default server in our Docker images. FalkorDB is now also available under AGPLv3, alongside SSPLv1.
- Valkey support. Images ship Valkey 9.2.0 by default. Redis 8.10.2 images remain available under
-redistags. - Dual license. Use FalkorDB under SSPLv1 or AGPLv3, at your choice.
- Faster.
SAVEis 11x faster on large graphs, and several planner fixes turn queries that timed out into millisecond queries. - 37 bug fixes since 6.0.4, covering data integrity, replication, wrong query results and crashes.
If you run a Redis-based FalkorDB image today, read Upgrade notes before pulling latest.
What's Changed
Valkey support
FalkorDB 6.2.0 runs on Valkey as well as Redis, and our Docker images now run Valkey by default. The images ship Valkey 9.2.0 or Redis 8.10.2. Every tag is multi-arch (amd64 and arm64) and is published for falkordb/falkordb and falkordb/falkordb-server on Docker Hub and GHCR.
| Tag | Server | Base OS |
|---|---|---|
6.2.0, latest, edge |
Valkey 9.2.0 | Ubuntu 26.04 LTS |
6.2.0-valkey, latest-valkey |
Valkey 9.2.0 | Ubuntu 26.04 LTS |
6.2.0-redis, latest-redis |
Redis 8.10.2 | Debian trixie-slim |
6.2.0-alpine-valkey (falkordb-server only) |
Valkey 9.2.0 | Alpine 3.24 (musl), new |
6.2.0-amazonlinux2023-valkey (falkordb-server only) |
Valkey 9.2.0 | Amazon Linux 2023 |
6.2.0-rhel9-redis, 6.2.0-amazonlinux2023-redis (falkordb-server only) |
Redis 8.10.2 | RHEL 9, Amazon Linux 2023 |
- The module now uses the
valkey-modulebinding and loads on both servers (#3601, #3494). - Valkey images include
redis-cliand the otherredis-*tools, so existing scripts keep working (#3495). - Every pull request is tested on Valkey, and every merge is tested on both Valkey and Redis (#3728).
- The macOS (arm64) module is now a release asset (#3901).
Upgrading from a Redis-based image. latest and bare version tags now run Valkey. Valkey cannot read save files written by Redis 7.4 or later, including the Redis 8 that earlier FalkorDB 6.0 images ran. A Valkey image checks the data volume before it starts. If Redis wrote the volume, the container stops, leaves the volume unchanged and prints the migration steps (#3726). You have two options:
- Keep running Redis: switch to the
-redistags (6.2.0-redis,latest-redis). - Migrate the data to Valkey with the steps in Moving a data volume from Redis to Valkey. In short: back up the volume, delete the
telemetry{…}streams and save on Redis, start the Valkey image once withFALKORDB_REDIS_MIGRATION=1, save again, then restart without the variable. Query statistics start again from empty.
License: SSPLv1 or AGPLv3, your choice
Starting with 6.2.0, FalkorDB is dual-licensed: you can use it under the Server Side Public License v1 (SSPLv1) or the GNU Affero General Public License v3 (AGPLv3). Until now it was available under SSPLv1 only. (#3946)
- Both license texts (
LICENSE-SSPL,LICENSE-AGPL) now ship in every Docker image, in the Rust crates and in the release assets. - Releases before 6.2.0 keep their original SSPLv1 terms.
- Third-party components bundled with FalkorDB, such as GraphBLAS and RediSearch, keep their own licenses.
New features and improvements
New
GRAPH.QUERYandGRAPH.RO_QUERYacceptSCHEMA_HASH <h>with--compact. The reply ends with the graph's schema hash, and with the label, relationship-type and property names when<h>differs from it. Clients can use it to notice that a graph was dropped and recreated under the same key, which used to make them silently decode the wrong names (#3846).
Performance
- A
MATCHafterUNWINDorWITHfinds its start node per row instead of walking every edge. Deleting 382,000 edges this way went from 747 s to 0.37 s (#3594). - The planner starts from the node a query already pins, instead of scanning a whole label and walking back. This covers a variable-length hop from an anchored endpoint (#3593), a multi-hop
OPTIONAL MATCHor pattern predicate on a bound node (#3340), and a chain from an{id: $id}endpoint (#3821). Some of these queries used to hit the timeout. SAVEandBGSAVEare much faster on large graphs. A graph of 3.07M nodes and 117M edges saves in 8.2 s instead of 90.5 s, and the extra memory during the save drops from 4.5 GB to 1.8 GB (#3438).size(),head()andlast()on a list variable no longer walk the whole list on each call (#3862).- GraphBLAS is updated to 10.5.3 (#3469).
Responsiveness
- A write query, or a constraint being created, that waits for a long-running read no longer freezes the whole server. Other commands,
PINGincluded, are answered while it waits (#3816, #3819). - A write that keeps losing to a stream of concurrent writers now completes after a bounded number of retries, instead of retrying forever (#3578).
Bug fixes
These fixes are new since 6.0.4. Fixes that already shipped in 6.0.1–6.0.4 are not repeated here.
Data integrity and replication
- A
CALL {}that deletes entities and then creates new ones no longer corrupts the graph. The new entities used to reuse the deleted ids within the same query (#3641). - A write queued before
RENAME,FLUSHALLorFLUSHDBis applied to the key that holds the graph when it commits, or refused if none does. It used to be able to leave a replica different from its primary (#3855).GRAPH.BULKgets the same fix (#3863). - A constraint that is still being validated now checks concurrent writes too, so it can no longer become
OPERATIONALover data that violates it (#3854). CREATE INDEXright after dropping a label's last index no longer reports success and then loses the new index (#3856).GRAPH.DELETEof a graph with indexes no longer corrupts shared RediSearch state. This could crash the server, most often while loading an AOF at startup (#3511).CREATE (a)-[:NEW_TYPE]->(b) DETACH DELETE ano longer crashes--compactreplies or leaves a gap in replica ids (#3461).- Removing a label that was only added earlier in the same query no longer sends a label removal to replicas (#3459).
- A
GRAPH.EFFECTrecord with a huge id range no longer allocates memory for ids it does not use (#3583).
Wrong query results
- Consecutive
MATCHorCREATEclauses are no longer merged into one pattern. For example,MATCH (a)-[r1:R]->(b) MATCH (a)-[r2:R]->(b)now returns rows. This closes seven reported issues (#2981). - Labels written in a
CREATEor a pattern comprehension no longer narrow an earlierMATCHon the same variable (#3049). - A
WHEREon an earlierMATCH, or anUNWIND, is no longer dropped under a later variable-length pattern (#3264). - A
WHEREafterWITHno longer drops every row when a variable id is reused (#3521). - An inline property filter after
UNWINDno longer runs before its node is bound (#3523). - A
WHEREafter a writingCALL {}no longer changes how many entities theCALLcreates (#3582). - A hash join inside
OPTIONAL MATCH,MERGEorCALL {}no longer joins rows that belong to different outer rows (#3035). abs(n.a) IN [...],n.a + 1 IN [...]and similar no longer use a range index as if they weren.a IN [...](#3068).- An
ORDER BYaggregate that differs from a projected one only in its constants, such asmax(n.v % 4.0)againstmax(n.v % 3), is now rejected instead of sorting by the projected value (#3254). - A guard in an earlier
WHEREruns before a later filter again, soWHERE n.v <> 1 ... WHERE 1 / (n.v - 1) = 0no longer fails with division by zero (#3006). - A variable named like
_anon_0no longer collides with an unnamed node or relationship in the pattern (#3303). - A variable-length relationship inside a
CALL {}body no longer leaks into the outer query (#3891). - An id lookup on a graph that never held a node returns nothing (#2979).
Cypher syntax
OPTIONAL MATCHwith a filter insideCALL {}no longer fails withVariable n not found(#3281).- A list or map subscript is accepted as a
WHEREpredicate (#3270). - A chained unary minus such as
RETURN - -5parses (#3525).
Functions, procedures and indexes
db.idx.vector.queryNodesandqueryRelationshipsare refused while the index is being built, instead of answering from a partial index (#3581).- An unknown vector
similarityFunctionis refused at any dimension (#3257). - The fulltext query procedures return no rows for a non-string label or query (#3269), and a refused fulltext
CREATE INDEXno longer leaks memory (#3274). algo.WCC,algo.pageRankandalgo.betweennessreturn a result for a one-node graph or projection (#3572).duration()of a string with a number but no unit is an error (#3574).- UDFs: results can no longer forge node or relationship references,
getNeighbors()works with no argument (#2976), and a self-loop is reported once (#3084).
Crashes and hangs
- An unterminated
shortestPathedge filter no longer hangs the parser (#3019). - A very long
SET/REMOVEproperty chain or deeply nestedFOREACHis rejected instead of crashing the server (#2900). - A map projection in the properties of a named
CREATEentity no longer crashes (#3841). SHUTDOWNafter a UDF ran insideMULTIno longer aborts the server (#3015).
Known issues
These are open in 6.2.0. Fixes for most are in review.
| Issue | What happens | Workaround |
|---|---|---|
| #3375 | With two or more grouping keys, an aggregate can return another aggregate's value, e.g. RETURN n.country, n.city, count(n), sum(n.age) gives the count as the sum. avg() in the same shape crashes the server. |
Project the keys and values with WITH first: WITH n.country AS country, n.city AS city, n.age AS age RETURN country, city, count(*), avg(age). |
| #3887, #3930 | New in 6.2. A second MATCH after UNWIND scans its whole label instead of using an index, which slows small ingest batches as the label grows. A correlated join in a later MATCH, OPTIONAL MATCH or CALL {} can also be slower than in 6.0.4. |
For the UNWIND case, write both patterns in one MATCH, separated by a comma. |
| #3282 | CREATE p=(...) as the last clause after another clause fails with Variable not found and creates nothing. |
End the query with a RETURN, e.g. RETURN count(p). |
| #3376 | A range index on a relationship property can make traversals from bound nodes much slower (5 ms to 5.4 s in the report). | Drop the relationship index if those traversals matter more than the indexed lookups. |
| #2782 | Using the same graph name in two logical databases (or MOVE/SWAPDB onto one) leaves the first graph rejecting every write. |
Keep graph names unique across databases. |
| #3309 | Diskless replica loading (repl-diskless-load) is not supported. Replicas save the primary's RDB to disk before loading it. |
None needed: replication works, through disk. |
| #3546 | A full-text index's language option is not applied to stemming; documents are stemmed as English. |
None yet. |
| #2540 | CALL db.idx.fulltext.createNodeIndex(...) fails. |
Use CREATE FULLTEXT INDEX FOR (n:Label) ON (n.prop). |
| #2603 | =~ matches a substring instead of the whole string. |
Anchor the pattern: '^...$'. |
Upgrade notes
- Docker tags.
latestand bare version tags now run Valkey. To stay on Redis, switch to the-redistags before you upgrade. To move a Redis volume to Valkey, follow the steps in Valkey support. - From 4.22 (C engine) to 6.2 on Valkey: go through 4.22.4. 4.22.4 no longer saves the
telemetry{<graph>}streams to RDB or AOF files, and those streams are what Valkey cannot read. Earlier 4.22 releases still save them.- Upgrade to 4.22.4 (image tag
v4.22.4, Redis 8.10.2) on the same volume. - Drop any CCH indexes with
DROP CCH INDEX, since 6.2 refuses to load a graph that has one. Then runSAVE, andBGREWRITEAOFif AOF is on. - Start a 6.2 Valkey image once with
FALKORDB_REDIS_MIGRATION=1, check your graphs and runSAVE. Then restart without the variable, as in steps 3 and 4 of the migration guide.
- Upgrade to 4.22.4 (image tag
- RDB format. 6.2.0 saves graphs with RDB encoding version 20 (6.0.x saved 19), and loads 19 and 20. It loads a version 20 file from the C engine unless that file holds a CCH index, and refuses newer versions (#3793).
- Query statistics. The
telemetry{<graph>}streams are now per node. Each replica records the queries it serves, the streams are no longer saved in RDB or AOF files, and they start empty after a restart (#3844). - Behavior changes that can change query output:
toString()of a float prints the shortest exact form with a decimal point:toString(1.0)is'1.0'(was'1'), andtoString(1e20)is'1.0E20'(#3609).duration('5'), a number with no unit, is now an error (#3574).- Vector query procedures return an error while their index is still being built (#3581).
- Consecutive
MATCHclauses are planned as separate clauses, so queries that relied on them being merged into one pattern can return different rows (#2981).