Thanks Eliot.
but it does NOT work.
>>> print( db._command( { "collstats" : "foo" } ) )
Traceback (most recent call last):
File "simple_demo.py", line 79, in ?
print( db._command( { "collstats" : "foo" } ) )
File "/home/s/apps/mongodb/lib/python/pymongo/database.py", line
190, in _command
raise OperationFailure("command %r failed: %s" %
pymongo.errors.OperationFailure: command {'collstats': 'foo'} failed:
ns not found
>>> print( db._command( { "collstats" : "storageSize" } ) )
Traceback (most recent call last):
File "simple_demo.py", line 79, in ?
print( db._command( { "collstats" : "storageSize" } ) )
File "/home/s/apps/mongodb/lib/python/pymongo/database.py", line
190, in _command
raise OperationFailure("command %r failed: %s" %
pymongo.errors.OperationFailure: command {'collstats': 'storageSize'}
failed: ns not found
I install pymongo-1.1.
Did I misunderstand it ?
-- kuer