You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's a suggestion to have defaults as the entire date range. Implementing this in the current functions will increase server utilization by a lot. This isn't healthy for the server and the package. Therefore we need to break requests by year instead of pull it all at once and then combine it inside the function.
The text was updated successfully, but these errors were encountered:
Internal data breaks are a good idea, but currently the extract_species function is within data call parameters: the most data intensive species call which is for all time available for cape turtle dove for south africa: this returns 150 000 records: so the function is still well within margin's of good etiquette (<250 000). Reproducible example:
ctdove_raw_records <- extract_species(
Great point and thanks for the example. I think I'll still do it for three reasons:
The imperative word is that this works now. We want to avoid accumulating technical debt and so if it's something easy to implement why not do it now especially as the extract functions are the bed rock of all future functions.
Even though 250K is the limit, it doesn't mean that multiple queries operating at 250K are healthy. You can think of it in terms of many users drawing on one common CPU. You don't want everyone maxing out their limits.
The larger the query/operation, the longer the rollback takes if there's a timeout or server error, the longer competing queries are blocked.
I think the addition is simple, can be used across all the extract functions and provides a safety net.
There's a suggestion to have defaults as the entire date range. Implementing this in the current functions will increase server utilization by a lot. This isn't healthy for the server and the package. Therefore we need to break requests by year instead of pull it all at once and then combine it inside the function.
The text was updated successfully, but these errors were encountered: