Posted by lassekt on August 29, 2012 at 10:43am
I am utilizing the flag module on a site for multiple purposes; bookmarks, likes, favorites etc. Because flags are stored directly into the database I am a bit worried about running down the database. Is it possible to store flags in memcache or similar and then process them on cron?(as the VotingAPI allows). Any suggestions welcome.
Note: I am planing to run Varnish with ESI(loggedin users), memcache, nginx and CDN. Also I considering using Disqus module for comments (to help offload the database).
Comments
Do You have ant benchmarks
Do You have any benchmarks about topic itself?
Andriy Podanenko
web: http://druler.com
None, I haven't been able to
None, I haven't been able to find anything. Just speculating if there are any other solutions out there.
If you have flag 'like' buttons on all comments and nodes, your database will quickly get flooded I reckon. And thats a problem:-).
Just speculating if there are
I suggest building the site first and then optimizing if your load tests determine that it's necessary. I believe flag is fairly well optimized for the most basic use-cases which is what it sounds like you have. The only experience I've had where it performs badly is a View filtered by a flag that also has a field in the view to flag the content, but it doesn't sound like you'll need that.
knaddison blog | Morris Animal Foundation