Couchbase server 5.0 key/value vs GSI performance gap

You need to create right secondary index for query as described at Couchbase server reads per seconds
Please check out Indexing and Optimization articles in http://blog.couchbase.com/wp-content/uploads/2017/03/N1QL-A-Practical-Guide-v2.pdf