over 3 years ago

List the notes from mongo university

  • M101P: MONGODB FOR DEVELOPERS
  • Chapter 4: Performance Using indexes, monitoring and understanding performance. Performance in sharded environments.

看 index 資料

db.system.indexes.find()
db.collection.getIndexes()

找出 collection 狀態

db.collection.stats()

找出所有 index 的空間

db.collection.totalIndexSize()

some way to enhance performance

  • explain
  • hint
  • profiling

geographic json 官網

http://geojson.org/

看 profile 的資料

db.system.profile.find()

db.getProfilingLevel()
db.getProfilingStatus()

some monitor command

mongostat
mongotop

← mongo 中 aggregate 的下法 python 一些語法記錄 →