Function to disable MySQL buffering for large exports

This commit is contained in:
Alexandre Alapetite
2016-11-15 21:38:18 +01:00
parent 8d3d2a7d7f
commit 568b737b6c
2 changed files with 8 additions and 0 deletions

View File

@@ -531,6 +531,8 @@ class FreshRSS_importExport_Controller extends Minz_ActionController {
$this->entryDAO = FreshRSS_Factory::createEntryDao($username);
$this->feedDAO = FreshRSS_Factory::createFeedDao($username);
$this->entryDAO->disableBuffering();
if ($export_feeds === true) {
//All feeds
$export_feeds = $this->feedDAO->listFeedsIds();