On Sep 18, 1:19 am, Difei Zhao <[EMAIL PROTECTED]>
wrote:
>   There is a new plugin for memcached query cache, I was hoping it will
> bring some performance boost for my application, so I write a simple
> ruby program to benchmark normal memcached performance, the result is
> very frustrating:
...
>     while line = f.gets
>       str, num = line.split(' ')
>       CACHE[str] = num
>     end
...
>   So, my question is, am I missing something? This will be even slower
> than normal sql insert/select I guess.

I don't think repeated writes with no reads is a very good performance
test for memcached. Test reading instead. I'd test by populating the
cache to something that would look like steady state (i.e. you don't
want all your data in cache, because that's unrealistic, but you don't
want to start empty), then starting the clock and doing lots of reads,
some of which will be cache misses and have to go to DB.

Kevin

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to