Flag module optimization

Events happening in the community are now at Drupal community events on www.drupal.org.
lassekt's picture

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

podarok's picture

Do You have any benchmarks about topic itself?


Andriy Podanenko
web: http://druler.com

None, I haven't been able to

lassekt's picture

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

greggles's picture

Just speculating if there are any other solutions out there.

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.

High performance

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: