Home > Article > Backend Development > Export millions of data to csv with multiple processes in one minute and upload to oss
This article brings you relevant knowledge about PHP. It mainly introduces how to export millions of data to csv and upload it to oss in more than one minute. Friends who are interested can take a look. ,I hope everyone has to help.
After testing more than 500,000 data, each queue in the batch queue is assigned 50,000 pieces of data to process, and a process is completed It takes less than a minute. How fast this method is depends on how many consumers and processes the server can start. When I tested, I used the automatic strategy, and the maximum was 8 consumers executing at the same time.
Recommended study: "laravel video tutorial"
The above is the detailed content of Export millions of data to csv with multiple processes in one minute and upload to oss. For more information, please follow other related articles on the PHP Chinese website!