Skip to content

Improve Performance of load_from_bls #98

Description

@jonpage

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%

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions