On Thu, Jul 24, 2008 at 7:31 AM, Mike Cochrane <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I've started looking at what can/should go into memcache to reduce the
> load on the database and increase the responsiveness of the site.
>
> Was thinking of having options in config for what to store like:
>     Most recent notices
>     Subscriber lists
>     IDs of recent notices per user
> Then you can enable/disable caching of certain bits depending on the
> amount of ram you have in your memcache servers.
>
> I looked at putting a wrapper around DB_Object stuff but not sure how
> clean that's going to go in. I think there may be cleaner ways to do it.
> Evan I'm sure you've probably got a view on how you'd like it to work.
> Am I way off what you intended or not?
>
> I'll be doing some maths on it later tonight to get an idea of the
> amount of ram needed to store different stuff.
>
> What are other's thoughts on memcache use in Laconica? Has anyone else
> used memcache on live projects before?

memcache shouldn't be the only option. it should be possible to also
use apc/xcache shared-memory caches — they would be more suitable for
small (1000 users) installations.

Anyway, I usually add caches using the following scenario:
1) Profile app using XDebug
2) Analyze bottlenecks
3) Optimize code and/or sql
4) Profile again
5) If there is no any meaningful optimization left, introduce
appropriate caching


-- 
Alexey Zakhlestin
http://blog.milkfarmsoft.com/
_______________________________________________
Laconica-dev mailing list
[email protected]
http://mail.laconi.ca/mailman/listinfo/laconica-dev

Reply via email to