Commit 9e4f558
committed
[miq_provision_virt_workflow.rb] Specify vm cols
This reduces the number of columns returned from the VMs table to
reduce what is returned and serialized from the DB.
Benchmark
---------
**Before**
| ms | queries | query (ms) | rows |
| ---: | ---: | ---: | ---: |
| 39488 | 33 | 2439.4 | 243133 |
| 38879 | 33 | 2438.2 | 243133 |
| 39256 | 33 | 2444.3 | 243133 |
**After**
| ms | queries | query (ms) | rows |
| ---: | ---: | ---: | ---: |
| 28440 | 33 | 1929.5 | 243133 |
| 28491 | 33 | 1933.6 | 243133 |
| 28858 | 33 | 2631.9 | 243133 |1 parent 05818e6 commit 9e4f558
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
| |||
0 commit comments