Meteor-Community-Packages / meteor-tabular

Reactive datatables for large or small datasets
https://packosphere.com/aldeed/tabular
MIT License
363 stars 136 forks source link

searchDelay doesn't seem to be respected #230

Open sylido opened 9 years ago

sylido commented 9 years ago

searchDelay does nothing currently, it seems ? Any suggestions on delaying the search event with custom code ?

aldeed commented 9 years ago

I haven't tested, but it seems like it should work out of the box. Are you trying to speed up or slow down the throttling?

sylido commented 9 years ago

I'm trying to slow it down, maybe I didn't understand the description of it from datatables.net but isn't is supposed to basically wait for more input by the user before actually triggering the request for more data ? In JavaScript I would usually do a clearTimeout(timer); timer = setTimeout(updateFunc(), searchDelay); isn't searchDelay supposed to be the same implementation ?

The problem is that when I start typing in the search field, I get a request on the server side for each new character entered in the search field - which bogs down the whole table, it becomes slightly unresponsive ~14k rows of data.