If your use case is streaming and the files are big you might be better off serializing with disk_log, although you won't get any compression that way. <span></span><br><br>On Monday, June 18, 2012, Max Lapshin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I believe, that my way is fastest: import CSV once by reading it in<br>
chunks and store it serialized with file:write_file(Path,<br>
erlang:term_to_binary(Rows, [compressed]))<br>
<br>
I've promised to fix benchmark and I remember about it.<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'erlang-questions@erlang.org')">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote>