>From Matej's previous email:

e.g. int hash = computeHash(sessionId) % 100;
String folder = "" + hash + "/" + sessionId;

That's where I got the 100 thing.  So, what we're talking about here
is potentially 10k "buckets" for session store folders.  There would
be  the potential for 10k top-level folders.  Perhaps smaller sites
would wish to not have the potential for 10k folders?  I don't know.
A smallish site might just want to make the divisor 1, if they don't
have many users.  The folders won't be removed even after all of their
subfolders are removed, right?

On Thu, Sep 18, 2008 at 3:35 AM, Uwe Schäfer <[EMAIL PROTECTED]> wrote:
> James Carman schrieb:
>
> hi james
>
>> Do you think that modulus number should be customizable?  So, for now,
>> you mod your number of users by 100.  But, for larger sites, they
>> might want to mod it by 1000 or 256 or whatever.
>
> actually, the first level dir is created from hash%10000 and the second from
> hash/10000%10000, while the third level dir is the sessionId itself. i do
> not see a need for more, do you?
>
> why should anyone care of the inner structure of the filestore, as long as
> it cannot lead to problems?
>
> cu uwe
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to