Get Free Trial

How to run a huge data set?

Answered
gözde asked on March 1, 2021

Hello there,
 
I have a big data set. I set the data using “setReport()” function. But I can`t run the data in flexmonster. Flexmonster doesn`t give any reaction. How can I handle this issue?
 
Thanks

 

5 answers

Public
Milena Pechura Milena Pechura Flexmonster March 2, 2021

Hello, Gözde,
 
Thank you for posting to our forum.
 
First of all, our team would like to provide you with some explanations on setting the data via the setReport() API call. We assume it may help to solve the issue.
Please follow the steps below: 
1) Create a report object with the data source specified:

var report = {
dataSource: {
filename: "http://cdn.flexmonster.com/data/data.csv"
}
}

2) Call the setReport method with the report object as a parameter:

pivot.setReport(report); 

 
Here is the example for your reference: http://jsfiddle.net/flexmonster/L0n1r933/.
Please inform us if it helped.
 
Secondly, could you please let us know the size of your data? So we can provide you with the most relevant recommendations for your data source.
 
Looking forward to hearing from you.
 
Best regards,
Milena

Public
gözde March 4, 2021

I use the setReport method in other reports. I have no problem with them. I have problem with reports that work with big data.
I’m sharing an example of a report that works with big data.
 
Thanks
 

Attachments:
report_example.zip

Public
Milena Pechura Milena Pechura Flexmonster March 4, 2021

Hi, Gözde,
 
Thank you for providing the file with the report.
 
Our team has investigated your report and found the cause of the issue. The JSON data specified in the data property of the dataSource object significantly increases the report size. As Flexmonster needs to process the report of that size, the component can give no response for some time.
 
Instead of the data, we suggest using the filename property – the URL to the file or the server-side script which generates data.
Please use the following code snippet for your reference: 

{
    dataSource: {
        /* Path to the local file or to the script which returns data */
        filename: "data.json"
    }
}

 
With this approach, the data is loaded separately from the report. Comparing to parsing the JSON from the report, this is a more optimized solution for big data. 
 
Let us know if our suggestion helped.
Waiting for your response.
 
Kind regards,
Milena

Public
Milena Pechura Milena Pechura Flexmonster March 11, 2021

Hello, Gözde,
 
We were wondering whether our suggestion helped.
Could you please let us know if everything works fine now?
 
Our team will be glad to hear your feedback.
 
Best regards,
Milena

Public
Milena Pechura Milena Pechura Flexmonster March 18, 2021

Hi, Gözde,
 
We would like to kindly take an interest in whether our suggestion worked for your case.
Did the filename property help to resolve the issue?
 
Looking forward to your response.
 
Kind regards,
Milena

Please login or Register to Submit Answer