File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 494
494
end
495
495
```
496
496
497
+ Active Record logs will also include timing info for the duration of how long
498
+ the main thread had to wait to access the result. This timing is useful to know
499
+ whether or not it' s worth to load the query asynchronously.
500
+
501
+ ```
502
+ DEBUG -- : Category Load (62. 1ms) SELECT * FROM ` categories` LIMIT 50
503
+ DEBUG -- : ASYNC Post Load (64ms) (db time 126. 1ms) SELECT * FROM ` posts` LIMIT 100
504
+ ```
505
+
506
+ The duration in the first set of parens is how long the main thread was blocked
507
+ waiting for the results, and the second set of parens with " db time" is how long
508
+ the entire query took to execute.
509
+
497
510
* Jean Boussier *
498
511
499
512
* Implemented ` ActiveRecord::Relation#excluding` method.
You can’t perform that action at this time.
0 commit comments