in reply to Insert BLOB into DB without using system memory, but using filehandle.
- This I read the content into Memory, what if the file is 2G? I will hog the memory, am I not? Is there anyway I do it with filehandle, and some how stream it? Would DBI or DBD::Oracle let me do it?
You might hog memory -- but I'm sure the operating system will do something intelligent about that.
If you're worried about 2G files (I'm assuming that's the same as the amount of physical RAM you have), perhaps you can a) limit the size of the file you accept, b) get more memory, c) make your cache larger. In any case, I would Try it And See .. a 2G file is pretty large lump of stuff to be moving around -- I assume you have sufficient disk space and backup capacity to handle all that.
|
---|
In Section
Seekers of Perl Wisdom