We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
#5927 added support for SKIP LOCKED with FOR UPDATE but not with FOR SHARE - can this also be added as pessimistic_partial_read for FOR SHARE?
SKIP LOCKED
FOR UPDATE
FOR SHARE
pessimistic_partial_read
There is no way to specify FOR SHARE SKIP LOCKED
FOR SHARE SKIP LOCKED
Add a new mode for setLock pessimistic_partial_read that is only supported by Postgres (similar to #5927) that translates to FOR SHARE SKIP LOCKED
setLock
we currently work around this with the following hack:
const [sql, params] = query.getQueryAndParameters(); const fullSql = `${sql} SKIP LOCKED`; const result = await entityManager.query(fullSql, params);
and then using the strategy here to map the results to an entity
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Feature Description
#5927 added support for
SKIP LOCKED
withFOR UPDATE
but not withFOR SHARE
- can this also be added aspessimistic_partial_read
forFOR SHARE
?The Problem
There is no way to specify
FOR SHARE SKIP LOCKED
The Solution
Add a new mode for
setLock
pessimistic_partial_read
that is only supported by Postgres (similar to #5927) that translates toFOR SHARE SKIP LOCKED
Considered Alternatives
Additional Context
we currently work around this with the following hack:
and then using the strategy here to map the results to an entity
Relevant Database Driver(s)
aurora-mysql
aurora-postgres
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
spanner
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: