I am trying to use the ruby library to do some N1QL requests.
My problem is with N1QL requests that requires long time since they block the system until they are resolved or timeout.
My API uses Fiber and Eventmachine to handle the change of IO, so the structure that I generally use is the following:
result = EM::S.defer do @n1ql_bucket.query(query) end
This code is working fine with old version of Couchbase v1.3.15, but with the newer version this blocks other requests to continue.
What am I doing wrong? And how do you suggest I handle N1QL request to not have this blocking issue?
Thank you a lot for your attention.