joindin/joindin-api — pull request #57 by richsage (2014-03-21 14:21:27+00:00)
Title: Cache counts of event comments, talks and tracks

This avoids potentially expensive subselects when retrieving event information. I've added the following fields to the `events` table:

* `comment_count`
* `talk_count`
* `track_count`

There's some methods in the EventMapper to update these values.

Frisby tests check for the existence of the new properties.

I'll also adjust the existing joind.in site to update these values whenever relevant new entities are created.