caktus/django-timepiece — comment on commit b276e6077b348af38ef268bbeca123e348708479
File: timepiece/views.py line 1112
By copelco:

How many queries does this run? Is it faster to do a date_trunc with a distinct on user? Or a Sum('hours') with a filter on > 0?