Mailing List talk@openhack.ru Message #14
From: Tomash Brechko <tomash.brechko@gmail.com>
Subject: Re: Reconnections and mod_perl
Date: Fri, 22 Feb 2008 00:27:03 +0300
To: talk@openhack.ru
On Thu, Feb 21, 2008 at 22:15:09 +0100, Kostas Chatzikokolakis wrote:
> So, based on this, if I use cache from many different parts of my
> application, instead of creating many C::M::F objects with different
> namespaces, it's better to use just one and add the needed prefixes
> myself, to reuse the same connections and avoid opening too many. Isn't it?

Using explicit namespace => 'prefix' is different from adding 'prefix'
by hand: namespace string is not hashed along with the key, thus keys
are distributed among servers differently. But if all parts of your
application agree to use the same approach, then go ahead, hashing
(C::M::F uses CRC32) is fast enough, so additional 16-32 bytes won't
make a noticeable slowdown.


--
   Tomash Brechko
Subscribe (FEED) Subscribe (DIGEST) Subscribe (INDEX) Unsubscribe Mail to Listmaster