Skip to content

Commit fb4b451

Browse files
committed
Updated mongodb config script to include TTL index to remove stale syncs.
1 parent 30ad027 commit fb4b451

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mongoconfig.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
db.newsynclogs.createIndex( { "expiresAt": 1 }, { expireAfterSeconds: 0 } );
2-
db.newsynclogs.createIndex( { "ipAddress": 1 } );
2+
db.newsynclogs.createIndex( { "ipAddress": 1 } );
3+
db.bookmarks.createIndex( { "lastAccessed": 1 }, { expireAfterSeconds: 21*86400 } );

0 commit comments

Comments
 (0)