Comment #1 on issue 3176 by post-review requests to a server with thousand of repo is very slow

on, this workaround has been done, is there a better way to prevent hardcoding max-results? or set it to all? ---------------------------- rbtools/ ----------------------------
index fe86b71..17a6b94 100755
@@ -514,8 +514,9 @@ class ReviewBoardServer(object):
             rsp = self.api_get('api/json/repositories/')
             repositories = rsp['repositories']
+            # TCH: add max-results=1000 to reduce HTTP queries count
             rsp = self.api_get(
-                self.root_resource['links']['repositories']['href'])
+ self.root_resource['links']['repositories']['href'] + '?max-results=1000')
             repositories = rsp['repositories']

             while 'next' in rsp['links']:

You received this message because this project is configured to send all issue notifications to this address.
You may adjust your notification preferences at:

You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To post to this group, send email to
Visit this group at
For more options, visit

Reply via email to