meqif/cec2012pt-app — pull request #54 by meqif (2012-07-03 04:54:50+00:00)
Title: [#31794901 #32072563] Optimize SQL queries

Reduced queries and added transactions.

The `Location` queries are not optimized because we're supposed to receive that information expanded in the /activities/search/… response, so those will be optimized later.