• Home
  • weblog
  • 2006
  • 07
  • 05
  • Martijn Pieters: Linktally, ranking popular pages in a CMS

Martijn Pieters: Linktally, ranking popular pages in a CMSΒΆ

Tags: europython, europython2006, plone

Updating a counter in the CMS on every page access isn't generally a good idea. CMS datasources are normally optimised for read access, so writing on every read HURTS. It doesn't scale. And it doesn't scale to clustering.

The idea is to reuse the server logs (apache). Linktally doesn't deliver exact results, but it is simple, scalable, content oriented, CMS-independent. It doesn't deliver exact counts, but it provides a ranking, which one is the most popular.

The architecture is that the logs are shoved through Linktally which stores it in a simple database. Linktally grabs its configuration from a plugin in the CMS, that same plugin also grabs the results from the database. What linktally grabs from the CMS is actually a list of links to look for in the logs.

The CMS can query linktally for the x most popular pages. Or the x most popular news items. Or...

Linktally 0.1 has just been released. This version only supports apache combined logfiles. And there's only a zope/cmf plugin at the moment. The plugin is real easy to write, so he hopes more people will add plugins.

vanrees.org logo

Reinout van Rees

  • Weblog
  • Over mij (NL)
  • About me (EN)
  • Ligfiets (NL)
  • Klussen en doe-het-zelven (NL)
  • Eifelburgenbahn (model railway)
  • Videos
  • Preken (NL)
  • PhD (EN)

Weblog feeds

Most of my website content is in my weblog. You can keep up to date by subscribing to the automatic feeds (for instance with Newsblur):

  • Atom feed of my full weblog
  • Atom feed, filtered to just the Python/Django content.
Contact: reinout@vanrees.org
Copyright © Reinout van Rees (unless otherwise indicated)
Text: CC BY-NC-SA 4.0, Images/video: CC BY-SA 4.0