Run the item page's count and the feed list's queries together (#346)
entry_page awaited the page's query and then its count, about 40 and 24 ms on /api/entries, the busiest route; feed_list awaited five independent queries in turn (entries, downloaded, unread, blocked, feeds), 59 ms of a 67 ms /api/feeds, with the pool's connections idle. Both now use tokio::try_join!. On SQLite they queue on its connection as before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
- Traces show more of where a request's time goes: a page of items' query and its files apart, artwork's cache, check and fetch, the status counts, and each part of changing or leaving a feed (#350).
|
||||
- A page of items finds its files by feed as well as item: it read every file's row in the database, about a quarter of a second a page (#344).
|
||||
- A page of items asks for its count beside the items, and the feed list asks its five questions at once, where each waited for the one before (#346).
|
||||
|
||||
### Fixed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user