• Tja@programming.dev
    link
    fedilink
    arrow-up
    5
    ·
    9 hours ago

    I get that this is a joke, but…

    … ackshually it should almost never be a transaction only when there’s absolutely no other option, because transactions kill your performance.

    • silasmariner@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 hours ago

      Actually transactions can be a secomd-layer safety-net for single-responsibility writers to ensure rollback on eg restarts and consistency on loadbalancer redecisions without having much of an impact on performance, and data integrity is usually quite important.

    • qaz@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      4 hours ago

      Unless you’re using Firebird (3) in which not using transactions kills your performance