Which to use, Deferred Rendering, or Deferred Loading

Which to use, Deferred Rendering, or Deferred Loading

jLinuxjLinux Posts: 981Questions: 73Answers: 75

Im creating a log-parsing interface for an application Im working on, I plan on using DataTables for this.

Since its logs that ill be dealing with, there may be a LOT of rows, depending on the settings for whats pulled and how many logs are kept before rotating or dumping any, it could be thousands.

I was looking at the Deferred Rendering and Deferred Loading plugins, and they both seem to be useful for this case.. But which one would you recommend to use?

My guess is Deferred Loading, but id like to make sure im right

Thanks!

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin
    Answer ✓

    Deferred rendering.

    Deferred loading required two types of data output - into plain HTML and server-side processing. You can do that, but it obviously involves more work. It also means you must use server-side processing.

    Probably worth reading up about client-side and server-side processing if you haven't already. That is the key decision to make (and will be based on the number of rows).

    Allan

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

    Yeah I plan on using PHP to grab chunks of the log file and process it before handing it to DT.

    Thanks!

    LMK when you have that re-order plugin finished ;-) Need that for one thing before I release this php file, hah

  • jLinuxjLinux Posts: 981Questions: 73Answers: 75

    Do you guys have a PHP library or anything to make server side rendering easier? JW

  • tangerinetangerine Posts: 3,365Questions: 39Answers: 395

    There is an example on the "Server-side processing" page of documentation.

    http://datatables.net/examples/data_sources/server_side.html

  • allanallan Posts: 64,032Questions: 1Answers: 10,555 Site admin
    Answer ✓

    The SSP class does require the data to be in a database though. That might not help you too much if it is in a file. Unfortunately I don't have an example that uses server-side processing from a flat file.

    Allan

This discussion has been closed.