Questions about deferRender option

Questions about deferRender option

jLinuxjLinux Posts: 981Questions: 73Answers: 75
edited October 2015 in Free community support

My project im working on now will be an Open Source project, and the users can have any number of "assets", which are managed via the DataTables table, and since I use x-editable to allow the assets to be edited right in the table (OpenSource = No DT Edit :'( ), ill have to parse each cell using the createdRow to replace the content with an anchor.

So since they can have any number of rows, Im going to have to implement the ability to use deferRender, my questions are

  1. I see in the deferRender [examples (http://datatables.net/reference/option/deferRender) pull right from a .txt source, if theres going to be a good amount of rows, shouldn't I use the serverSide as well? What would be the fastest? (with the least work, lol)
  2. What would be the faster way to render a lesser amount of rows? Im thinking that if they just have 1 or 2 rows, using serverSide and deferRender might actually slow it down. So what would be fastest way to load now?

Thanks!

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,753Questions: 1Answers: 10,509 Site admin
    Answer ✓

    if-theres-going-to-be-a-good-amount-of-rows,-shouldn't-I-use-the--option serverSide-as-well?

    The speed FAQ is relevant here. I can't put hard numbers on it for you, but typically you should use SSP at 50k+ rows. It depends upon the server and the data tho.

    Allan

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75
    edited October 2015

    Whoa, just looked at how my post-came-out-like-this, sorry, updated.

    Thanks allan! Ill take a look into it.

    If theres only a few rows though, would you think that ajax or/and serverSide would actually slow it down?

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Also @allan, I didnt realize the deferRender was also for DOM sourced data... that seems to speed it up a little bit, thanks

  • allanallan Posts: 63,753Questions: 1Answers: 10,509 Site admin

    Its not :-). It should make absolutely no difference for DOM sourced data, since the rows have already been rendered. So there is nothing to defer.

    Allan

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Ah, ok, so I was right the first time, lol

    Thanks!

This discussion has been closed.