Gerhard Schlager a597ef7131
PERF: Speed up S3 inventory updates (#19110)
The UPDATE statement could lock the `uploads` table for a very long time
when the `verification_status` of lots of uploads changed. Splitting up
and simplifying the UPDATE solves that problem.

Also, this change ensures that only the needed data from the inventory
gets inserted into the `TEMP TABLE`. For example, there's no need to
have records for optimized images in that table when the `uploads` table
gets updated.
2022-11-20 21:52:30 +01:00
..
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2021-10-27 11:39:28 +03:00
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2022-03-03 09:24:58 +08:00
2021-05-31 10:22:50 +08:00
2022-04-06 17:10:51 +02:00
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2022-04-28 11:51:03 +02:00
2021-06-21 11:06:58 +08:00
2020-07-21 15:55:03 +08:00