Changelog
v1.3.0​
warning
Breaking Changes​
- Added extra information in durability files to support replication, making it incompatible with the durability files generated by older versions of Memgraph. Even though the replication is an Enterprise feature, the files are compatible with the Community version.
Major Features and Improvements​
- Added support for data replication across a cluster of Memgraph instances. Supported instance types are MAIN and REPLICA. Supported replication modes are SYNC (all SYNC REPLICAS have to receive data before the MAIN can commit the transaction), ASYNC (MAIN doesn't care if data is replicated), SYNC WITH TIMEOUT (MAIN will wait for REPLICAS within the given timeout period, after timout, replication isn't aborted but the replication demotes the REPLICA to the ASYNC mode).
- Added support for query type deduction. Possible query types are
r(read),w(write),rw(read-write). The query type is returned as a part of the summary. - Improved logging capabilities by introducing granular logging levels. Added
new flag,
--log-level, which specifies the minimum log level that will be printed. E.g., it's possible to print incoming queries or Bolt server states. - Added ability to lock the storage data directory by executing the
LOCK DATA DIRECTORY;query which delays the deletion of the files contained in the data directory. The data directory can be unlocked again by executing theUNLOCK DATA DIRECTORY;query.
Bug Fixes and Other Changes​
- Added cleanup of query executions if not in an explicit transaction.
- Fix RPC dangling reference.
v1.2.0​
warning
Breaking Changes​
- SSL is disabled by default (
--bolt-cert-fileand--bolt-key-fileare empty). This change might only affect the client connection configuration.
Major Features and Improvements​
- Added support for Bolt v4.0 and v4.1.
- Added
mgp_networkx.pyas an alternative implementation of NetworkX graph objects, which is useful to use Memgraph data from NetworkX algorithms optimally. - Added
nxalg.pyquery module as a proxy to NetworkX algorithms. - Added plan optimization to use a label-property index where the property is not null. As a result, the query engine, instead of scanning all elements and applying the filter, performs a label-property index lookup when possible.
Bug Fixes and Other Changes​
- Fixed Cypher
IDfunctionNullhandling. When theIDfunction receivesNull, it will also returnNull. - Fixed bug that caused random crashes in SSL communication on platforms that use older versions of OpenSSL (< 1.1) by adding proper multi-threading handling.
- Fix
DISCARDmessage handling. The query is now executed before discarding the results.
v1.1.0​
Major Features and Improvements​
- Properties in nodes and edges are now stored encoded and compressed. This change significantly reduces memory usage. Depending on the specific dataset, total memory usage can be reduced up to 50%.
- Added support for rescanning query modules. Previously, the query modules
directory was scanned only upon startup. Now it is scanned each time the user
requests to load a query module. The functions used to load the query modules
were renamed to
mg.load()andmg.load_all()(frommg.reload()andmg.reload_all()). - Improved execution performance of queries that have an IN list filter by
using label+property indices.
Example:
MATCH (n:Label) WHERE n.property IN [] ... - Added support for
ANYandNONEopenCypher functions. Previously, onlyALLandSINGLEfunctions were implemented.
Bug Fixes and Other Changes​
- Fixed invalid paths returned by variable expansion when the starting node and
destination node used the same symbol.
Example:
MATCH path = (n:Person {name: "John"})-[:KNOWS*]->(n) RETURN path - Improved semantics of
ALLandSINGLEfunctions to be consistent with openCypher when handling lists withNulls. SHOW CONSTRAINT INFOnow returns property names as a list for unique constraints.- Escaped label/property/edgetype names in
DUMP DATABASEto support names with spaces in them. - Fixed handling of
DUMP DATABASEqueries in multi-command transactions (BEGIN, ...,COMMIT). - Fixed handling of various query types in explicit transactions. For example,
constraints were allowed to be created in multi-command transactions
(
BEGIN, ...,COMMIT) but that isn't a transactional operation and as such can't be allowed in multi-command transactions. - Fixed integer overflow bugs in
COUNT,LIMITandSKIP. - Fixed integer overflow bugs in weighted shortest path expansions.
- Fixed various other integer overflow bugs in query execution.
- Added Marvel Comic Universe tutorial.
- Added FootballTransfers tutorial.
v1.0.0​
Major Features and Improvements​
- [Enterprise Ed.] Exposed authentication username/rolename regex as a flag
(
--auth-user-or-role-name-regex). - [Enterprise Ed.] Improved auth module error handling and added support for relative paths.
- Added support for Python query modules. This release of Memgraph supports query modules written using the already existing C API and the new Python API.
- Added support for unique constraints. The unique constraint is created with a label and one or more properties.
- Implemented support for importing CSV files (
mg_import_csv). The importer is compatible with the Neo4j batch CSV importer. - Snapshot and write-ahead log format changed (backward compatible with v0.50).
- Vertices looked up by their openCypher ID (
MATCH (n) WHERE ID(n) = ...) will now find the node in O(logn) instead of O(n). - Improved planning of BFS expansion, a faster, specific approach is now favored instead of a ScanAll+Filter operation.
- Added syntax for limiting memory of
CALL. - Exposed server name that should be used for Bolt handshake as flag
(
--bolt-server-name-for-init). - Added several more functions to the query module C API.
- Implemented a storage locking mechanism that prevents the user from concurrently starting two Memgraph instances with the same data directory.
Bug Fixes and Other Changes​
- [Enterprise Ed.] Fixed a bug that crashed the database when granting privileges to a user.
- [Enterprise Ed.] Improved Louvain algorithm for community detection.
- Type of variable expansion is now printed in
EXPLAIN(e.g. ExpandVariable, STShortestPath, BFSExpand, WeightedShortestPath). - Correctly display
CALLinEXPLAINoutput. - Correctly delimit arguments when printing the signature of a query module.
- Fixed a planning issue when
CALLpreceded filtering. - Fixed spelling mistakes in the storage durability module.
- Fixed storage GC indices/constraints subtle race condition.
- Reduced memory allocations in storage API and indices.
- Memgraph version is now outputted to
stdoutwhen Memgraph is started. - Improved RPM packaging.
- Reduced number of errors reported in production log when loading query modules.
- Removed
early accesswording from the Community Offering license.
v0.50.0​
warning
Breaking Changes​
- [Enterprise Ed.] Remove support for Kafka streams.
- Snapshot and write-ahead log format changed (not backward compatible).
- Removed support for unique constraints.
- Label indices aren't created automatically, create them explicitly instead.
- Renamed several database flags. Please see the configuration file for a list of current flags.
Major Features and Improvements​
- [Enterprise Ed.] Add support for auth module.
- [Enterprise Ed.] LDAP support migrated to auth module.
- Implemented new graph storage engine.
- Add support for disabling properties on edges.
- Add support for existence constraints.
- Add support for custom openCypher procedures using a C API.
- Support loading query modules implementing read-only procedures.
- Add
CALL <procedure> YIELD <result>syntax for invoking loaded procedures. - Add
CREATE INDEX ON :Labelfor creating label indices. - Add
DROP INDEX ON :Labelfor dropping label indices. - Add
DUMP DATABASEclause to openCypher. - Add functions for treating character strings as byte strings.
Bug Fixes and Other Changes​
- Fix several memory management bugs.
- Reduce memory usage in query execution.
- Fix bug that crashes the database when
EXPLAINis used.
v0.15.0​
warning
Breaking Changes​
- Snapshot and write-ahead log format changed (not backward compatible).
indexInfo()function replaced withSHOW INDEX INFOsyntax.- Removed support for unique index. Use unique constraints instead.
CREATE UNIQUE INDEX ON :label (property)replaced withCREATE CONSTRAINT ON (n:label) ASSERT n.property IS UNIQUE.- Changed semantics for
COUNTERopenCypher function.
Major Features and Improvements​
- [Enterprise Ed.] Add new privilege,
STATSfor accessing storage info. - [Enterprise Ed.] LDAP authentication and authorization support.
- [Enterprise Ed.] Add audit logging feature.
- Add multiple properties unique constraint which replace unique indices.
- Add
SHOW STORAGE INFOfeature. - Add
PROFILEclause to openCypher. - Add
CREATE CONSTRAINTclause to openCypher. - Add
DROP CONSTRAINTclause to openCypher. - Add
SHOW CONSTRAINT INFOfeature. - Add
uniformSamplefunction to openCypher. - Add regex matching to openCypher.
Bug Fixes and Other Changes​
- Fix bug in query comment parsing.
- Fix bug in query symbol table.
- Fix OpenSSL memory leaks.
- Make authentication case insensitive.
- Remove
COALESCEfunction. - Add movie tutorial.
- Add backpacking tutorial.
v0.14.1​
Bug Fixes and Other Changes​
- Fix bug in explicit transaction handling.
- Fix bug in edge filtering by edge type and destination.
v0.14.0​
warning
Breaking Changes​
- Write-ahead log format changed (not backward compatible).
Major Features and Improvements​
- [Enterprise Ed.] Reduce memory usage in distributed usage.
- Add
DROP INDEXfeature. - Improve SSL error messages.
Bug Fixes and Other Changes​
- [Enterprise Ed.] Fix issues with reading and writing in a distributed query.
- Correctly handle an edge case with unique constraint checks.
- Fix a minor issue with
mg_import_csv. - Fix an issue with
EXPLAIN.
v0.13.0​
warning
Breaking Changes​
- Write-ahead log format changed (not backward compatible).
- Snapshot format changed (not backward compatible).
Major Features and Improvements​
- [Enterprise Ed.] Authentication and authorization support.
- [Enterprise Ed.] Kafka integration.
- [Enterprise Ed.] Support dynamic worker addition in distributed.
- Reduce memory usage and improve overall performance.
- Add
CREATE UNIQUE INDEXclause to openCypher. - Add
EXPLAINclause to openCypher. - Add
inDegreeandoutDegreefunctions to openCypher. - Improve BFS performance when both endpoints are known.
- Add new
node-label,relationship-typeandquoteoptions tomg_import_csvtool. - Reduce memory usage of
mg_import_csv.
Bug Fixes and Other Changes​
- [Enterprise Ed.] Fix an edge case in distributed index creation.
- [Enterprise Ed.] Fix issues with Cartesian in distributed queries.
- Correctly handle large messages in Bolt protocol.
- Fix issues when handling explicitly started transactions in queries.
- Allow openCypher keywords to be used as variable names.
- Revise and make user visible error messages consistent.
- Improve aborting time consuming execution.
v0.12.0​
warning
Breaking Changes​
- Snapshot format changed (not backward compatible).
Major Features and Improvements​
- Improved Id Cypher function.
- Added string functions to openCypher (
lTrim,left,rTrim,replace,reverse,right,split,substring,toLower,toUpper,trim). - Added
timestampfunction to openCypher. - Added support for dynamic property access with
[]operator.
v0.11.0​
Major Features and Improvements​
- [Enterprise Ed.] Improve Cartesian support in distributed queries.
- [Enterprise Ed.] Improve distributed execution of BFS.
- [Enterprise Ed.] Dynamic graph partitioner added.
- Static nodes/edges id generators exposed through the Id Cypher function.
- Properties on disk added.
- Telemetry added.
- SSL support added.
toStringfunction added.
Bug Fixes and Other Changes​
- Document issues with Docker on OS X.
- Add BFS and Dijkstra's algorithm examples to documentation.
v0.10.0​
warning
Breaking Changes​
- Snapshot format changed (not backward compatible).
Major Features and Improvements​
- [Enterprise Ed.] Distributed storage and execution.
reduceandsinglefunctions added to openCypher.wShortestedge expansion added to openCypher.- Support packaging RPM on CentOS 7.
Bug Fixes and Other Changes​
- Report an error if updating a deleted element.
- Log an error if reading info on available memory fails.
- Fix a bug when
MATCHwould stop matching if a result was empty, but later results still contain data to be matched. The simplest case of this was the query:UNWIND [1,2,3] AS x MATCH (n :Label {prop: x}) RETURN n. If there was no node(:Label {prop: 1}), then theMATCHwouldn't even try to find forxbeing 2 or 3. - Report an error if trying to compare a property value with something that cannot be stored in a property.
- Fix crashes in some obscure cases.
- Commit log automatically garbage collected.
- Add minor performance improvements.
v0.9.0​
warning
Breaking Changes​
- Snapshot format changed (not backward compatible).
- Snapshot configuration flags changed, general durability flags added.
Major Features and Improvements​
- Write-ahead log added.
nodesandrelationshipsfunctions added.UNIONandUNION ALLis implemented.- Concurrent index creation is now enabled.
Bug Fixes and Other Changes​
v0.8.0​
Major Features and Improvements​
- CASE construct (without aggregations).
- Named path support added.
- Maps can now be stored as node/edge properties.
- Map indexing supported.
randfunction added.assertfunction added.counterandcounterSetfunctions added.indexInfofunction added.collectaggregation now supports Map collection.- Changed the BFS syntax.
Bug Fixes and Other Changes​
- Use \u to specify 4 digit codepoint and \U for 8 digit
- Keywords appearing in header (named expressions) keep original case.
- Our Bolt protocol implementation is now completely compatible with the protocol version 1 specification. (https://boltprotocol.org/v1/)
- Added a log warning when running out of memory and the
memory_warning_thresholdflag - Edges are no longer additionally filtered after expansion.
v0.7.0​
Major Features and Improvements​
- Variable length path
MATCH. - Explicitly started transactions (multi-query transactions).
- Map literal.
- Query parameters (except for parameters in place of property maps).
allfunction in openCypher.degreefunction in openCypher.- User specified transaction execution timeout.
Bug Fixes and Other Changes​
- Concurrent
BUILD INDEXdeadlock now returns an error to the client. - A
MATCHpreceeded byOPTIONAL MATCHexpansion inconsistencies. - High concurrency Antlr parsing bug.
- Indexing improvements.
- Query stripping and caching speedups.
v0.6.0​
Major Features and Improvements​
- AST caching.
- Label + property index support.
- Different logging setup & format.
v0.5.0​
Major Features and Improvements​
- Use label indexes to speed up querying.
- Generate multiple query plans and use the cost estimator to select the best.
- Snapshots & Recovery.
- Abandon old yaml configuration and migrate to gflags.
- Query stripping & AST caching support.
Bug Fixes and Other Changes​
- Fixed race condition in MVCC. Hints exp+aborted race condition prevented.
- Fixed conceptual bug in MVCC GC. Evaluate old records w.r.t. the oldest. transaction's id AND snapshot.
- User friendly error messages thrown from the query engine.
Build 837​
Bug Fixes and Other Changes​
- List indexing supported with preceeding IN (for example in query
RETURN 1 IN [[1,2]][0]).
Build 825​
Major Features and Improvements​
- RETURN , count(), OPTIONAL MATCH, UNWIND, DISTINCT (except DISTINCT in aggregate functions), list indexing and slicing, escaped labels, IN LIST operator, range function.
Bug Fixes and Other Changes​
- TCP_NODELAY -> import should be faster.
- Clear hint bits.
Build 783​
Major Features and Improvements​
- SKIP, LIMIT, ORDER BY.
- Math functions.
- Initial support for MERGE clause.
Bug Fixes and Other Changes​
- Unhandled Lock Timeout Exception.