Donald Stufft
Donald Stufft
Course we don't use it yet, nor does anything really, but in theory!
We can probably ask the PSF for a recommendation here.
With retries and https://github.com/pypa/warehouse/pull/4526 this is alrgely done. I'm going to leave this open because I believe that adding caching here would still be a good step.
Note: This is effectively a no-op if you don't have ``DATABASE_REPLICA_URL`` defined other than the system "thinks" it's hitting the replica (but under the covers it's just re-using the same...
It could be a list. I left it as a single thing because we're not currently likely going to add multiple of them, and when we do there are various...
An interesting thing, https://github.com/pypi/warehouse/pull/1098 removed the ``read_only`` flag from a bunch of views that were otherwise read only because right now ``request.read_only`` includes a strict transaction isolation level. It might...
I'm going to rebase this PR on top of https://github.com/pypi/warehouse/pull/11989 which should improve our query performance more on it's own, and then simplifies the ability to opt in more read...
This now has the changes from #11989 rolled into it so until that lands this will be harder to review. It adds a ``with_database`` predicate to allow selecting a specific...
This now supports a list of replicas, and when a list is given it will route to the replica that has the least open connections to it [^1]. [^1]: This...
LGTM, can't approve it since it's my PR.