PDF Download taking too much time

0
Hi Reader,   We have implemented the functionality of generating and downloading PDF and CSV using inbuilt functionality. CSV functionality is working fine but PDF functionality is taking too much of time to download if we have large data.   How can I reduce the time for downloading ? Please provide some suggestions or recommend any other marketplace widget for downloading which is more efficient.   Thanks and Regards, Harshraj Singh    
asked
2 answers
0

Hi Harshraj,

If the built-in functionality for generating and downloading PDFs is taking too much time to download for large amounts of data, there are a few things you can try to improve the performance:

  1. Optimize your data query: Make sure that you are only selecting the data that you need for the PDF report. Avoid selecting large amounts of data that are not necessary for the report, as this can slow down the report generation and download time.

  2. Use pagination or lazy loading: Consider using pagination or lazy loading to reduce the amount of data that needs to be loaded into memory at once. This can help to improve the performance and reduce the download time for large reports.

  3. Consider asynchronous processing: If the report generation is taking too long to complete, you may want to consider using asynchronous processing to generate the report in the background while the user continues to use the app. Once the report is ready, you can notify the user and provide a download link to retrieve the report.

Implementing these optimizations can help to improve the performance and reduce the download time for large PDF reports. 

If this helps you, please upvote and mark as answered!

answered
0

Do you know if creating the PDF or downloading it takes most of the time? How big is the file that is created?

answered