I bumped into a memory issue while looping through thousands of larger objects and using the upsert method to insert / update the object in Couchbase.
While dumping the memory usage right before and after the upsert (PHP SDK ) there seems to be an increase in memory with every loop. It look to me that the contents of the JSON-document remains in the memory.
I can reproduce this issue with versions 2.0.0, 2.0.1 and 2.0.2. This issue is not limited to the upsert method.
Is the PHP SDK leaking memory?