We use the filesystem for storage of our Paperclip attachments. I'm thinking about how this scales in terms of the directory naming scheme, etc. for these attachments. If I set the :path attribute to something like:
/data/assets/:class/:attachment/:id/:style.:extension
then, as the records for that class grow, we'll start getting a lot of directories within the directory where it is named by ID. I'm wondering what folks have used done in order to partition this so that you don't wind up with say tens of thousands or hundreds of thousands, or more subdirectories within a single directory? Are you just putting a dynamic calculation into that or? Other approaches?