I am using MySQL to store data for a game I am making and need to access the database from outside the main thread so to not interupt it from a long query and return the data to the main thread to be processed on it's next loop. I am aware that there are multiple ways of doing this, queues, maps, callbacks etc.
What would be the "accepted" way of doing this if I was asked to do this professionally?
I know this is a broad, slightly opinion based question but this is the only place I know of that I might get an answer from, if anyone knows a site that is more suited to questions like this please let me know.
Thanks.