• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

MySQL. InnoDB. Intention locking

 
Ranch Hand
Posts: 89
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everyone,

Could someone, who has experience with MySQL, help? My question relates to intention locking in InnoDB storage engine, MySQL. I am trying to get full understanding on how InnoDB manages transaction levels and currently reading the MySQL 5.6 Reference Manual, InnoDB Lock Modes section. And I am confused with intention shared and exclusive locks. It is written there that intention locks are table level locks and they indicate that a statement in a transaction willing to acquire a row level lock either for read (shared) or write (exclusive).

My questions are:
1) may I say that intention locking is entirely implicit table level locking; locks of this type are released immediately after the row level shared or exclusive lock was obtained (the execution of "select ... lock in share mode" or "select ... for update", etc. finishes);
2) is it possible to emulate session interaction via command line in order to see, how intention locking work?
 
You've gotta fight it! Don't give in! Read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic