Solved

How to increase perfomence of tcpdf

Posted on 2011-09-07
3
526 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

This script checks a path to see if a folder exists. If the folder does exist you will get output "The folder has previously been created. No action taken" If not it will create the folder. Then adds one user modify permission to the folder. It …
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.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

705 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