數(shù)據(jù)導(dǎo)出系統(tǒng)
不要直接將代碼復(fù)制到項目中,在后臺插件市場安裝
xlswriter
擴展,未安裝將使用 phpoffice/phpspreadsheet
導(dǎo)出,數(shù)據(jù)量大會內(nèi)存溢出config/plugin/webman/redis-queue/process.php
<?php
return [
...
// 增加以下配置
'consumer_export' => [
'handler' => Webman\RedisQueue\Process\Consumer::class,
'count' => 5, // 可以設(shè)置多進程同時消費
'constructor' => [
// 消費者類目錄
'consumer_dir' => base_path() . '/plugin/export/app/queue'
]
],
];