NewRelic reports that that most of the time on the following request was spent in the source method. Need to optimize this code since it many versions of it are run nightly:
/data_sources/source/207175
| Metric |
Count |
Exclusive |
Total |
| DataSourcesController#source |
1 |
14,375 ms |
92% |
| Net::HTTP[data.bls.gov]: POST |
1 |
994 ms |
6% |
| operation/MySQL/other |
636 |
194 ms |
1% |
| statement/MySQL/DataPoint/insert |
317 |
118 ms |
1% |
| statement/MySQL/DataPoint/find |
2 |
11 ms |
0% |
| Rack/ActionDispatch::Reloader/call |
1 |
2 ms |
0% |
| Remainder |
1 |
7 ms |
0% |
NewRelic reports that that most of the time on the following request was spent in the source method. Need to optimize this code since it many versions of it are run nightly:
/data_sources/source/207175