Comment #1 on issue 3176 by nano...@gmail.com: post-review requests to a server with thousand of repo is very slow
http://code.google.com/p/reviewboard/issues/detail?id=3176

on postreview.py, this workaround has been done, is there a better way to prevent hardcoding max-results? or set it to all? ---------------------------- rbtools/postreview.py ----------------------------
index fe86b71..17a6b94 100755
@@ -514,8 +514,9 @@ class ReviewBoardServer(object):
             rsp = self.api_get('api/json/repositories/')
             repositories = rsp['repositories']
         else:
+            # 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:
https://code.google.com/hosting/settings

--
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 reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to