Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: How to reduce PDF generation time  (Read 3469 times)

somanath

  • Newbie
  • *
  • Posts: 3
    • View Profile
How to reduce PDF generation time
« on: November 06, 2017, 08:15:55 am »
First Of all Thank You! for providing such a great library for PDF generation with database linkage.

I am generating PDF report using lime report on embedded target board.
For generation 3 page report it will take 20 to 22 seconds,
For generation 1 page report it will take 12 to 14 seconds.

is there any way to reduce time for PDF generation?

Thanks in advance.
Somanath

Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile
Re: How to reduce PDF generation time
« Reply #1 on: November 06, 2017, 09:20:48 am »
Hi. It's strange, I've never noticed it.
Generating report in other forms is same? i.e. simple preview?
May be the reason is in the database connection?

somanath

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to reduce PDF generation time
« Reply #2 on: November 06, 2017, 11:24:09 am »
Yes! It is due to database.

How can we optimise data retrieving time from database (sqlLite)

is there any option to provide data to lime report in bulk.

in lime report every parameter has separate query so as parameters increase number of queries also increase overall increasing pdf generation time.

there might not be an issue on desktop but in single core embedded target board time taken is much more.
« Last Edit: November 06, 2017, 11:25:47 am by somanath »

Arin Alex

  • Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 1005
    • View Profile
Re: How to reduce PDF generation time
« Reply #3 on: November 06, 2017, 02:58:40 pm »
Hi.
You can use Model or CallbackDatasource to transfer data to limereport.

somanath

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: How to reduce PDF generation time
« Reply #4 on: November 09, 2017, 12:18:09 pm »
Thanks You! Arin Alex for your response.

will you please elaborate "use Model or CallbackDatasource to transfer data to limereport"

I am new to terms Model or CallbackDatasource so if you explain with example or detailed links will be helpful to me to understand.



Subst

  • Sr. Member
  • ****
  • Posts: 450
    • View Profile