Databases · Middle · Question 23 of 75

Why are long-running transactions harmful in PostgreSQL?

Explanation

Don't keep a transaction open while calling external APIs or waiting for user input. Monitor pg_stat_activity for 'idle in transaction' sessions.

Further reading

Problem with a question

Databases · Middle · question 23

Test yourself

Take the Databases · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz