Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by francislavoie

1 day ago

Unfortunately a lot of our tests use transactions themselves because we lock the user row when we do anything to ensure consistency, and I'm pretty sure nested transactions are still not a thing.

2 comments

francislavoie

Reply

hu3  1 day ago

You can emulate nested transactions using save points. A client uses that in production. And others in unit tests.

  • pak9rabid  4 hours ago

    Bingo...this is how I get around that.

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities