Comments (10)
transactions are not closed after read but kept open unless a write happens. This is not critical, but as far as i understand its also not clean.
from relstorage.
https://mail.zope.org/pipermail/zodb-dev/2014-March/015198.html
from relstorage.
Duplicate of #7
from relstorage.
Also, if you are using RelStorage 1.5.0 or older, this might be a problem that was fixed in 1.5.1 (November 2011). From the changelog: "RelStorage was opening a test database connection (and was leaving it idle in a transaction with recent ZODB versions that support IMVCCStorage.) RelStorage no longer opens that test connection."
from relstorage.
No, it is related to this:
relstorage/relstorage/storage.py
Line 1221 in 9dacfa5
The polling interval
from relstorage.
The poll interval option is off by default. Don't turn it on if this is a concern for you. Actually, perhaps the option should be removed altogether.
from relstorage.
So I need to check why some of my 1.6.0b3 instances with no poll interval set (defaults active) are resulting in idle in transaction on PGSQL.
from relstorage.
I also tried it yesterday, with 1.5.1. Poll Intervall 0, still immed. Idle transactions.
Sent from my iPhone because UPC sucks
On 05 Dec 2015, at 21:26, Jens W. Klein <[email protected]mailto:[email protected]> wrote:
So I need to check why some of my 1.6.0b3 instances with no poll interval set (defaults active) are resulting in idle in transaction on PGSQL.
Reply to this email directly or view it on GitHubhttps://github.com//issues/11#issuecomment-162243403.
________________________________________________________ The contents of this e-mail and any attachments are confidential to the intended recipient. They may not be disclosed to or used by or copied in any way by anyone other than the intended recipient. If this e-mail is received in error, please immediately notify the sender and delete the e-mail and attached documents. Please note that neither the sender nor the sender's company accept any responsibility for viruses and it is your responsibility to scan or otherwise check this e-mail and any attachments.
from relstorage.
Postgres 9.6 has a new option , idle transaction timeout. This blogpost https://www.credativ.de/blog/postgresql-96-feature-idle-transaction-timeout (german) also explains the downsides of having idle transactions open. We are currently in maintenance mode with our big system using Relstorage. @jensens, are you actively working on some psql site where you can test this option to see if it makes a difference?
from relstorage.
FWIW, the poll interval option has been removed in RelStorage 2.0.
from relstorage.
Related Issues (20)
- Postgresql config recommendations for Relstorage HOT 7
- Change locking order to eliminate deadlocks
- Cache vacuuming can sometimes take way too long HOT 1
- Clarification on oids.sqlite3 in SQLite storage HOT 2
- FIPS support HOT 5
- Problem packing RelStorage HOT 5
- psycopg2.ProgrammingError: named cursor isn't valid anymore HOT 1
- When Relstorage 3.5.0 final or beta? HOT 2
- Why is psycopg2-binary not recommended in production use? HOT 3
- psycopg2.errors.DuplicateObject: type "temp_store" already exists HOT 7
- Relstorage cache problem? HOT 2
- Prepack fails HOT 2
- pg8000 driver - AttributeError: 'Connection' object has no attribute 'in_transaction' HOT 2
- Avoiding UnableToLockRowsToReadCurrentError exceptions HOT 2
- Question about Pyramid + ZODB + RelStorage performances HOT 2
- Unable to install: fails to build relstorage.cache.cache extension HOT 6
- Large PostgreSQL database with blobs HOT 3
- Persistent cache not working? HOT 5
- Problem installing on macOS Sonoma HOT 1
- Uses `six` library but does not declare it.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from relstorage.