Skip to content

Saving 40K+ lines of data ends with 504 Gateway Timeout #4621

@thekrotek

Description

@thekrotek

I use this library to export data from my database. Everything works fine if I try to export not more than 10-15K entries. Ends with 504 error when I export large sets of data (about 30-40K entries).

To fix this I've tried using caching with Redis and splitting main array into chunks each to be saved in a separate file. None helped.

What did help is exporting some table fields, not all of them. For example, if my table has like 20 fields, DB export will return 504 error. If I select only 5-6 fields, everything works pretty fine and surprisingly fast.

Tried to save as XLSX and CSV with the same result.

PHP 8.3.16
PHPSpreadsheet 5.0.0
Ubuntu 22.04.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions