Updated mongodb config script to include TTL index to remove stale syncs.
This commit is contained in:
parent
30ad027147
commit
fb4b451366
1 changed files with 2 additions and 1 deletions
|
@ -1,2 +1,3 @@
|
|||
db.newsynclogs.createIndex( { "expiresAt": 1 }, { expireAfterSeconds: 0 } );
|
||||
db.newsynclogs.createIndex( { "ipAddress": 1 } );
|
||||
db.newsynclogs.createIndex( { "ipAddress": 1 } );
|
||||
db.bookmarks.createIndex( { "lastAccessed": 1 }, { expireAfterSeconds: 21*86400 } );
|
Loading…
Reference in a new issue