Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Insert BLOB into DB without using system memory, but using filehandle.

by talexb (Chancellor)
on Sep 18, 2009 at 16:10 UTC ( [id://796154]=note: print w/replies, xml ) Need Help??


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.

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

  • Comment on Re: Insert BLOB into DB without using system memory, but using filehandle.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://796154]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (3)
As of 2024-04-25 19:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found