Fix OutOfMemoryError on dumping a large query result 8)