From 50392138408ab4c879dedcdbb4149291b608d1c4 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 15 Jan 2015 09:07:53 +0530 Subject: [PATCH] set csv compression to optimal speed/size --- app/jobs/regular/export_csv_file.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb index 82cbc1b70de..b0349bbdd05 100644 --- a/app/jobs/regular/export_csv_file.rb +++ b/app/jobs/regular/export_csv_file.rb @@ -278,7 +278,7 @@ module Jobs end end # compress CSV file - `gzip --best #{File.expand_path("#{UserExport.base_directory}/#{@file_name}", __FILE__)}` + `gzip -5 #{File.expand_path("#{UserExport.base_directory}/#{@file_name}", __FILE__)}` end def notify_user