Answer the question
In order to leave comments, you need to log in
How is the processing of large INSERT queries arranged?
There is a large INSERT with a size of 10MB which scatters about ten thousand values across 5 tables.
I suspect that it is not executed instantly. What happens to PostgreSQL if several more queries arrive at the time of its insertion?
Does PostgeSQL have queues by default?
It's just that from time to time my application performing an insert into the database returns me a 504 error and it is very likely that this situation happens.
Are there any settings that affect this? For example, the number of PostgreSQL processes so that while one is busy, the second one works?
Answer the question
In order to leave comments, you need to log in
It's just that from time to time my application performing an insert into the database returns me a 504 error and it is very likely that this situation happens.AND? 504 says some kind of error. Open the logs and see what exactly the error is, and you won’t have to guess, maybe it’s not because of the database at all.
I suspect that it is not executed instantly. What happens to PostgreSQL if several more queries arrive at the time of its insertion?
It's just that from time to time my application performing an insert into the database returns me a 504 error and it is very likely that this situation happens.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question