Account deletion used to time out. After this it's basically instantaneous. The reports table is pretty huge...
More context here on Linear.
Paths
| Differential D7174 Authored by ashoat on Mar 24 2023, 5:04 PM.
Details Summary Account deletion used to time out. After this it's basically instantaneous. The reports table is pretty huge... More context here on Linear. Test Plan I ran it on prod and it fixed the issue
Diff Detail
Event TimelineComment Actions I analyzed the queries we run on the reports table and found that creating a report runs this query, so I refined this index so it can help there as well. No other queries on reports seemed to do a full scan ashoat added inline comments. Harbormaster completed remote builds in B17610: Diff 24104.Mar 24 2023, 5:20 PM2023-03-24 17:20:48 (UTC-7) Harbormaster completed remote builds in B17611: Diff 24105.Mar 24 2023, 5:31 PM2023-03-24 17:31:14 (UTC-7) This revision is now accepted and ready to land.Mar 27 2023, 2:10 AM2023-03-27 02:10:44 (UTC-7) This revision was landed with ongoing or failed builds.Mar 27 2023, 7:06 AM2023-03-27 07:06:56 (UTC-7) Closed by commit rCOMM26c2d2f52e0b: [keyserver] Fix account deletion performance (authored by ashoat). · Explain Why This revision was automatically updated to reflect the committed changes. Harbormaster completed remote builds in B17675: Diff 24196.Mar 27 2023, 7:21 AM2023-03-27 07:21:38 (UTC-7)
Revision Contents
Diff 24197 keyserver/src/cron/cron.js
keyserver/src/database/migration-config.js
keyserver/src/database/setup-db.js
|