Added nocollate indeces

This commit is contained in:
Simon Martens
2025-02-11 21:55:07 +01:00
parent 71dcf9bf5e
commit cda95c3958
5 changed files with 18 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ func itemsFields(app core.App) core.FieldsList {
func itemsIndexes(collection *core.Collection) {
dbmodels.AddIndex(collection, dbmodels.ITEMS_CONDITION_FIELD, false)
dbmodels.AddIndex(collection, dbmodels.ITEMS_OWNER_FIELD, false)
dbmodels.AddIndex(collection, dbmodels.ITEMS_LOCATION_FIELD, false)
dbmodels.AddIndex(collection, dbmodels.ITEMS_IDENTIFIER_FIELD, false)
dbmodels.AddIndex(collection, dbmodels.URI_FIELD, false)
dbmodels.AddIndexNoCollate(collection, dbmodels.ITEMS_LOCATION_FIELD, false)
dbmodels.AddIndexNoCollate(collection, dbmodels.ITEMS_IDENTIFIER_FIELD, false)
dbmodels.AddIndexNoCollate(collection, dbmodels.URI_FIELD, false)
}