Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
evanweaver
on July 30, 2021
|
parent
|
context
|
favorite
| on:
Document Database Transaction Models
I guess most ORMs are like that. Is the object shared by reference across the entire runtime or do you end up with divergent objects?
sargun
on July 30, 2021
[–]
It's only valid in the context of that function invocation. The docs say not to write impure functions or do anything with concurrency -- if you start two simultaneous transactions, the client isn't "smart" about it unfortunately.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: