Skip to content

Commit 51a2d8c

Browse files
committed
ruby: rename query
1 parent d9d0d3c commit 51a2d8c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

ruby/ql/src/queries/performance/CouldBeHoisted.ql renamed to ruby/ql/src/queries/performance/DatabaseQueryInLoop.ql

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/**
2-
* @name Could be hoisted
3-
* @description Hoist Rails `ActiveRecord::Relation` query calls out of loops.
2+
* @name Database query in a loop
3+
* @description Database queries in a loop can lead to an unnecessary amount of database calls and poor performance.
44
* @kind problem
55
* @problem.severity info
66
* @precision high
7-
* @id rb/could-be-hoisted
7+
* @id rb/database-query-in-loop
88
* @tags performance
99
*/
1010

0 commit comments

Comments
 (0)