r/PHPhelp • u/Saitama2042 • Jul 24 '25
Need help to export large Data
Hi,
For one of our applications, we need to export large amounts of data from DB to a CSV file. About 2.5 M records in the DB table. At the csv file we need to dump 27 columns. We need to join about 7 tables.
We will use a job for exporting and after completion we shall send email notification to the user.
We are using Laravel 10 , my question is - can a CSV file hold 2.5M data? Even dump them, will the file be open able?
What will be the appropriate solution?
Thanks
5
Upvotes
View all comments
Show parent comment
0
u/Saitama2042 Jul 24 '25
Well, it is my doubt that a large file may not open. I am using Ubuntu and have WPS for CSV file opening. I remember I was trying to open a file, about 200mb in size, took too much time to open and almost my PC got hanged. Besides I was not able to work on that file due to large Data.
That's why I am asking.