r/DatabaseHelp • • Mar 20 '24

Can someone ELI5 Intent Locking?

I'm having a hard time understanding how the 3 intent locks work...

Shared Lock is used for Reading where no other Transaction can Write but can Read.

Exclusive Lock is used for Writing where no other Transaction can Read nor Write.

Kindly explain what the other 3 do (I'm losing my mind)...

0 Upvotes

2 comments sorted by

View all comments

Show parent comment

1

u/noobjaish Mar 21 '24

Ohhh... Fk my bad I assumed all Rel Databases are the same