Datatables velocity array >10000 regs

Datatables velocity array >10000 regs

pepitovadecurtpepitovadecurt Posts: 5Questions: 1Answers: 0

Hi I have a PHP program that returns an array with >10000 lines in most cases.
To show the regs to datatables use foreach and echo to write every regs.
Using ajax or something to transfer the regs from PHP to datatables maybe it runs with more speed?
Thanks.

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin
    Answer ✓

    Yes - it should run faster as you could enable the deferRender option to reduce the initial draw time. See the speed FAQ.

    Allan

  • pepitovadecurtpepitovadecurt Posts: 5Questions: 1Answers: 0

    Hi allan, the problem is the php time to return data. Now trying server side and post the results here.
    Thanks.

  • pepitovadecurtpepitovadecurt Posts: 5Questions: 1Answers: 0

    I think I'm not in correct way. My app structure is:

     index.php ---> collect the vars data
     output.php ---> show the calculated data
        ^^ output.class.php ---> calculate the data and return array to output.php
    

    Need the server side? Need to save to a database?
    I want to show loading or calculating in the datatables because sometimes the calculation takes too long.

  • allanallan Posts: 63,791Questions: 1Answers: 10,513 Site admin

    processing will show a processing message when DataTables is busy.

    Allan

This discussion has been closed.