Comments (2)
It should work. I have it with postgresql.
But checkout the documentation of AWS they write something about mysql Explicit MySQL statements LOCK TABLE, LOCK TABLES, or FLUSH TABLES WITH READ LOCK cause the proxy to pin the session.
from with_advisory_lock.
I should have been more clear and mentioned that I am using Postgres. That is good to hear will give it a shot in our staging env.
from with_advisory_lock.
Related Issues (20)
- Locking and unlocking separately (without a block)
- Upcoming Changes: Enhancements to Multi-Database Support. Dropping support for SQLite3 and older ActiveRecord versions
- Test that uses `with_advisory_lock` passes in Rails 6.1, but fails in Rails 7
- With_advisory_lock test with Multiple threads fails HOT 5
- advisory locks with connection pooling (pgbouncer) HOT 4
- Connection pool causing locks to be taken when they shouldn't HOT 1
- Lots of duplicate/unnecessary calls to `select get_version()` HOT 1
- PG Transactional locks not working on Rails 5.2 HOT 9
- Is the unique column name still necessary or does AR do the right thing now? HOT 5
- RFC: Turn off ActiveRecord caching within lock blocks HOT 7
- Why not raise exception when the lock couldn't be acquired in the given timeout? HOT 4
- any plans on supporting rails 7 ? HOT 2
- Using `with_advisory_lock!` HOT 7
- Race condition in `advisory_lock_exists?`
- Support Trilogy database adapter HOT 1
- pg_advisory_lock vs. pg_try_advisory_lock HOT 6
- Lock ignored for concurrent fibers HOT 1
- Naming conflict HOT 4
- Expose Postgres integer lock id
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 with_advisory_lock.