Skip to content

Commit

Permalink
add mongo indexes for new claim collections
Browse files Browse the repository at this point in the history
  • Loading branch information
loothero committed Sep 10, 2024
1 parent b1efe4d commit 8de8b40
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions indexer/scripts/mongo-init/init-mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,21 @@ db.scores.createIndex({ "_cursor.from": 1 });
db.scores.createIndex({ "_cursor.to": 1 });
db.scores.createIndex({ "xp": -1});
db.scores.createIndex({ "rank": -1});

// claimed free games
db.claimed_free_games.createIndex({ "_cursor.to": 1, "token": 1 });
db.claimed_free_games.createIndex({ "_cursor.from": 1 });
db.claimed_free_games.createIndex({ "_cursor.to": 1 });
db.claimed_free_games.createIndex({ "token": 1});
db.claimed_free_games.createIndex({ "gameOwnerAddress": 1, "token": 1 })
db.claimed_free_games.createIndex({ "hash": 1 })

// collection totals
db.collection_totals.createIndex({ "_cursor.from": 1 });
db.collection_totals.createIndex({ "_cursor.to": 1 });

// tokens
db.tokens.createIndex({ "_cursor.to": 1, "nftOwnerAddress": 1 });
db.tokens.createIndex({ "_cursor.from": 1 });
db.tokens.createIndex({ "_cursor.to": 1 });
db.tokens.createIndex({ "nftOwnerAddress": 1 });

0 comments on commit 8de8b40

Please sign in to comment.