On Nov 11, 2007, at 1:13, Rakesh Rajan wrote:
Considering the above requirements, what would be best way to
use memcached for this ? Some ideas that I had
- Use bucketing in memcache. i.e for a person A , we would
have multiple entries for his/her friends in memcached corresponding
to 1-25, 26-50 ( example ) ( Assuming number for friends shown in UI
~25 and ~200-300 friends on average )
- Problem I see in this method, is ordering the data, like
ordering by lastname and/or last login etc
Just try different things.
Thing to note is that you can't list the contents from memcached, so
if you do memoize individual relationships with distinct keys, you'll
still need to produce a list a different way.
--
Dustin Sallings