sdw

Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • in reply to: Warning: Unresponsive script when loading 2,000 records #94817
    sdw
    Participant

    Thank you for the reply Tony.I was able to fix this problem.

    200-300 records load just fine. It starts to hit the tiomeout

    depending on the user after about 1,500 records.

    I finally figured out how to add the records all at once as you suggested. This did help

    quite a bit, with about a 30% increase in performance. Unfortunately the timeout was

    still being triggered on some machines. And since there could be 4,000+ records at

    some points, that wouldn't work for me.

    So what I did was instead of sending down 1 large javascript call, I broke each row addition

    into its own javascript call and then flushed the browser cache. This way each call is only a fraction

    of a second and the timeout will never be triggered even if you loaded 50,000 rows. This is

    the relevent code:

    sdw
    Participant

    Bump.

    sdw
    Participant

    Thank you for the fast response. I removed the comma.

    I am a little confused as how to load the data all at once, I am assuming you mean with one call to 'addRowData' instead

    of one at a time with a for loop right?

    I looked at the link you sent me and it appears that I have the data object in the specified format of

    [{name1:value1,name2: value2…}, {name1:value1,name2: value2…} ]

    Here is what is in the view source of my page:

    .............................2,000 repetitions of this....................

Viewing 3 replies - 1 through 3 (of 3 total)

Stay connected with us in your favorite flavor!