Hi all,
I am tasked with porting our back end systems from mysql to couchbase (major rewrite of all apps). CB is pretty darn cool when it comes to clusters, replication, etc.
However, I’ve hit a road block. We have ~60k products in our db. Simple products - barcodes, descriptions, prices etc.
Mysql has appropriate indexes, and runs on EC2 small (2gb + swap).
When doing a mysql query on ec2 (ebs nas storage): “select * from products” the results typically take 0-1ms (effectively instant).
I am running couchbase on a M1 max with 32gb. I have allocated 18gb to bucket, 4gb to indexing, and so on, so that should not be a limiting factor.
I understand couchbase is different, (which is why we want to move towards it), but doing an equivalent n1ql query (“select meta().id, products.* from products”) on my M1 it is taking 700ms - 1.1s!
I (belieive I…) have the right indexes, and I understand under the hood it’s retrieving results differently (fetching each k-v), but I’d like to resolve this latency/slowness issue and I’ve hit a wall.
Any input would be greatly appreciated!