memgraph icon indicating copy to clipboard operation
memgraph copied to clipboard

Create a flag to automatically generate indices

Open gvolfing opened this issue 11 months ago • 2 comments

Implement a solution to automatically create indices in Memgraph. Since edge-type indices are a lot more rare than label and label+property indices we might want to create separate flags automatically create them. Question is do we want flags for:

  • Label indices, Label+Property indices, Edge-type indices? (3 separate)
  • (Label indices, Label+Property indices), (Edge-type indices)? (2 separate "traditional indices" + "edge-type")
  • One flag for all The last one is probably a bad idea, because most use-cases would likely never require edge-type indices.

gvolfing avatar Feb 28 '24 07:02 gvolfing

One potential solution might be tied to this issue https://github.com/memgraph/memgraph/issues/1546

This is not necessarily the way we have to go about this but if we want to detect what indices are currently existing in the database, we either have to check that here, or with the index data-structures.

gvolfing avatar Feb 28 '24 07:02 gvolfing

A note, only label / edge-type index creation by default is I think an option here, but will expand 😄

gitbuda avatar Feb 28 '24 09:02 gitbuda