diff --git a/src/DataStore/src/Middleware/Handler/DownloadCsvHandler.php b/src/DataStore/src/Middleware/Handler/DownloadCsvHandler.php
index <HASH>..<HASH> 100644
--- a/src/DataStore/src/Middleware/Handler/DownloadCsvHandler.php
+++ b/src/DataStore/src/Middleware/Handler/DownloadCsvHandler.php
@@ -21,7 +21,7 @@ class DownloadCsvHandler extends AbstractHandler
     const DELIMITER = ',';
     const ENCLOSURE = '"';
     const ESCAPE_CHAR = '\\';
-    const LIMIT = 5000;
+    const LIMIT = 8000;
 
     /**
      * @inheritDoc
@@ -54,7 +54,7 @@ class DownloadCsvHandler extends AbstractHandler
         $rqlQuery = $request->getAttribute('rqlQueryObject');
 
         // create csv file
-        $file = fopen('php://memory', 'w');
+        $file = fopen('php://temp', 'w');
 
         $offset = 0;
Update DownloadCsvHandler for export large files