LRT: Interactive Transactions Epic #7956
Labels
kind/epic
A high-level initiative that has many subtasks.
team/client
Issue for team Client.
topic: interactiveTransactions
topic: transaction
Problem
Long-running transactions are a very commonly used functionality of database that has influenced how a lot of developers think and build their applications.
While there are alternative ways to conceive a feature without them, leading to more scalable code, these ways aren't obvious and can complicate the code of applications that wouldn't suffer from long-running transaction shortcomings.
Moreover, users can't bear the cost of porting pre-existing application heavily relying on long-running transactions to a new paradigm.
Solution
Our new transaction API will allow you to add arbitrary logic within a transaction. This gives users a simple mental model for working with transactions and reduces the burden of porting existing applications to Prisma.
Code Example
Tasks
TypeScript Client
$transaction(async (prisma) => {...})
#8092Query Engine
Note: The following issues might be easy to fix while implementing LRT, but not necessary for completing the epic.
References
The text was updated successfully, but these errors were encountered: