Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

What does the atomic() context manager guarantee?

  1. A Faster queries
  2. B That the enclosed database operations either all commit or all roll back
  3. C That queries run in parallel
  4. D That the cache is refreshed
Answer

That the enclosed database operations either all commit or all roll back

transaction.atomic wraps operations in a database transaction. Nesting creates savepoints rather than independent transactions.

All Django MCQs

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as