Slow loading of big data set


#1

so i am getting very slow loading with a test data set of 50 000 (would require much more later on , but your performance demo seems to cope with those numbers.), I have inspected your performance and big data demo and copied some of the configuration in order to try and get better loading speeds but i did not have any success. here I have attached images testing parse (put the 50 000 in the html file) and load functions.


using gantt.load()

here is my code :slight_smile:

<!DOCTYPE html>

<head>

¬†¬†<meta¬†http-equiv=‚ÄúContent-type‚Ä̬†content=‚Äútext/html;¬†charset=utf-8‚ÄĚ>

 

¬†¬†<script¬†src=‚Äúhttps://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.js‚ÄĚ></script>

¬†¬†<link¬†href=‚Äúhttps://cdn.dhtmlx.com/gantt/edge/dhtmlxgantt.css‚Ä̬†rel=‚Äústylesheet‚ÄĚ>

 

¬†¬†<style¬†type=‚Äútext/css‚ÄĚ>

    html, body{

      height:100%;

      padding:0px;

      margin:0px;

      overflow: hidden;

    }

  </style>

</head>

<body>

¬†¬†<div¬†id=‚Äúgantt_here‚Ä̬†style=‚Äėwidth:100%;¬†height:100%;‚Äô></div>

¬†¬†<script¬†type=‚Äútext/javascript‚ÄĚ>

    //* 

¬†¬†¬†¬†gantt.config.date_format¬†=¬†‚Äú%Y-%m-%d‚ÄĚ;

    gantt.config.smart_rendering = true;

    gantt.config.smart_scales = true; 

    //*/

¬†¬†¬†¬†gantt.attachEvent(‚ÄúonLoadStart‚ÄĚ,¬†function(){

¬†¬†¬†¬†gantt.message(‚ÄúLoading‚Ķ‚ÄĚ);

  });

¬†¬†gantt.attachEvent(‚ÄúonLoadEnd‚ÄĚ,¬†function(){

¬†¬†¬†¬†gantt.message({text:‚ÄúLoaded¬†"¬†+¬†gantt.getTaskCount()¬†+¬†"¬†tasks,¬†"¬†+¬†gantt.getLinkCount()¬†+¬†"¬†links‚ÄĚ,¬†expire:8*1000});

  });

  gantt.config.min_column_width = 30;

  gantt.config.scale_sheight = 60;

¬†¬†gantt.config.date_scale¬†=¬†‚Äú%d‚ÄĚ;

  gantt.config.subscales = [

¬†¬†¬†¬†{unit:‚Äúmonth‚ÄĚ,¬†step:1,¬†date:"%F,¬†%Y"¬†},

¬†¬†¬†¬†{unit:‚Äúyear‚ÄĚ,¬†step:1,¬†date:"%Y"¬†}

  ];

  gantt.config.row_height = 22;

  gantt.config.static_background = true;

  gantt.config.start_date = new Date(2018, 0, 1);

  gantt.config.end_date = new Date(2019, 0, 1);

¬†¬†gantt.init(‚Äúgantt_here‚ÄĚ);

  gantt.load("/data")

  

  </script>

</body>


#2

Hello Pieter,
We received your message in the support system. Let’s continue our discussion there.