highrise
highrise copied to clipboard
Slow response from HighRise API
Hi, I'm using your plugin to try to find all people with a particular last name:
@people = Highrise::Person.find_by_last_name(params[:last_name])
The search works, but takes about 5 minutes to respond. Our HighRise account has about 5,000 contacts.
When I raised this issue with 37 signals, they suggested the problem was with the plugin, not the API. I find this unlikely as a test on a smaller HighRise account using the same plugin produced near instant responses. Do you have any idea what the issue could be?
Thanks
Alex,
How many records do you have with this particular last name? I'm not sure about the problem but maybe is parsing the response.
Thanks
It's about 3 or 4 records.
Thanks
It appears that I inadvertently closed this, which I didn't mean to do. Let me know if you would like me to open a new issue. Thanks
This is definitely the way these helpers are implemented. Since the Highrise API only limits the amount of records it returns to a small number (25 I think?), it has to make one request for every 25 records. The highrise API also only supports search for city, zip, state, country, phone and email. So all other fields are searched for the 'long' way which you're encountering.
Alex,
I will work on it during the next weekend.
Thanks. I'm OK doing a lookup by email rather than last name, if that is the only way to do it responsively with the Highrise API.
Hi, wanted to checkin to see if you managed to make any progress with this. Thanks
@AlexHamilton Not yet. Sorry.