Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CBQE-572 Put query results limit for query workload task.

This is a tmp change and eventually we need to allow all
query filters to be passed via cbsystest.py

Change-Id: Id2f2cfa531389891dc84ea806b01a480ab89d044
Reviewed-on: http://review.couchbase.org/22602
Tested-by: Farshid Ghods <farshid@couchbase.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
  • Loading branch information...
commit 92a674eda857441099395e55d8eae2e79bc009c8 1 parent 60dd9c2
@duncanhong duncanhong authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 pysystests/app/rest_client_tasks.py
View
6 pysystests/app/rest_client_tasks.py
@@ -25,13 +25,13 @@
@celery.task
-def multi_query(count, design_doc_name, view_name, params = None, bucket = "default", password = "", type_ = "view", batch_size = 100):
+def multi_query(count, design_doc_name, view_name, params = None, bucket = "default", password = "", type_ = "view", batch_size = 100, limit=1000):
pool = eventlet.GreenPool(batch_size)
capiUrl = "http://%s:%s/couchBase/" % (cfg.COUCHBASE_IP, cfg.COUCHBASE_PORT)
- url = capiUrl + '%s/_design/%s/_%s/%s' % (bucket,
+ url = capiUrl + '%s/_design/%s/_%s/%s?limit=%s' % (bucket,
design_doc_name, type_,
- view_name) # TODO: support filters
+ view_name, limit) # TODO: support filters
for res in pool.imap(send_query, [url for i in xrange(count)]):
pass

0 comments on commit 92a674e

Please sign in to comment.
Something went wrong with that request. Please try again.