export = FCSV.generate(:col_sep => l(:general_csv_separator)) do |csv|
..
end
format.csv {send_data(export), :type => 'text/csv;header=present',:filename => 'export.csv') }
大量のデータをエクスポートしたいのですが、深刻なパフォーマンスの問題が発生し、メモリがいっぱいになりました。csv をエクスポートするより良い方法はありますか?