Questions about deferRender option
Questions about deferRender option
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
- 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 theserverSide
as well? What would be the fastest? (with the least work, lol) - 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
anddeferRender
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
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
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?
Also @allan, I didnt realize the
deferRender
was also for DOM sourced data... that seems to speed it up a little bit, thanksIts 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
Ah, ok, so I was right the first time, lol
Thanks!