Merge pull request #18304 from yoff/ruby/performance-queries

Ruby: Query for database calls in a loop
This commit is contained in:
yoff
2025-02-17 13:16:07 +01:00
committed by GitHub
8 changed files with 187 additions and 3 deletions

View File

@@ -254,9 +254,8 @@ private Expr getUltimateReceiver(MethodCall call) {
)
}
// A call to `find`, `where`, etc. that may return active record model object(s)
private class ActiveRecordModelFinderCall extends ActiveRecordModelInstantiation, DataFlow::CallNode
{
/** A call to `find`, `where`, etc. that may return active record model object(s) */
class ActiveRecordModelFinderCall extends ActiveRecordModelInstantiation, DataFlow::CallNode {
private ActiveRecordModelClass cls;
ActiveRecordModelFinderCall() {