Closed KaffinPX closed 2 years ago
If you want to get the count of all entries in a database, you can do db.getStats().entryCount. If you need to do it for a specific range of keys, you can use db.getCount({start:..., end:...}) (or any of the range options).
db.getStats().entryCount
db.getCount({start:..., end:...})
Thanks <3
If you want to get the count of all entries in a database, you can do
db.getStats().entryCount
. If you need to do it for a specific range of keys, you can usedb.getCount({start:..., end:...})
(or any of the range options).