Improve datatables display of data

Improve datatables display of data

MajesticMajestic Posts: 14Questions: 7Answers: 0

Hello, I'd like to know if there are solutions to improve the displaying time of data. I've checked out this post but it does not really change anything to my current loading time.

Here's my code :

currentAuditTable = $('#auditTable').DataTable({
        responsive: false,
        ajax: {
            "url": restURI + 'orch/search/audit/'+encodeURI(auditFlowId)+'/'+encodeURI(auditEventId),
            "contentType": "application/json",
            "type": "GET",
            "data": null,
            "error": function(jqXHR, textStatus, errorThrown){
                if (globalVars.unloaded) {
                    return;
                }
                manageAjaxError(jqXHR, textStatus, errorThrown)
            }
        },
        order: [3, 'desc'],
        pageLength: 50,
        autoWidth: true,
        deferRender: true,
        columns: [
            {"data": "EVENT_ID", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "5%"},
            {"data": "OPERATION_NAME", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "OPERATION_STATUS", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "CREATE_DATE", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "10%"},
            {"data": "OPERATION_MESSAGE", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "25%"},
            {"data": "OPERATION_DATA", "defaultContent": "", "sClass": "text-center limitedWidth", "width": "25%"}
        ]
    });

I would appreciate any help because I'm stuck right now. Thank you !

Answers

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @Majestic ,

    This section of the FAQ should help, it discusses various techniques to improve performance,

    Cheers,

    Colin

This discussion has been closed.