using StiJsonToDataSetConverter is very slow

Stimulsoft Reports.WEB discussion
Post Reply
sobpilot
Posts: 3
Joined: Tue Jan 28, 2020 3:35 pm

using StiJsonToDataSetConverter is very slow

Post 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)
Lech Kulikowski
Posts: 7122
Joined: Tue Mar 20, 2018 5:34 am

Re: using StiJsonToDataSetConverter is very slow

Post by Lech Kulikowski »

Hello,

Try to use the V2 version StiJsonToDataSetConverterV2.

Thank you.
sobpilot
Posts: 3
Joined: Tue Jan 28, 2020 3:35 pm

Re: using StiJsonToDataSetConverter is very slow

Post 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.
Lech Kulikowski
Posts: 7122
Joined: Tue Mar 20, 2018 5:34 am

Re: using StiJsonToDataSetConverter is very slow

Post by Lech Kulikowski »

Hello,

You are welcome.
Post Reply