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
Some resources in ETN are called time and time again within functions, which leads me to believe it might save users time, and server resources if the values of these resources could be retained for a while, and only updated after a set time interval.
For example, how often is the list of scientific_names actually updated? If we've just requested this list, could we store it for an hour and only afterwards check the database again? Every 4 hours? Every 10 minutes?
What about the detections table? Is the view updated on every call, or only nightly?
function_name
update_interval
list_acoustic_project_codes
?
list_acoustic_tag_ids
?
list_animal_ids
?
list_animal_project_codes
?
list_cpod_project_codes
?
list_deployment_ids
?
list_receiver_ids
?
list_scientific_names
?
list_station_names
?
list_tag_serial_numbers
?
list_values
?
get_acoustic_deployments
?
get_acoustic_detections
?
get_acoustic_projects
?
get_acoustic_receivers
?
get_animal_projects
?
get_animals
?
get_cpod_projects
?
get_tags
?
Ideally I'd like to know this on a function by function basis. @CLAUMEMO do you have enough information to answer this question? I could go trough the inner workings and make an overview of what function calls what table, but while useful it would take a bit of effort.
The text was updated successfully, but these errors were encountered:
Some resources in ETN are called time and time again within functions, which leads me to believe it might save users time, and server resources if the values of these resources could be retained for a while, and only updated after a set time interval.
For example, how often is the list of scientific_names actually updated? If we've just requested this list, could we store it for an hour and only afterwards check the database again? Every 4 hours? Every 10 minutes?
What about the detections table? Is the view updated on every call, or only nightly?
Ideally I'd like to know this on a function by function basis. @CLAUMEMO do you have enough information to answer this question? I could go trough the inner workings and make an overview of what function calls what table, but while useful it would take a bit of effort.
The text was updated successfully, but these errors were encountered: