In the ObjectsVersionsPage instead of querying for all objects and counting, lets just grab the latest object and use its version_index.
In prod, this query tries to load all the objects, which is actually a reasonably quick db query. However, the query eventually 500s, with no error trace at all. This could possibly be caused by a maximum 500,000 rows error. Or perhaps more plausibly a memory error.
In prod, the following times out after 50 seconds:
This branch:
Note: this will not work when object deletion is enabled, but in that case we can add the version_count on the object which should be the correct number.
This pr:
ObjectsVersionsPage
instead of querying for all objects and counting, lets just grab the latest object and use itsversion_index
.In prod, this query tries to load all the objects, which is actually a reasonably quick db query. However, the query eventually 500s, with no error trace at all. This could possibly be caused by a maximum
500,000
rows error. Or perhaps more plausibly a memory error.In prod, the following times out after 50 seconds:
This branch:
Note: this will not work when object deletion is enabled, but in that case we can add the
version_count
on the object which should be the correct number.