S
S
sema-fedotov2020-09-19 09:46:21
Node.js
sema-fedotov, 2020-09-19 09:46:21

Why is 2 new records being created?

Game written in node js. When a player connects for the first time, several entries will be created (usually 2). Previously, as a solution, I set SetTimeout()it for one second and wrapped the code for adding to the database with it, the problem seems to have disappeared. But now the activity has increased and this story is repeating itself again.
Here is the server load:
5f65a92d89b26569986994.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question