pre-fetch next table page

pre-fetch next table page

jblackwoodjblackwood Posts: 1Questions: 0Answers: 0
edited July 2010 in General
I'm using DataTables to display results from a large database, and each page of data takes approximately 15s to generate. Is it possible to pre-fetch the next page's data so that loading times appear faster? )

Replies

  • sd_zuosd_zuo Posts: 78Questions: 1Answers: 0
    edited July 2010
    I think you should load 1000 rows of record, fill the table, and do the pagination at the client-side rather than requesting 10 each time and paginate on the server-side.
    Another option is to use two DataTables and switch their visibility alternatively.
  • iuliandumiuliandum Posts: 70Questions: 0Answers: 0
    Hi, jblackwood

    See in next example.

    http://www.datatables.net/examples/server_side/pipeline.html
This discussion has been closed.