Recursive lookups ?
Steven Grimm
sgrimm at facebook.com
Wed Feb 21 16:55:57 UTC 2007
That would only work if you had all your data on a single memcached
instance. As soon as you start spreading your data across multiple
servers, there's no avoiding the network round-trips, at least not
without changing the way the clients determine which server holds a key.
-Steve
NTPT wrote:
> Hi
>
> Is there a plan to support "recursive loockups" ie set or retrieve keys based on value of another key ?
>
> ie search a key (in pseudocode)
>
> get( "something_{subkey_1}_somethingelse_{subkey_2}")
>
> will result like this.
>
> get("something_".get("subkey_1")."_somethingelse_".get("subkey_2"))
>
>
> It is useful for simulating a multidimensional arrays for example or for caching a pointers to data.
>
> Yes, I know that it can be done by application logic, but for simulating a multidimensional array you need a n+1 single loockups...
>
>
>
> Please execuse my wrong english.
>
>
>
>
More information about the memcached
mailing list