Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re: Perl solution for storage of large number of small files

by BrowserUk (Patriarch)
on Apr 30, 2007 at 14:55 UTC ( #612789=note: print w/replies, xml ) Need Help??

in reply to Perl solution for storage of large number of small files

Be very wary of the DB hammer wielders treating your problem as a nail. In most cases, RDBMSs have fairly small limits on the size (eg.8kb) of individual tuples that can be stored in-line. When they exceed this size, they are moved into out-of-line storage with a pointer substituted into the main table.

Out-of-line storage often as not translates into "the file system" in some fashion or other. Given the size of your entities, it means that putting them into an RDBMS will essentially just add the overhead of the RDBMS to your accesses and you will still carry the overhead of the filesystem. The big difference is that you will not have any control over where and how your data is stored within the filesystem and so will lose the opportunities for optimisations based upon your knowledge of that data and it's location.

For a little more on this see the description of PostGreSQL's TOAST.

Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re: Perl solution for storage of large number of small files

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (5)
As of 2022-08-08 06:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found