Skip to content
Snippets Groups Projects
  • Tobias Bieniek's avatar
    c038933d
    crates: Use `?include=` to reduce crates.io backend load (#9081) · c038933d
    Tobias Bieniek authored
    By default the `/crates/:crate_name` API endpoint returns the categories and keywords related to the crates. Unfortunately this causes two additional database queries on the crates.io backend.
    
    This commit change the request URL to use `?include=` to only include the additional metadata that is needed for the requested badges.
    c038933d
    History
    crates: Use `?include=` to reduce crates.io backend load (#9081)
    Tobias Bieniek authored
    By default the `/crates/:crate_name` API endpoint returns the categories and keywords related to the crates. Unfortunately this causes two additional database queries on the crates.io backend.
    
    This commit change the request URL to use `?include=` to only include the additional metadata that is needed for the requested badges.