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
Subject Author Posted

Split words into caracters

Larry April 02, 2013 05:41AM

Re: Split words into caracters

Reinis Rozitis April 02, 2013 05:48AM

Re: Split words into caracters

Larry April 02, 2013 10:47AM

Re: Split words into caracters

Reinis Rozitis April 02, 2013 11:40AM

Re: Split words into caracters

Larry April 02, 2013 01:11PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 105
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready