MongoDB – Batch Processing Question/Debugging
I’m working on processing chess games and saving data to a database. My partner developed this batch processing and concurrent threads to run a few in parallel. We want to write each game accuracy, opening_accuracy, middlegame_accuracy, endgame_accuracy, rating, and moves to the MongoDB but I think right now we are writing the average/mean over and over again. I’m not super familiar with MongoDB or concurrent.futures so I’m hoping someone could provide a bit of guidance: