Skip to content

timeseries/recent endpoint is much slower than the /timeseries endpoint #1078

@david-a-ries

Description

@david-a-ries

I was planning on using the /timeseries/recent endpoint to create some tables of the latest values from various timeseries. The problem I'm facing is that the /timeseries/recent endpoint is significantly slower (10+ seconds for a response) than the regular /timeseries endpoint (under a second for a response). I'm not sure what's happening under the hood but I'm not using category-id or group-id for the /timeseries/recent endpoint (only asking for 1 timeseries). There's two urls below (one for recent and one for just timeseries) for an example of what I'm seeing.

timeseries/recent: https://cwms.sec.usace.army.mil/cwms-data/timeseries/recent?office=NWDP&ts-ids=MLKW.Flow.Inst.15Minutes.0.USGS-REV

timeseries: https://cwms.sec.usace.army.mil/cwms-data/timeseries?name=MLKW.Flow.Inst.15Minutes.0.USGS-REV&office=NWDP&unit=EN

Metadata

Metadata

Assignees

Type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions