1) Is it ok to do inserts,deletes and updates in one transaction?
2) Is there a (recommended) limit to the number of writes per transaction?
1) Is it ok to do inserts,deletes and updates in one transaction? 2) Is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Transaction is a logical block. You can do whatever you want within one transaction.
For example, for one functions of our product we build a temporary table, insert a set of tuples there and then run a
SELECTthat uses that temporary table and a permanent table. All that stuff is inside a transaction which is rolled back afterwards so that no changes happen to the database.