Remove JOINs for starred item existence checks.
Review Request #12356 — Created June 10, 2022 and submitted — Latest diff uploaded
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 thethroughtable to
perform our check, avoiding the need to JOIN theProfileto the table.
Unit tests pass.