http://www.perlmonks.org?node_id=1018815


in reply to out of memory

Bulk-loading is nothing new. Most SQL clients know how to read a file directly and stuff it into a database row ... and to deal with blobs much larger than anyone's memory-size. You don't need to attempt to do this "this way." It's not a new requirement ... you're just barking up the wrong tree right now.