TryGhost/Ghost — pull request #4670 by jaswilli (2014-12-17 19:47:36+00:00)
Title: Optimize model class methods

No Issue
- Reorder promise chains to defer database queries until they
are needed.
- Execute database queries that are not dependent on each other in
parallel instead of sequentially.
- Reduce the number of variables used to hold state across multiple
promise blocks.
- Do not go async unless necessary.