On Thursday, September 1, 2016 at 6:11:12 PM UTC-7, Alex Glaros wrote:
>
> does db.rollback() roll back everyone's data in multi-tenant app, or just 
> that one user's?
>
> thanks
>
> Alex Glaros
>

Inside a transaction (and requests are automatically a transaction), the 
rollback should only be the changes of the transaction.
Code in a module may need to do a commit or rollback if altering the DB.

[Looks like a missing word in the book's *commit and rollback* paragraph, 
first sentence.]
 
Outside of a transaction (running a script, say) would only be the changes 
since the last commit (previous request, or explicit commit);
this could apply to code in a module, also.  If you are running scripts or 
modules in parallel, I'm not sure what the answer is.

/dps


-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to