How datagrip gets all the documents from a couchbase bucket?

Viewed 103

Running GET KEYS FROM BucketName query on datagrip results with all the keys from the bucket.

However, when querying the same query within the couchbase ui or java sdk results with syntax error - at KEYS. How does datagrip be able to get all the documents in the bucket without indexing.

2 Answers
create primary index on bucketname;
SELECT RAW META(b).id FROM bucketname AS b;
Related