Client uses Go REST application, the data is saved in bucket. Sync gateway 2.1 is used with shared bucked access. While N1QL queries are working using gocb.v1, direct fetch using key was cousing timeout problems. Gocb verbose log showed following message:
- GOCB 08:21:02.327293 memdclient.go:207: Failed to decompress value from the server for key 'alarm:0765d033-75dc-4acb-bf1d-ddb479a7ef7e'.
There is a workaround for this issue: in memdclient.go (in gocbcore.v7) line 202/203 compression should be deactivated. It seems that using shared bucked access compression is deactivated, but datatype flags is still setting it.