orientdb-docs icon indicating copy to clipboard operation
orientdb-docs copied to clipboard

Unique composite index example is NOTUNIQUE

Open indolering opened this issue 5 years ago • 0 comments

In the indicies section of Schema.md, the example creates a NOTUNIQUE index but the descriptive text states that it creates a unique composite index:

You can also constrain a group of properties as unique by creating a composite index made from multiple fields. For instance,

profile.createIndex("compositeIdx", OClass.INDEX_TYPE.NOTUNIQUE, "name", "surname");

indolering avatar Nov 23 '20 01:11 indolering