Open EvanWiederspan opened 7 years ago
It seems that multithreading with Node is similar to multithreading on Python: it can't really be done in the most basic sense. Our best bet might be to run a "cluster": https://nodejs.org/api/cluster.html#cluster_cluster This would allow the one worker thread to go off and downsample the images while another worker handles other requests.
We imported a batch today that had 7000 pictures. It worked great, but the entire server hangs while processing, and this made it unusable for several minutes while it worked. We need to have the image processing for batch imports happen in another thread