Open emannes opened 8 years ago
The offending line is https://github.com/sleepers-anonymous/zscore/blob/master/sleep/views/__init__.py#L253:
ss = Sleeper.objects.sorted_sleepers(sortBy=sort_by,user=request.user,group=group)
Yeah, the way this works is literally just pulling from the DB a list of all users and all of their sleep, I believe. That is probably no longer scalable.
The offending line is https://github.com/sleepers-anonymous/zscore/blob/master/sleep/views/__init__.py#L253: