SearchPanes & server-side processing; waiting before firing the query?
SearchPanes & server-side processing; waiting before firing the query?
Hi,
I have several searchpane filters/categories, where usually multi-select is been used respectively several selections been made by users for getting the desired result.
Currently on each click a search is been fired, which can take a fews seconds on big database and which bothers the users.
Question; is there an option or can a "hack" been suggested so that the firing of the search can be delayed?
Time could just start counting after the last selection/change in searchpanes..
I searched through the Docs, APis and the forum - but did not find anything similar.
Regards...
Answers
searchDelay
was intended for this, but I suspect you're right and that SearchPanes doesn't consider this.I've raised it internally (DD-1766 for my reference) and we'll report back here when there's an update.
Cheers,
Colin
Thank you colin.
I know the search delay. I optimized this even, so that the time counts after the last key press.
It might the wrong thread - anyway, let me share my 'debouncing' approach
I am using [selectize ](https://selectize.github.io/selectize.js/ "selectize " as search bar replacement, thatswhy its a litte bit different - but showing the "debouncing" it should not make a difference):
Nice, thanks for posting,
Colin
@colin ,
may I ask if you have any news on this?
Roughly summarized; an adjustable time would be great for firing the search, if entries from the searchPanes columns are selected.
It's still in the backlog, I'm afraid. It's unlikely to be address in the near future as we're focusing effort in other areas right now,
Colin
Hi,
meanwhile i figured out the change. Its a minor change and somehow was prepared, at least for the deselection part.
Red Square = necessary changes. Screenshots is from SearchPanes v1.2.2
Getting this delay adjustable with an parameter would be great of course.
Regards..