We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d5fbf5 commit 6ef6427Copy full SHA for 6ef6427
ruby/ql/src/queries/performance/CouldBeAsync.ql
@@ -8,6 +8,12 @@
8
* @tags performance
9
*/
10
11
+// Consider also Associations.
12
+// Associations are lazy-loading by default, so something like
13
+// in a loop over article do
14
+// article.book
15
+// if you have 1000 articles it will do a 1000 calls to book.
16
+// If you already did article includes book, there should be no problem.
17
import ruby
18
private import codeql.ruby.AST
19
import codeql.ruby.Concepts
0 commit comments