Cli for a document existing in memory or disk?


#1

Hello,
Is there a command line interface method to verify if a document is in memory or on disk? If that is not possible, a method that counts the number of documents in memory or on disk?
Thank you.


#2

I’ve been able to find the % of documents that are resident using cbstats. How does one determine if a specific document is in memory or on disk?


#3

Hi,
I posed this question a month ago. Can someone help me?
Thank you.


#4

This can be done from the command line with a combination of cbc hash and cbc stats with the “key” argument. The cbc utility is documented with libcouchbase and the stats possible are documented with Couchbase Server.

This blog may also be useful:

http://blog.couchbase.com/couchbase-tools-shipped-couchbase-c-client-library-libcouchbase