Welcome! Log In Create A New Profile

Advanced

Split words into caracters

April 02, 2013 05:41AM
Hi !

I don't know if it is the right way to go, and I hope to hear from you if it is not.

My concern is about the selection of a file traversing a tree. I have a bunch of hashed directories (dozens of millions) on different servers.
As for performance reasons, I would like to avoid having to many sub-directories in the same directory.

I would rather have this scheme : 1234/5678/90AB/CDEF/1234/5678/90AB/CDEF/myfile
It would help proxying to the right server and so on.

Will the traverse be fast enought ? Every directory is approx 100kb heavy (really light).


But other than openresty, i didn't see any implementation inside nginx to split any word or cookie. C is faster than lua, so it would be a good bet. Well, I think.

What is your word on it ?

Thanks !

Larry
SubjectAuthorPosted

Split words into caracters

LarryApril 02, 2013 05:41AM

Re: Split words into caracters

Reinis RozitisApril 02, 2013 05:48AM

Re: Split words into caracters

LarryApril 02, 2013 10:47AM

Re: Split words into caracters

Reinis RozitisApril 02, 2013 11:40AM

Re: Split words into caracters

LarryApril 02, 2013 01:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 57
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 156 on March 20, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready