Improve banned users filter for issues queries

What does this MR do and why?

Adds a +0 to the author_id clause to prevent a bad query plan flip.

Example queries

  1. Project issue list

  2. Project issue exists

  1. Group issue list (no difference, already using nested loop)

References

Related to #394980 (closed)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Heinrich Lee Yu

Merge request reports

Loading