Optimize how we fetch the latest (current) revision
The way were were doing it was implicitly sorting the query items and it was causing millions of items to be sorted (even though the result should only have one) making it slow. By switching away from `get()` and `first()` we are telling django to not try to sort.master
parent
5f455e55b5
commit
2f1f95fea9
Loading…
Reference in New Issue