Skip to content

Commit a014650

Browse files
authored
Add schema assert warning (#1032)
1 parent 829189d commit a014650

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

pages/fundamentals/indexes.mdx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ choice may cause queries to perform poorly.
214214

215215
### Schema-related procedures
216216

217-
You can [delete all node indexes](#delete-all-node-indexes) or modify them using the [`schema.assert()` procedure](/querying/schema#assert).
217+
You can modify indexes using the [`schema.assert()` procedure](/querying/schema#assert).
218218

219219
### Speed comparison
220220

@@ -285,6 +285,11 @@ Once all transactions have finished, the index will be deleted.
285285

286286
### Delete all node indexes
287287

288+
<Callout type="warning">
289+
The `schema.assert()` procedure will not drop edge-type and point indexes.
290+
Our plan is to update it, and you can track the progress on our [GitHub](https://github.com/memgraph/memgraph/issues/2462).
291+
</Callout>
292+
288293
To delete all indexes, use the [`schema.assert()`](/querying/schema#assert) procedure with the following parameters:
289294
- `indices_map` = `{}`
290295
- `unique_constraints` = map of key-value pairs of all uniqueness constraints in the database

pages/querying/schema.mdx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,13 @@ Results:
434434

435435
#### Delete all node indexes
436436

437-
The `assert()` procedure can be used to delete all indexes and constraints, **except for edge-type indices**. By
437+
<Callout type="warning">
438+
The `schema.assert()` procedure will not drop edge-type and point indexes.
439+
Our plan is to update it, and you can track the progress on our [GitHub](https://github.com/memgraph/memgraph/issues/2462).
440+
</Callout>
441+
442+
443+
The `assert()` procedure can be used to delete all indexes and constraints. By
438444
providing empty `indices_map`, `unique_constraints` and `existence_constraints` as
439445
well as `drop_existing` set to `true`, ensure that there are no indexes or
440446
constraints in the database. Here is the query for deleting all indexes and constraints:

0 commit comments

Comments
 (0)