learningequality/ka-lite — pull request #2802 by jamalex (2014-12-14 21:17:28+00:00)
Title: Improved AttemptLog filter (for efficiency and correctness)

1. In practice mode, include AttemptLogs both with `context_type='playlist'` and `context_type='exercise'` (rather than just the ones from the current context_type).
2. Add an index_together on the fields typically queried together, for a 20x speedup.