I am having a Couchbase bucket with 22 million document in it (all small 30 line jsons).
With total size of 7gb of data. It all fits in memory and i even have a 5 gb of memory left for the bucket.
If i do a get with an array of 250 ids it takes about 2 seconds for couchbase to find them. Which is very slow and way longer then i would expect it to cost to fetch 250 document from memory.
// My list of 250 documents to fetch
$idList = ['i::#1100', 'i::#4596', 'i::#7594', 'i::#60947', 'etc'];
// @var \CouchbaseBucket $bucket
$bucket->get($idList, ); // I do not send any options here
// This takes about 2 seconds
Are you counting the full time for the script? Or only the time to perform the gets? There is a known period of time when we first connect to couchbase that can take a while. Though 2 seconds still seems quite significant. Can you give us some more detail on your environment?