highrise icon indicating copy to clipboard operation
highrise copied to clipboard

Slow response from HighRise API

Open AlexHamilton opened this issue 14 years ago • 8 comments

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

AlexHamilton avatar Feb 02 '11 13:02 AlexHamilton

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

tapajos avatar Feb 03 '11 11:02 tapajos

It's about 3 or 4 records.

Thanks

AlexHamilton avatar Feb 03 '11 13:02 AlexHamilton

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

AlexHamilton avatar Feb 03 '11 14:02 AlexHamilton

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.

odorcicd avatar Feb 03 '11 16:02 odorcicd

Alex,

I will work on it during the next weekend.

tapajos avatar Feb 03 '11 22:02 tapajos

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.

AlexHamilton avatar Feb 06 '11 09:02 AlexHamilton

Hi, wanted to checkin to see if you managed to make any progress with this. Thanks

AlexHamilton avatar Apr 21 '11 11:04 AlexHamilton

@AlexHamilton Not yet. Sorry.

tapajos avatar Aug 20 '11 23:08 tapajos