More response to CR
This commit is contained in:
4
common/djangoapps/util/query.py
Normal file
4
common/djangoapps/util/query.py
Normal file
@@ -0,0 +1,4 @@
|
||||
from django.conf import settings
|
||||
|
||||
def use_read_replica_if_available(queryset):
|
||||
return queryset.using("read_replica") if "read_replica" in settings.DATABASES else queryset
|
||||
Reference in New Issue
Block a user