Re: Ansel::listGalleries()
Chuck Hagenbuch <[email protected]>
| Newsgroups | gmane.comp.horde.ansel |
|---|---|
| Message-ID | <[email protected]> |
Quoting Ben Chavet <[email protected]>: > I started to mess with this & ran into a snag. Images are stored in > the vfs in a directory structure that reflects the gallery tree. If > we were to move a > gallery, we'd have to move the images in the vfs, too. > > This, plus the idea of making an image "bucket" with pointers makes me > think we should re-evaluate the vfs directory structure. I though of > just having everything in the .horde/ansel directory, but that would > be a lot of data in one directory. Another thought was to have > .horde/ansel/full, > .horde/ansel/thumb, and .horde/ansel/screen directories. > > Any other thoughts? As Heath suggested, hashing is a good idea. I'd do it on the first character of the datatree_id that the image gets, which will be a hex value (a to f). That's 16 buckets; if necessary we could then hash those buckets on the 2nd character of the name, which would be 256, which is probably enough. :) -chuck -- "Regard my poor demoralized mule!" - Juan Valdez -- ansel mailing list - Join the hunt: http://horde.org/bounties/#ansel Frequently Asked Questions: http://horde.org/faq/ To unsubscribe, mail: [email protected]