Skip to main content

Case Study: Foreign Keys

  • Chapter
  • First Online:
MySQL Concurrency
  • 797 Accesses

Abstract

One of the more difficult lock contention cases to investigate happens when foreign keys are involved as you can have queries on different table content for the same locks. This case study investigates an example where both metadata and InnoDB record locks occur due to foreign keys. As the symptoms and the cause are the same as for the case study discussing metadata locks in Chapter 14 and the case study of the InnoDB record locks in Chapter 15, these are skipped in this discussion.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 69.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    https://www.splunk.com/

  2. 2.

    https://www.mysql.com/products/enterprise/monitor.html

  3. 3.

    https://www.solarwinds.com/database-performance-monitor

  4. 4.

    https://www.percona.com/software/database-tools/percona-monitoring-and-management

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2021 Jesper Wisborg Krogh

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Krogh, J.W. (2021). Case Study: Foreign Keys. In: MySQL Concurrency. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-6652-6_17

Download citation

Publish with us

Policies and ethics