Closed
Description
If I look at where match_version
is used, it's always followed by a query on the database fetching the rustdoc_status
.
- here we fetch rustdoc_status
: https://github.com/rust-lang/docs.rs/blob/master/src/web/releases.rs#L486
- here we fetch rustdoc_status
and target_name
: https://github.com/rust-lang/docs.rs/blob/master/src/web/rustdoc.rs#L160
Maybe we can change match_version
to expose some additional information that makes the next queries easier or, even better, unnecessary?
A simple tweak would be to return the id of the release, making the next query easier.
Originally posted by @koenaad in #565 (comment)