Skip to content

Commit 3bda40e

Browse files
committed
schema and analytical ub updates
1 parent 5e6272c commit 3bda40e

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

pages/fundamentals/storage-memory-usage.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ If the returned graph element has been deleted by a parallel transaction, the
186186
built-in behavior is as follows:
187187
* [procedures](/advanced-algorithms/run-algorithms#run-procedures-from-mage-library): skip all records that contain any deleted value
188188
* [functions](/querying/functions): return a null value
189+
190+
Please note that deleting same part of the graph from parallel transaction will lead to undefined behavior.
191+
189192
Users developing [custom query procedures and functions](/custom-query-modules) intended to work in the
190193
analytical storage mode should use API methods to check if Memgraph is running
191194
in a transactional (ACID-compliant) storage mode. If not, the query module APIs

pages/querying/schema.mdx

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ Schema queries are designed to retrieve information about the structure of the d
1111

1212
## Run-time schema tracking
1313

14+
<Callout type="info">
15+
16+
Please use a snapshot to migrate a pre v2.21 datasets with properties on edges.
17+
When schema is tracked, recovering using WAL files generated pre v2.21 will incur a performance penalty as crucial data is missing, which leads to long scan times.
18+
19+
</Callout>
20+
1421
To use run-time schema tracking, start Memgraph with the `--schema-info-enabled` [configuration flag](/configuration/configuration-settings#other) set to `True`. Once enabled, every change to the data layout will be tracked, and a derived schema will be automatically updated. Note that enabling this feature may result in a slight performance decrease; for more details, refer to [Performance Tips](#performance-tips).
1522

1623
### What Schema Information is Tracked?
@@ -248,7 +255,7 @@ Enabling `--schema-info-enabled` incurs a performance cost because additional wo
248255
#### Performance Tips
249256
* __Label Changes on Nodes with Edges__: Changing labels on a node with existing edges can invalidate large parts of the schema. To avoid blocking queries during schema updates, define node labels before adding edges. Queries such as `CREATE (:A)-[:EDGE]->(:B)` are also fine.
250257
* __Edge Property Type Changes__: Modifying the type of an edge's property may require scanning large portions of the graph. To avoid this, define edges and their properties in the same transaction and keep property types stable.
251-
* __Recovery Using WALs__: Recovering edges with properties via Write-Ahead Log (WAL) files can cause a significant performance hit. To mitigate this, use snapshots instead. Starting from v2.21, this issue will be alleviated, though not completely resolved.
258+
* __Recovery Using WALs__: Recovering edges with properties via Write-Ahead Log (WAL) files can cause a significant performance hit. To mitigate this, use snapshots instead. Starting from v2.21, this issue has been alleviate, when using WAL files created by v2.21+.
252259

253260
## Schema metadata
254261

0 commit comments

Comments
 (0)