#650 Make ejabberdsql2prosody (and likely other migrators) process the input sequentially
What steps will reproduce the problem?
1. Have a big (~500 MiB) Ejabberd SQL dump
2. Try to migrate it with ejabberdsql2prosody.lua
What is the expected output? What do you see instead?
The script OOMs without having written any file after having used many gigabytes of memory.
Instead, by interleaving parsing and dumping it should be able to keep memory usage very low and eventually finish.
What version of the product are you using? On what operating system?
Trunk as of 7316:62d533535334, but also 0.10 and 0.9 have the same issue, on Debian OldStable.