I'm using PostgreSQL 9.6 (Ubuntu 16.04) and I have a small table T of about 10k rows, where each row is updated 2 times per minute in peak times (something like UPDATE T SET c1 = ?, c2 = ? WHERE id = ?
). Futhermore, this is the only update operation done in this table and insertions and deletions are not often at all.
However, I've noticed that SELECT
queries in T are a bit slow and, after researching a bit, I've found out that "an update in PostgreSQL is actually a transaction of DELETE+INSERT (due MVCC)". Moreover, I've found similar issues like this one and this one, but regarding to UPDATE
queries.
My question is: does frequent updates in a row slows down select queries? If so, what is the proper way to handle it?