Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set Isolation Level to READ_UNCOMMITTED for read-only datastore connection #241

Open
jqnatividad opened this issue Feb 27, 2020 · 0 comments

Comments

@jqnatividad
Copy link
Contributor

jqnatividad commented Feb 27, 2020

For large CKAN installations that use the Datastore and use postgresql replication, performance/concurrency has been vastly improved with the introduction of datastore.write_url and datastore.read_url set to the master and replica respectively.

Performance/concurrency can be further improved by allowing "dirty reads" of the datastore. This can be done by setting the SQLAlchemy engine isolation level to "READ_UNCOMMMITTED" for the read_url connection.

Installations that don't employ Postgres replication for the Datastore should also benefit from this change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant