Skip to content

Commit fb5b058

Browse files
authored
Add warning about edge type indexes (#1090)
1 parent 9a08f61 commit fb5b058

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

pages/fundamentals/indexes.mdx

+18-4
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,19 @@ labels and properties inside the `MATCH` pattern.
133133

134134
### Edge-type index
135135

136-
To optimize queries that fetch only the edges by specific edge-types, you need to create an edge-type index.
137-
138136
<Callout type="warning">
137+
We've identified a **critical issue** with edge-type indexes during
138+
rollbacks/aborts. The current behavior is inherently unsafe.
139139

140-
Creating an edge-type index requires the --storage-properties-on-edges flag to be set to true!
141-
140+
**Avoid using edge-type indexes for now**. A safer, more reliable version is
141+
expected in the next release by the end of January 2025. We appreciate your
142+
understanding and patience.
142143
</Callout>
143144

145+
To optimize queries that fetch only the edges by specific edge-types, you need
146+
to create an edge-type index. Creating an edge-type index requires the
147+
`--storage-properties-on-edges` flag to be set to true.
148+
144149
```cypher
145150
CREATE EDGE INDEX ON :EDGE_TYPE;
146151
```
@@ -161,6 +166,15 @@ Named parameters are not supported for edge-type indexes.
161166

162167
### Edge-type property index
163168

169+
<Callout type="warning">
170+
We've identified a **critical issue** with edge-type property indexes during
171+
rollbacks/aborts. The current behavior is inherently unsafe.
172+
173+
**Avoid using edge-type property indexes for now**. A safer, more reliable version is
174+
expected in the next release by the end of January 2025. We appreciate your
175+
understanding and patience.
176+
</Callout>
177+
164178
To optimize queries that fetch only the edges by specific edge types and properties, you need to create an edge-type property index.
165179

166180
<Callout type="warning">

0 commit comments

Comments
 (0)