AngLi2 commented on a change in pull request #71: SCB-1723 support pagination
in kie apis
URL: https://github.com/apache/servicecomb-kie/pull/71#discussion_r367819938
##########
File path: examples/dev/db.js
##########
@@ -47,4 +47,5 @@ db.createCollection( "kv", {
} }
} );
db.kv.createIndex({"id": 1}, { unique: true } );
-db.kv.createIndex({key: 1, label_id: 1,domain:1,project:1},{ unique: true });
\ No newline at end of file
+db.kv.createIndex({key: 1, label_id: 1,domain:1,project:1},{ unique: true });
+db.setProfilingLevel(1, {slowms: 80, sampleRate: 1} );
Review comment:
mongoDB 的 slow query 日志,设置为 1 是只收集慢查询日志,slowms 是定义时间大于 80ms 的 query 为 slow
query,sampleRate 是收集百分比,设置为 1 就是所有慢查询都收集到日志。可以后期分析 mongoDB 性能瓶颈优化慢查询
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services