Page 1 of 1

using StiJsonToDataSetConverter is very slow

Posted: Wed Mar 12, 2025 3:01 pm
by sobpilot
I am generating a dashboard using data at runtime.

With 3000 records StiJsonToDataSetConverter takes 25 seconds.
With 40,000 records StiJsonToDataSetConverter takes 6 minutes.

Is there any way to speed this up?

Here is the code:

Code: Select all

    console.log('sob-- ~ before readJson ~ dsdb:') //start timing
    let dsdb = Stimulsoft.Base.StiJsonToDataSetConverter.getDataSet(data)
    console.log('sob-- ~ after readJson ~ dsdb:', dsdb) //end timing
    report.regData('db', null, dsdb)

Re: using StiJsonToDataSetConverter is very slow

Posted: Wed Mar 12, 2025 9:01 pm
by Lech Kulikowski
Hello,

Try to use the V2 version StiJsonToDataSetConverterV2.

Thank you.

Re: using StiJsonToDataSetConverter is very slow

Posted: Thu Mar 13, 2025 12:38 pm
by sobpilot
That fixed it, thanks.
A note to other users: Just update Stimulsoft to the latest version and you will get V2 without having to make any code changes.

Re: using StiJsonToDataSetConverter is very slow

Posted: Thu Mar 13, 2025 1:20 pm
by Lech Kulikowski
Hello,

You are welcome.