YukonWRB / AquaCache

Package to create and update a postgres database holding water and climate related data
GNU Affero General Public License v3.0
3 stars 0 forks source link

Speed up import functions #137

Open gdelaplante opened 3 months ago

gdelaplante commented 3 months ago

Many AquaCache functions are designed to be run on a regular basic (hourly, daily, or weekly) to import and process data. Most of these can benefit from speed and memory use improvements, possibly using data.table or even by passing C++ code using Rcpp.

The package is made data.table aware in function dbGetQueryDT (.databale.aware <- TRUE), plus import calls in the NAMESPACE for data.table operators.

What's been done already:

Priority functions to improve:

In addition, function downloadWSC relies on weathercan::weather_dl to import data and this is quite slow. There's a lot of overhead in weather_dl that isn't necessary.