When the number of backend logs is of order 10000, navigating through them is quite slow. This seems to have two causes:
The function slug_from_log_reference (see here) has as return type a table. As a consequence, it cannot be inlined, as it is used as a scalar function. We should change its return type to VARCHAR.
We ask the table of its size on every request with the header Prefer: count=exact. We should only do this on the first request and accept that the count might not be correct afterwards.
When the number of backend logs is of order 10000, navigating through them is quite slow. This seems to have two causes:
slug_from_log_reference
(see here) has as return type a table. As a consequence, it cannot be inlined, as it is used as a scalar function. We should change its return type toVARCHAR
.Prefer: count=exact
. We should only do this on the first request and accept that the count might not be correct afterwards.