Hello Christopher,

I saw you code and you noticed you are reading all the data(3GB) locally, 
maybe it's causing your machine to use swap memory, which leads to the 
performance issue.
You can check that by
1: open htop in one terminal (apt-get install -y htop)
2: run your application
3: check the memory usage on htop, if it use 100% of memory, then the 
machine will start to swap

Please, correct me if I'm wrong.

Reply via email to