This migrates the use_read_replica_if_available and read_replica_or_default
functions from edx_platform/common/djangoapps/utils/query.py, and augments
them with a pair of context managers for asserting that particular chunks
of code are read-only (and thus read-replica safe).
Description:
Describe in a couple of sentence what this PR adds
This migrates the use_read_replica_if_available and read_replica_or_default functions from edx_platform/common/djangoapps/utils/query.py, and augments them with a pair of context managers for asserting that particular chunks of code are read-only (and thus read-replica safe).
Description:
Describe in a couple of sentence what this PR adds
JIRA:
XXX-XXXX
Dependencies:
List dependencies on other outstanding PRs, issues, etc.
Merge deadline:
List merge deadline (if any)
Installation instructions:
List any non-trivial installation instructions.
Testing instructions:
Reviewers:
Merge checklist:
Post merge:
Author concerns:
List any concerns about this PR - inelegant solutions, hacks, quick-and-dirty implementations, concerns about migrations, etc.