Solved

How to increase perfomence of tcpdf

Posted on 2011-09-07
3
489 Views
Last Modified: 2014-08-21
I am using tcpdf for generating pdf reports(In Php).How can i increase perfomence of tcpdf?.If report contains large amount of data with hundreads of pages then the report itself is not generating.How can i overcome this issue.Is any setting to do on php.ini file or any other settings to resolve this issue??
0
Comment
Question by:vivekpv10
  • 2
3 Comments
 
LVL 27

Expert Comment

by:Lukasz Chmielewski
ID: 36494811
I doubt there is some simple way,
http://stackoverflow.com/questions/6423712/tcpdf-optimize-performance

the most of the performance relies on the data extraction, so you would have to split your reports into separate chunks of data.
0
 
LVL 110

Accepted Solution

by:
Ray Paseur earned 500 total points
ID: 36497764
Have you tried benchmarking against FPDF?  I have always found FPDF to be very fast, so fast sometimes that I thought it had not run, until I discovered a complete PDF file had instantly appeared in my directory!

But that aside, I agree with Roads_Roads about data extraction.  In your case that is probably the data base.  Make sure you have indexes on every column used in JOIN, WHERE, ORDER, and GROUP clauses.  Use EXPLAIN SELECT to see what your queries are doing.  Avoid SELECT * especially if you have any large columns.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 40276240
@vivekpv10:  You are expected to explain the bad grade.  
A C grade should be awarded only after the asker has replied to all expert comments, provided all requested information, tried all suggested solutions, given the experts ample time to reply, and received clarification about the answer given. The asker must justify giving a C grade and give the experts an opportunity to improve it.
For your reference, here are the EE grading guidelines.
http://support.experts-exchange.com/customer/portal/articles/481419
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question