Bug 151281
Cause: QN-ItQ
- Evidence: "This patch makes one SQL call to find out the visibility status of all the bug in the list, instead of one for each bug", comment 1
- Evidence: " b.m.o would have been doing one query for every bug with more duplicates than the minimum limit (currently set to 2.) That would have been many thousands of bugs. :-(", comment 1
Fix: CQ
- Evidence: In the diff file, the query is moved to outside of the loop, effectively combining a log of queries into one query