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:
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.
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.
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!
Do you know if creating the PDF or downloading it takes most of the time? How big is the file that is created?