Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6017349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T03:06:56+00:00 2026-05-23T03:06:56+00:00

Hallo, I am writing a database application that does a lot of inserts and

  • 0

Hallo,

I am writing a database application that does a lot of inserts and updates with fake serialisable isolation level (snapshot isolation).

To not do tonnes of network roundtrips I’m batching inserts and updates in one transaction with PreparedStatements. They should fail very seldom because the inserts are prechecked and nearly conflict free to other transactions, so rollbacks don’t occur often.

Having big transactions should be good for WAL, because it can flush big chunks and doesn’t have to flush for mini transactions.

1.) I can only see positive effects of a big transaction. But I often read that they are bad. Why could they be bad in my use case?

2.) Is the checking for conflicts so expensive when the local snapshots are merged back into the real database? The database will have to compare all write sets of possible conflicts (parallel transaction). Or does it do some high speed shortcut? Or is that quite cheap anyways?

[EDIT] It might be interesting if someone could bring some clarity into how a snapshot isolation database checks if transaction, which have overlapping parts on the timeline, are checked for disjunct write sets. Because that’s what fake serializable isolation level is all about.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T03:06:57+00:00Added an answer on May 23, 2026 at 3:06 am

    The real issues here are two fold. The first possible problem is bloat. Large transactions can result in a lot of dead tuples showing up at once. The other possible problem is from long running transactions. As long as a long running transaction is running, the tables it’s touching can’t be vacuumed so can collect lots of dead tuples as well.

    I’d say just use check_postgresql.pl to check for bloating issues. As long as you don’t see a lot of table bloat after your long transactions you’re ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hello I'm writing an application that uses the compatibility library and i'm using a
I'm writing a tool that syncs a simple database with Excel sheets. Each item
Hello I am writing some data structures in C, and I've realized that their
Hello (this is a long post sorry), I am writing a application in ASP.NET
Hallo all, I am writing service in internet scenario. I have to implement message
Hallo, I'm having trouble writing a function: float turnToRequestedHeading(float initialHeading, float requiredHeading, float turnRate)
I'm writing method wrapping db SELECT statement, that receives SQL query and runs it.
Hallo, I writing an app and I want to integrate a sketch-app to draw
Hello All I am writing some software that will allow users to create their
Hello Fellow stackoverflowers, I´m stuck writing a piece of code. I have application with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.