guys m new on N1ql , trying to fire query for creating primary key on bucket,
using
CREATE INDEX id_ix on ram(meta().id);
(ram is bucket name)
it is giving error as
5000 - GSI CreateIndex() - cause: Request timed out. Index server may still be processing this request. Please check the status after sometime or retry.
Yes, you can create the index with deferred build, and then issue a BUILD command afterwards. This is in the documentation. Please consult the docs and try that, and then let us know.
hi,
i have tried in several ways to assign the key for the bucket. bt it is showing continuously error as CREATE PRIMARY INDEX ON beer-sample USING GSI…
i have tried from console as well as cbq command line …still it is giving error like that only
I had a problem like this when I built a small dev server, and was addressing it using only its IP address. Got some very long response times. When I created a name for the server, entered the name (and IP) in my etc/hosts file, the server response time was much faster.