NetrunnerDB / netrunnerdb-api-server

API Server for NetrunnerDB
Apache License 2.0
5 stars 5 forks source link

Use DB attributes to avoid unneccessary queries from relations. #319

Closed plural closed 1 month ago

plural commented 1 month ago

This reduces /cards and /printings default load times by ~80+% by not falling back to relations for fields that already exist in the unified_{cards,printings} tables.

codecov[bot] commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 98.24%. Comparing base (200aefd) to head (a8a88a4). Report is 2 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #319 +/- ## ======================================= Coverage 98.24% 98.24% ======================================= Files 79 79 Lines 1307 1312 +5 Branches 159 159 ======================================= + Hits 1284 1289 +5 Misses 23 23 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.