M
M
mironwebsite2021-11-18 22:54:55
PostgreSQL
mironwebsite, 2021-11-18 22:54:55

Does postgres process requests at the same time?

I don't fully understand if Postgres can process, for example, 2 requests at the same time? That is, if we take 2 connections from the pool and access the database at the same time, will they be processed at the same time? And if, say, one of the connections will execute the request for a very long time (say, 10 seconds), then the second connection with a simple request can be executed in parallel? And, if so, how many requests can be executed in parallel? What does it depend on?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Shumov, 2021-11-18
@inoise

From transactionality and the presence of a cluster. Transactions are always executed sequentially, and any other requests - in parallel. A distributed cluster has its own characteristics

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question