Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: (OT) should i limit number of files in a directory

by Illuminatus (Curate)
on Sep 11, 2008 at 16:47 UTC ( [id://710686]=note: print w/replies, xml ) Need Help??


in reply to Re^2: (OT) should i limit number of files in a directory
in thread (OT) should i limit number of files in a directory

I still think merlyn is right -- a db is the way to go. blobs are not the most elegant/efficient mechanisms, but they are very easy to find based on a key. As long as your blobs stay below about 1MB, mysql or postgres should be fine. Trying to find a single file in a directory hierarchy of millions of entries is going to suffer significantly worse performance.
  • Comment on Re^3: (OT) should i limit number of files in a directory

Replies are listed 'Best First'.
Re^4: (OT) should i limit number of files in a directory
by leocharre (Priest) on Sep 11, 2008 at 17:39 UTC
    What about a berkeley db ? That seems like it would be good backend here?
      From everything I have heard, BerkeleyDB would probably be fine as well. I did not mention it because I have not personally used it. I have used both mysql and postgres, so I feel more comfortable recommending them. BerkeleyDB is fast, but has a couple of drawbacks. I don't believe it has network access, so if you want to access the database from a different system, it might not be the best choice.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-23 11:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found