Remove JOINs for starred item existence checks.

Review Request #12356 — Created June 10, 2022 and submitted

chipx86
Review Board
release-5.0.x
reviewboard

This updates Profile.is_review_group_starred() and
Profile.is_review_request_starred() to avoid a JOIN when checking for
the existence of starred items. We now use the through table to
perform our check, avoiding the need to JOIN the Profile to the table.

Unit tests pass.

Summary
Remove JOINs for starred item existence checks.
chipx86
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-5.0.x (abbf3b8)
Loading...