bo0tzz
1978b77a40
perf(server): stop loading every album asset to build album responses ( #32413 )
...
* perf(server): stop loading every album asset to build album responses
Album create, update (rename, description, cover, sort order, activity
toggle) and add-users json_agg'd every asset of the album with its exif
row, only for mapAlbum to read the count and the first/last
localDateTime. Use getMetadataForIds for those fields, as GET /albums/:id
already does, and drop the now unused withAssets option from getById.
The responses now carry the same date format and lastModifiedAssetTimestamp
as GET /albums/:id.
PATCH /albums/:id on a 150k-asset album, PG 14 (response is ~900 B either
way): 3.4-3.6 s -> 0.13-0.16 s.
* refactor(server): share album metadata mapping
(cherry picked from commit 2a4e876ec990a4a8d5fdca00291cbeebd3d1bccf)
2026-10-14 21:24:13 +03:00
..
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-10-14 21:24:13 +03:00
2026-10-14 21:24:13 +03:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-10 13:22:29 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-25 22:44:29 -04:00
2026-10-14 21:24:13 +03:00
2026-09-28 14:36:05 -04:00
2026-09-28 14:36:49 -04:00
2026-09-15 09:33:15 -04:00
2026-10-02 16:02:39 +00:00
2026-10-02 16:02:39 +00:00
2026-10-02 16:02:39 +00:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-10 13:22:29 +02:00
2026-09-23 06:42:31 -04:00
2026-09-23 06:42:31 -04:00
2026-09-30 09:44:01 +00:00
2026-09-14 14:51:31 +02:00
2026-09-28 15:51:19 -04:00
2026-10-01 10:26:56 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-26 10:07:24 -04:00
2026-09-25 10:29:07 -04:00
2026-09-22 04:30:43 -05:00
2026-09-22 04:30:43 -05:00
2026-10-07 08:16:22 +00:00
2026-10-07 08:16:22 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-10-14 21:24:13 +03:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-28 21:29:15 +02:00
2026-09-28 21:29:15 +02:00
2026-10-08 14:23:17 +00:00
2026-10-08 14:23:17 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-11 14:48:55 -04:00
2026-10-06 14:10:38 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-28 15:52:25 +00:00
2026-09-28 15:52:25 +00:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-10-08 14:23:17 +00:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-14 14:51:31 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00
2026-09-10 13:22:29 +02:00
2026-09-23 18:19:03 +00:00
2026-09-14 14:51:31 +02:00