I have a lot of data and I am sending it as a JSON File. Need Help [Urgent]
I have a lot of data and I am sending it as a JSON File. Need Help [Urgent]
I am sending data as a JSON file and it is 3.5 MBs 35K+ rows. I am generating the table with the help of jquery as I need to wrap the contents into a container. eg
<tr>
<td><p class="someclass">{data}<p></td>
<td><p class="someclass">{data}<p></td>
<td><p class="someclass">{data}<p></td>
<td><p class="someclass">{data}<p></td>
</tr>
. This is making the page very slow. Is there any way the datatable can use the data as its database and not load the whole file at the same time. I need to wrap the content into my own html too.
Answers
There are lots of options. Start with looking at the Data docs. This FAQ provides options to improve loading speed. Sounds like you will want to look into Server Side Processing. Here are some SSP examples.
There are options to add classes using
columns.className
.Kevin