Skip to content

Commit

Permalink
apache#79 消息推送跟踪
Browse files Browse the repository at this point in the history
  • Loading branch information
develpoerX committed Dec 24, 2020
1 parent 7c761d4 commit b8460db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions deployments/db.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ db.createCollection( "polling_detail", {
} );

//index
db.kv.createIndex({"id": 1}, { unique: true } );
db.kv.createIndex({key: 1, label_format: 1,domain:1,project:1},{ unique: true } );
db.kv_revision.createIndex( { "delete_time": 1 }, { expireAfterSeconds: 7 * 24 * 3600 } );
db.label.createIndex({"id": 1}, { unique: true } );
db.label.createIndex({format: 1,domain:1,project:1},{ unique: true } );
db.polling_detail.createIndex({timestamp: 1}, { expireAfterSeconds: 7 * 24 * 3600 } );
db.counter.createIndex({name: 1,domain:1},{ unique: true } );
db.view.createIndex({"id": 1}, { unique: true } );
db.view.createIndex({display:1,domain:1,project:1},{ unique: true } );
db.kv.createIndex({"id": 1}, {unique: true});
db.kv.createIndex({key: 1, label_format: 1, domain: 1, project: 1}, {unique: true});
db.kv_revision.createIndex({"delete_time": 1}, {expireAfterSeconds: 7 * 24 * 3600});
db.label.createIndex({"id": 1}, {unique: true});
db.label.createIndex({format: 1, domain: 1, project: 1}, {unique: true});
db.polling_detail.createIndex({timestamp: 1}, {expireAfterSeconds: 7 * 24 * 3600});
db.counter.createIndex({name: 1, domain: 1}, {unique: true});
db.view.createIndex({"id": 1}, {unique: true});
db.view.createIndex({display: 1, domain: 1, project: 1}, {unique: true});
//db config
db.setProfilingLevel(1, {slowms: 80, sampleRate: 1 } );
db.setProfilingLevel(1, {slowms: 80, sampleRate: 1});

0 comments on commit b8460db

Please sign in to comment.