DataTable & Laravel 4 & json

DataTable & Laravel 4 & json

extjacextjac Posts: 13Questions: 6Answers: 0

Hello,

I am using dataTable with Laravel 4 and all works ok. The only problem i am having is that Laravel is returning 10k json records at once and dataTable takes too long to load them (which is normal). I don’t want to use any Laravel Package so i was wondering if some run into the same challenge. I know the issue is with pagination...I don’t understand how to make the pagination with Laravel json data.
Anyone?

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    Do you have deferred rendering (deferRender) enabled? If not, I'd suggest enabling it. If you do, then the next stage to get improved performance is server-side processing.

    Allan

  • extjacextjac Posts: 13Questions: 6Answers: 0

    Thanks allan!

    I tried deferRender but i didn't see a big improve in performance. basically, i take from 2 to 5 seconds to load 8k records.

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin

    How much of that time is the download from the server? We'd a link to the page to be able to profile it and see if there is anything else that can be improved.

    Allan

  • extjacextjac Posts: 13Questions: 6Answers: 0
    edited June 2014

    i will post the link

This discussion has been closed.