This repository has been archived by the owner on Apr 26, 2024. It is now read-only.
Fetching event reports can be slow #16619
Labels
A-Admin-API
A-Database
DB stuff like queries, migrations, new/remove columns, indexes, unexpected entries in the db
A-Moderation
Tools for moderating HSes: event redaction, media removal, purge admin API, reports from users, ...
A-Performance
Performance, both client-facing and admin-facing
O-Uncommon
Most users are unlikely to come across this or unexpected workflow
S-Minor
Blocks non-critical functionality, workarounds exist.
T-Defect
Bugs, crashes, hangs, security vulnerabilities, or other reported issues.
T-Enhancement
New features, changes in functionality, improvements in performance, or user-facing enhancements.
E.g. from Jaeger:
![image](https://private-user-images.githubusercontent.com/8614563/281852977-219d0b86-b8a1-4236-9f60-c8fee5000811.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMjQwODUsIm5iZiI6MTczOTMyMzc4NSwicGF0aCI6Ii84NjE0NTYzLzI4MTg1Mjk3Ny0yMTlkMGI4Ni1iOGExLTQyMzYtOWY2MC1jOGZlZTUwMDA4MTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDEyOTQ1WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTA2NzA3MTVhODk5YzcxMmM1Nzk0YjEwNWM2MzEyOWJkNDBlNmM4YzQ1YmU4YjRiMmQ4MjYwMmY1NGUwYmZlZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.ODeMt_sFAFY_JnXhl8l2XmBaZMKMlPv7pibl28gvJT4)
My money is on LIMIT ... OFFSET ... being slow. I wonder if we could change this to paginate without OFFSET using the
id
column? (I assume thatreceived_ts
increases asid
increases, and vice versa).The text was updated successfully, but these errors were encountered: