Open andy-esch opened 6 years ago
cc @juanignaciosl This has a substantial impact on CARTOFrames usage
I think that the main problem here is that you are using OBS_GetMeta
as a discovery function passing it all the available numerators found for a given envelope (more than 700 numerators) and this function is designed to create a well formed metadata JSON Object for OBS_GetData
.
Can you use any of the available Discovery functions to do the job? For example in Builder, to get a query for OBS_GetMeta
we are narrowing the options using (in this order) OBS_GetAvailableNumerators
, OBS_GetAvailableDenominators
, OBS_GetAvailableTimespans
, OBS_GetAvailableGeometries
, and then we perform the query against OBS_GetMeta
/OBS_GetData
.
Using the SQL API, cartoframes routinely constructs queries for
OBS_GetMeta
like the following, which is a very common use case to get all available measures in a small region (here the region is the size of Brooklyn) for a specific time span'2011 - 2015'
:The dataset is here: https://team.carto.com/u/eschbacher/tables/brooklyn_poverty/public?redirected=true
cc @hannahblue @michellemho