Skip to content

Dealing with large requests #128

@dsweber2

Description

@dsweber2

Doing

chng_outpatient <- epidatr::covidcast(
  data_source = "chng", signals = "smoothed_adj_outpatient_covid",
  geo_type = "state",
  time_type = "day",
  time_values = "*",
  geo_values = "*",
  issues = "*"
)

resulted in a 504, probably because it took too long to get back; it worked fine for restricting issues to a month interval. Ways to address this:

  1. Expose whatever means httr has of increasing the wait time as a user input
  2. document any already existing way of doing this
  3. Split "*" requests into reasonable sized subsets and then do joins after to return what they asked for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    triageShould assign/revisit priority level, other tags

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions