Benchmarking tool to benchmark N1QL queries in Couchbase using NodeJS
Prerequisites:
To run:
- Download the Dev Preview for N1QL
- Add a bunch of data to a Couchbase bucket, and create a production view with whatever you want
- Inside
config.js
, make sure the configuration is correct, including editing the query to make it equivalent to the view - In a separate terminal in the directory you installed the dev preview, run
./cbq-engine -couchbase http://host:8091/
(This enables N1QL support for the Couchbase server) - In the project root,
node ./couchbase.js