json search request optimalisation

json search request optimalisation

lilopellilopel Posts: 1Questions: 0Answers: 0
edited September 2013 in General
hi,
i use the datatable with the json serverside option, when i use the search input the script sends a request to the server... what is great!
everything works wel.... but 1 problem

the script sends a request per letter that you type..
so if you search 'hello'
you will get a search for
?s=h
?s=he
?s=hel
?s=hell
?s=hello
that wil load the server 5x more...and give less performance..

hou can we change this ?

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Use this plug-in: http://datatables.net/plug-ins/api#fnSetFilteringDelay

    Allan
This discussion has been closed.