You are viewing limited content. For full access, please sign in.

Question

Question

Slow running lookups

asked on December 5, 2017

I have a stored procedure which returns results in ~ 1 second when run directly from sql server, however it takes > 10 seconds to return results within a Laserfiche Form. Whenever I have the lookup enabled, it takes about 5 seconds to even add a row to a table. I have no idea why it's so slow, does anyone have any suggestions as to what I should look to improve? I notice that if I check the "Show Auto Fill Button", the form works much quicker - however no auto fill button appears... I would ideally like to hide it, but not if it's going to essentially make this form useless. I'm working in Forms 10.2. Any suggestions what I should try, or has anyone else experienced a similar problem?

 

Thanks

0 0

Replies

replied on December 8, 2017

Hi David,

The difference with auto fill button shown/hidden is that, when it is hidden, change on each field would trigger a call to lookup, and lookup requests will run synchronously; when the button is shown, only one lookup is triggered on clicking the button, and lookup requests run asynchronously.

How many input fields are there in your stored procedure? When adding a new row on table all fields in new row is treated as changed and trigger a call to lookup. If there are 5 inputs and each lookup request takes 1 second, running 5 requests synchronously would take 5 seconds.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.