forked from Ericsson/codechecker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[fix] Better SQL SELECT instead of a timeout query
This query runs when filtering by files or components with "anywhere on bugpath" option. In this case the following query was generated: SELECT <columns> FROM reports WHERE reports.id IN (id1, id2, ...); The ID list at "IN" block can be so huges that it eats up all the memory and times out the query. This ID list is now replaced with a nested select: SELECT <columns> FROM reports WHERE reports.id IN (SELECT report_id FROM <some tables>);
- Loading branch information
Showing
1 changed file
with
11 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters