Need a special offer?Find out if your project fits.
+

Chrome issue when updating large JSON data

Answered
Felix Tan asked on December 22, 2022

Hi,

We are facing an issue with Chrome when we retrieving large data via POST request. It seems that chrome have limited the data size of response POST data. We have tried to return the data with different datatype such as JSON and text, but both of them didn't work. FYI, the data consist or 1.16 million records, the details can be found in file attached.
We have tested with same data/scenario in Firefox and it has no issue.
Do your team have any solution on this problem? or is there any alternative that is provide by Flexmonster on such cases? We would like to update the report (currently using pivot.setReport() ) with a compiled data from our php server.

Regards,
Felix

Attachments:
report.pdf

5 answers

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster December 22, 2022

Hello, Felix!
 
Thank you for contacting us.
 
Our team is wondering if it is possible to return the data with GET request from your server.
This way, you could load the JSON data to Flexmonster using our filename property, where the data load is already optimized under the hood.
Here is an example of loading data from a remote JSON file using filename: https://jsfiddle.net/flexmonster/zh6x18r5/.
 
Please let us know if such an approach would work for your case.
Looking forward to hearing from you.
 
Regards,
Solomiia

Public
Felix Tan December 23, 2022

Hello Solomiia,

Thanks for the reply.

This would be one of the solution of our issue, but this would bring out some concern in terms of memory and performance. 

For your information, the JSON data we retrieve is coming from our database before being compiled and filtered through php. Hence the data we retrieve is more dynamic and fresh data. The approach you recommend would consume more performance and storage on creating and storing a JSON file for every retrieval.

Hope to get more advice from your team, meanwhile we will test on the approach you recommend. Thanks

Regards,
Felix

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster December 23, 2022

Hello, Felix!

Thank you for getting back to us.

Kindly note that you don't need to save your data as a .json file to open it with the filename property. The filename property can lead to the script, which generates the JSON dynamically.

Hope it helps.

Kind regards,
Solomiia

Public
Felix Tan December 27, 2022

Hello Solomiia,

We have tried your suggestion but flexmonster seems cannot handle it as well. This only happens in Chrome but not Firefox too.

Please refer to the error attached from flexmonster.

Please provide us email to send the source URL for your reference if necessary.

Regards,
Felix

Attachments:
flexmonster_error.PNG

Public
Solomiia Andrusiv Solomiia Andrusiv Flexmonster December 27, 2022

Hello, Felix!

Thank you for the feedback.

Our customer service manager will contact you via email soon.
Please, provide them with the JSON data on which the described behavior is reproducible. This will help us greatly to continue the investigation.

Looking forward to your response.

Regards,
Solomiia

Please login or Register to Submit Answer