sean-b765 / covid-api

Find current or historical COVID-19 data. Uses JHU and OWID GitHub repositories as source.
0 stars 0 forks source link

Large memory usage when handling historical data #2

Closed sean-b765 closed 2 years ago

sean-b765 commented 2 years ago

Historical COVID data are very large. When performing DB append functions, such as appendHistorical(), the memory usage spikes to 1GB. Look for optimizations in append functions. Initial fetch functions don't need to be optimized.

sean-b765 commented 2 years ago

This commit reduces memory usage by half