circles-arrows / blueprint41

An Object Graph Mapper for CSharp to connect to Neo4j or Memgraph.
http://www.blueprint41.com/
MIT License
31 stars 8 forks source link

Memgraph Index on unique constraints #66

Closed Eclegv closed 4 months ago

Eclegv commented 4 months ago

Kind of issue

In which operating systems have you tested?

Hello !

I'm actually creating a node entity in the blueprint datastore, this way : image

I'm creating 3 unique indexed property, but, when I start the server for the first time, there are no indexes created for those properties. By reading the memgraph documentation, it doesn't works the same way as neo4j (which creates automatically the index on a unique constraint) image

To corroborate what the documentation is saying, I ran a Read Query integration test with 66.000 nodes in the database. With the constraint without index, the test takes 30ms. With the constraint and the manually created index, the test takes 6ms.

Expected Behavior

When the server is started, the database should contain an index for each of my unique constraint