KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Cannot install koolreport/export-snappy #3451

Open Giri Rajan opened this topic on on Jul 3 - 8 comments

Giri Rajan commented on Jul 3

We cannot install koolreport/export-snappy , during PDF generation with large datasets (e.g., 50,000 records), CPU usage spikes to 100%. We need a solution that minimizes CPU usage during such operations."

Sebastian Morales commented on Jul 3

We don't have any package named like that, only koolreport/export and koolreport/cloudexport. Let us know which one you bought and is having issues with.

Giri Rajan commented on Jul 3

Even with 5000 records during pdf generation the cpu usage hits 100%. we are trying to use snappy package but it could error below Could not find a matching version of package koolreport/export-snappy. Check the package spelling, your version constraint and that the package
is available in a stability which matches your minimum-stability (stable).

Sebastian Morales commented 6 days ago

Do you only use tables in your PDF export and if you do do you use many css styles for your PDF tables?

Giri Rajan commented 6 days ago

Yes i am using only tables in my PDF while checking sample data 50000 record with sample export its consuming CPU 100%

Giri Rajan commented 3 days ago

When I use CloudExport, PDF generation takes around 10 to 12 minutes even for just 50 sample records. below is my codde

$settings = [

// 'useLocalTempFolder' => true,
"pageWaiting" => "networkidle2", //load, domcontentloaded, networkidle0, networkidle2

"viewPath" => base_path("app/Reports/Jasper"), ];

 $pdfOption =[
          "format" => "A4",
        "orientation" => "portrait"
        ]; 

$reportData->run(); $reportData->cloudExport("HimesReportLarge") ->chromeHeadlessio("token") ->settings($settings) ->pdf($pdfOption) ->toBrowser("MyReport.pdf");

Sebastian Morales commented 3 days ago

We have developed a new package for faster PDF export, which supports only tables and text formats. Pls send an email to support@koolreport.com and mention this thread. We will send you a version to test if the package increases speed for your case. Rgds,

Giri Rajan commented 3 days ago

Hi Team,

          When I use the local export method, the CPU usage spikes to 100% for large datasets. After switching to cloud export, the CPU usage is significantly lower. However, for large volumes like 50,000 records, cloud export fails due to a timeout error after 30 to 60 seconds. We need a solution that allows us to download large records efficiently with minimal CPU usage.
Sebastian Morales commented 3 days ago

We have sent you a new package for faster PDF export. Pls test its working and let us know the result.

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
None yet

None