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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzg5NjI1MjAsIm5iZiI6MTczODk2MjIyMCwicGF0aCI6Ii84NjE0NTYzLzI4MTg1Mjk3Ny0yMTlkMGI4Ni1iOGExLTQyMzYtOWY2MC1jOGZlZTUwMDA4MTEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIwNyUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMDdUMjEwMzQwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NTg0YzdiNTY1ZWFjMzQ1MWQwMDJmYTU0MTk3MTRiZDE2NTM3OTUxOWVhN2UwZDhiNjIwZWZjYzM0NjAwYTg4MCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.KQaJd8TfjNoAma5mI-cvsqiX_RqVGMxjr5e23jKsrjo)
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: