Use git-like hashed directories

Bug #769757 reported by François Marier
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Libravatar (obsolete)
Confirmed
Low
Unassigned

Bug Description

To avoid having too many files in the same directory, we should do what git does with its "objects" and pull the first two characters of the hash into a directory.

A file like this:

   /avatar/abcd1234

would therefore be stored as:

  /avatar/ab/cd1234

Tags: storage
Revision history for this message
Andrew Ruthven (andrew-etc) wrote :

You could also use:

  /avatar/ab/abcd1234

Which might make things a little bit easier, especially if you need to insert another level of hashing later.

Changed in libravatar:
importance: Medium → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.