Skip to content

Latest commit

 

History

History
37 lines (22 loc) · 610 Bytes

3.0 Performance.md

File metadata and controls

37 lines (22 loc) · 610 Bytes

#MongoDb Diver:

###Create Index

db.collection.createIndex({sample_id:1})

The example above will create an index sample_id accending"

###Get Index

db.collection.getIndexes()

The example above will show all the indexes within the document (it works with MMAP and WIRED TIGER)"

###remove Index

db.collection.dropIndex({sample_id:1})

The example above will remove the index sample_id accending"

###getting size of your index

db.collection.stats()
db.collection.totalIndexSize() // Shortcut

The example above will remove the index sample_id accending"