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

How to speed up report loading

Answered
uchivoitachi asked on April 23, 2021

Dear Team,
 
Would you please kindly suggest how to speed up data loading?
 
For example,there're 2000 rows data pending to load to flexmonster,after loaded,I need to change one field's value of all rows,I choose to use API Call flexmonster().setReport(newReportObj),it act as like to reload all the data again.
[
{"name1":"Sam1","age":"15",...},
{"name2":"Sam2","age":"15",...},
{"name3":"Sam3","age":"15",...},
...
{"name1000":"Sam1000","age":"15",...},
]
 
change to below than reload via API Call flexmonster().setReport(newReportData):
 
[
{"name1":"Peter1","age":"15",...},
{"name2":"Peter2","age":"15",...},
{"name3":"Peter3","age":"15",...},
...
{"name1000":"Peter1000","age":"15",...},
]
 
does it have to reload via setReport(),or updateData() ... please suggest,thanks.
 

5 answers

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster April 23, 2021

Hi!
 
Thank you for posting your question.
 
To update your JSON data at runtime, we'd suggest using the updateData() API call with the partial option enabled – this is currently the recommended approach for use cases like yours.
 
See the 4th example on updateData()'s documentation page for a step-by-step explanation of how to achieve partial JSON data update.
 
We've also prepared a quick sample illustrating this approach: https://jsfiddle.net/flexmonster/xgzm1w2k/.
 
Please let us know if this helps.
 
Best regards,
Mykhailo

Public
uchivoitachi April 27, 2021

Thanks for the response,I've already use API Call updateData() with partial=true,and willing to try to use it for the whole data reload,will let you know what happen,thanks.

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster April 27, 2021

Hi!
 
Thank you for the heads up, we'll be looking forward to updates from you.
 
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster May 5, 2021

Hi,
 
Hope you're having a great day!
 
Just checking whether your updateData() testing was successful. Does it suit your use case?
 
We'd be happy to hear your feedback.
 
Best regards,
Mykhailo

Public
Mykhailo Halaida Mykhailo Halaida Flexmonster May 12, 2021

Hi!
 
How are you?
 
We were wondering if you could get updateData() to work. Is there still anything we can help you with?
 
Looking forward to your response.
 
Regards,
Mykhailo

Please login or Register to Submit Answer