Skip to content

Commit

Permalink
https://github.com/javers/javers/issues/1039
Browse files Browse the repository at this point in the history
added index on GLOBAL_ID_OWNER_ID_CDO_ID
  • Loading branch information
bartoszwalacik committed Mar 13, 2024
1 parent 8b121a3 commit 0e7ba7a
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -56,6 +56,7 @@ public void ensureSchema(MongoDialect dialect) {
snapshots.createIndex(new BasicDBObject(GLOBAL_ID_ENTITY, ASC));
snapshots.createIndex(new BasicDBObject(GLOBAL_ID_OWNER_ID_ENTITY, ASC));
snapshots.createIndex(new BasicDBObject(CHANGED_PROPERTIES, ASC));
snapshots.createIndex(new BasicDBObject(GLOBAL_ID_OWNER_ID_CDO_ID, ASC));

if (dialect == MONGO_DB) {
snapshots.createIndex(new BasicDBObject(COMMIT_PROPERTIES + ".key", ASC).append(COMMIT_PROPERTIES + ".value", ASC),
Expand Down

0 comments on commit 0e7ba7a

Please sign in to comment.