Solved

How to increase perfomence of tcpdf

Posted on 2011-09-07
3
387 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 108

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 108

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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…

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now