Can you show me the exact calls you're making?

One thing that may help is to use ?expand=<fieldname> in your calls. You
can retrieve sub-resources a bit this way. For example, retrieving review
requests with ?expand=reviews.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
Beanbag, Inc. - http://www.beanbaginc.com


On Wed, Apr 10, 2013 at 3:32 AM, Ethan Lowry <ethanma...@gmail.com> wrote:

> Hey Christian,
>
> The section of code taking so long does the following:
>
>
>    - Recieves a page of json results from an earlier request retrieving
>    review requests
>    - For each individual review request, I'm checking if / how often it's
>    been reviewed so each time I create a new Resource from
>    'request['links']['reviews']['href']' and do a .get request on that to
>    count the number of results.
>
> I'm pretty sure those are the only calls to the server made throughout the
> section that is taking forever.
>
> For the record I'm using ruby and the Rest 
> Client<https://github.com/rest-client/rest-client> gem.
> In looking through it again I did spot a potential area for better
> efficiency so I'll try that in the meantime, any thoughts appreciated
> though.
>
> Thanks
>
> On Wednesday, 10 April 2013 11:10:48 UTC+1, Christian Hammond wrote:
>
>> Hi Ethan,
>>
>> I can't think of a reason it would be slower since 1.6. It certainly
>> doesn't appear to be slower for anything I've done in 1.7 (and the web UI
>> uses the API for most of its operations as well).
>>
>> What calls are you making?
>>
>> Christian
>>
>> --
>> Christian Hammond - chi...@chipx86.com
>>
>> Review Board - http://www.reviewboard.org
>> Beanbag, Inc. - http://www.beanbaginc.com
>>
>>
>> On Wed, Apr 10, 2013 at 3:07 AM, Ethan Lowry <ethan...@gmail.com> wrote:
>>
>>>  Hey,
>>>
>>> So I have a ruby script used for grabbing information on RB requests etc
>>> from our Review Board. It was pretty slow at the best of times but since we
>>> upgraded to the latest version of RB yesterday from 1.6 the time it takes
>>> the script to run has been multiplied by about 5 =/
>>>
>>> I can give more details on the specific requests being made if needed
>>> but does anyone off the top of their head know of any changes to the API or
>>> anything since 1.6 that might be causing this?
>>>
>>> Thanks
>>> E
>>>
>>> --
>>> Want to help the Review Board project? Donate today at
>>> http://www.reviewboard.org/**donate/<http://www.reviewboard.org/donate/>
>>> Happy user? Let us know at 
>>> http://www.reviewboard.org/**users/<http://www.reviewboard.org/users/>
>>> -~----------~----~----~----~--**----~----~------~--~---
>>> To unsubscribe from this group, send email to reviewboard...@**
>>> googlegroups.com
>>>
>>> For more options, visit this group at http://groups.google.com/**
>>> group/reviewboard?hl=en<http://groups.google.com/group/reviewboard?hl=en>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "reviewboard" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard...@**googlegroups.com.
>>>
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to