I know about transactions, but the method of handling callbacks makes it look like the database is hit once. After that, he returns to the server and, as a result, serves the next operation and so on.
I want to do several unrelated operations at the same time in order to be really effective (not chains)
How:
user.destroy();
post.create({...});
anotherPost.destroy();
All of them are independent and do not need chains. I just want to do it all at once. How can i do this?
source
share