Answer the question
In order to leave comments, you need to log in
How are UPDATE requests executed?
It was required to update the big table. Such questions.
1. Does it matter if the UPDATE query is split into parts? Type instead of one large 10 smaller ones. For example, with a distinction between dates. If yes, what is the reason?
2. If queries are separated by a semicolon, are they performed within the same transaction or does the semicolon limit the transaction? It's about SQL Manager.
The second question arose because:
select * from pg_stat_activity
Indicates (query column) that 10 queries are running at the same time:
update table1 set a='1' where ... ;
update table2 set a='1' where ... ;
update table3 set a='1' where ... ;
It turns out that they are not one by one, but within the framework of one large transaction, and if I interrupt on the last one, everything will be rolled back and it will be considered that the update did not work?
Answer the question
In order to leave comments, you need to log in
1. Does it matter if the UPDATE query is split into parts? Type instead of one large 10 smaller ones. For example, with a distinction between dates. If yes, what is the reason?
2. If queries are separated by a semicolon, are they performed within the same transaction or does the semicolon limit the transaction? It's about SQL Manager.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question