Forum


Replies: 7   Views: 2559
Wordfragment in table cell significantly slows performance
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by admin  · 10-01-2018 - 09:01

Hello,

The dev team has tests with more than 5000 rows in a single table, a lof of them with WordFragments and the result is very fast. We recommend you to check if your server is configured correctly or it can be optimized, maybe if you are generating too many objects it's running out of memory (or using swap memory) or any other problem (buffer limits, not using an opcode...). Using Xdebug could be helpful to get the source of the problem.

Anyway, about your question: using a Premium license, DOCXCustomizer can change content styles on-the-fly, so you could generate the table using plain strings and then use DOCXCustomizer to change styles using DOCXPath queries. We recommend you to check the documentation and the included samples.

Regards.