{"id":2807,"date":"2026-01-15T12:26:04","date_gmt":"2026-01-15T12:26:04","guid":{"rendered":"https:\/\/adjoe.io\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/"},"modified":"2026-11-14T15:58:30","modified_gmt":"2026-11-14T15:58:30","slug":"fix-mysql-deadlocks-in-go-with-one-sort-function","status":"publish","type":"engineer_blog","link":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/","title":{"rendered":"Fix MySQL Deadlocks in Go with One Sort Function"},"content":{"rendered":"<p class=\"wp-block-paragraph\">At <a href=\"https:\/\/adjoe.io\/solutions\/advertise-your-app\/playtime\/\" target=\"_blank\" rel=\"noreferrer noopener\">adjoe<\/a>, the largest rewarded <a href=\"https:\/\/adjoe.io\/news-insights\/adjoe-recognized-as-a-top-performer-in-appsflyers-performance-index-2025-edition\/\" target=\"_blank\" rel=\"noreferrer noopener\">mobile ad network<\/a>, we process massive volumes of data, user clicks, views, scrolls and installs. This data is critical for our adtech publishers to fine-tune their campaigns. Ensuring accurate <strong>ad campaign reporting<\/strong> is critical for partners, but high-concurrency systems can face <strong>MySQL deadlocks<\/strong>, leading to <strong>data gaps<\/strong>.<\/p><p class=\"wp-block-paragraph\">Any reporting discrepancy can lead to misjudgments about user behavior and campaign performance. Today, we\u2019re sharing our approach to fixing MySQL deadlocks.\u00a0<\/p><p class=\"wp-block-paragraph\">This tech blog explores the common causes of MySQL deadlocks and show how we eliminate them by aligning application logic with database locking behavior.<\/p><h2 class=\"wp-block-heading\">What are MySQL Deadlocks?<\/h2><p class=\"wp-block-paragraph\">A MySQL deadlock is a situation where two or more database transactions block each other from accessing the database resources they need to complete. In simpler terms, Transaction A is waiting for Transaction B to release a row lock or table lock, while Transaction B is waiting for Transaction A, and neither can proceed.<\/p><p class=\"wp-block-paragraph\">Deadlocks usually happen in high-concurrency environments where multiple queries try to update or modify the same rows or tables at the same time. They can cause transaction failures, query errors, performance issues, and database contention if not handled properly.<\/p><h2 class=\"wp-block-heading\">Problem: MySQL Deadlocks Causing Data Gaps<\/h2><p class=\"wp-block-paragraph\">It all started with a simple bug ticket: a publisher was missing data in one of our reporting APIs. We operate a high-throughput system consuming events from the queue. The consumer\u2019s role is essentially to receive event data, aggregate it, and perform bulk inserts into our MySQL cluster.\u00a0<\/p><p class=\"wp-block-paragraph\">This data eventually powers the reporting dashboards for our publishers. After a quick look at our Kibana logs, we observed that the MySQL cluster was being clogged by deadlocks.\u00a0<\/p><p class=\"wp-block-paragraph\">We started looking at terms like \u201cDeadlock\u201d, \u201cError 1213\u201d, and saw many logs containing them. It didn\u2019t take long to create a Kibana dashboard that showed the real picture of the problem:<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"652\" width=\"1198\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/image-4.png\" alt=\"Kibana dashboard - Fix MySQL Deadlocks in Go with One Sort Function - adjoe tech blog\" class=\"wp-image-2979\"><\/figure><p class=\"wp-block-paragraph\">Luckily, we had a retry mechanism in place; events in the queue would eventually be picked up by other consumers. However, the contention was so high that some data was being sent to the Dead Letter Queue (DLQ), requiring manual resolution.<\/p><p class=\"wp-block-paragraph\">That was the smoking gun: the deadlocks on the consumer side were directly causing data gaps in the reporting service.<\/p><h2 class=\"wp-block-heading\">How to Detect MySQL Deadlocks?\u00a0<\/h2><p class=\"wp-block-paragraph\">We started by breaking down why deadlocks occur in the first place. Generally, there are two main reasons for deadlock detection:<\/p><h3 class=\"wp-block-heading\">1. Inconsistent Locking Order (Classic Cause)<\/h3><p class=\"wp-block-paragraph\">If different parts of your application access the same resources in different orders, a deadlock is inevitable under high load.<\/p><p class=\"wp-block-paragraph\">Scenario:<\/p><ul class=\"wp-block-list\"><li>Transaction A updates Table_X, then tries to update Table_Y.<\/li><li>Transaction B updates Table_Y, then tries to update Table_X.<\/li><li>Result: Transaction A waits for Table_Y to be released, while Transaction B waits for Table_X. They are stuck forever.<\/li><\/ul><h3 class=\"wp-block-heading\">2. Gap Lock Deadlocks<\/h3><p class=\"wp-block-paragraph\">This was the more subtle issue we suspected. In MySQL, when you try to insert a new record into a unique index, the database must ensure no one else inserts that same value simultaneously. To do this, it places a <strong>Gap Lock <\/strong>on the empty space before the next existing record.<\/p><p class=\"wp-block-paragraph\">The deadlock trigger here is deceptive because Gap Locks are compatible.<\/p><ul class=\"wp-block-list\"><li>Transaction A can acquire a Gap Lock on \u201cIDs 10 to 20\u201d.<\/li><li>Transaction B can also acquire a Gap Lock on \u201cIDs 10 to 20\u201d at the same time.<\/li><\/ul><p class=\"wp-block-paragraph\">The database allows this overlap because a Gap Lock is effectively a \u201cShared Read\u201d lock. It\u2019s a reservation saying, \u201cI am looking at this space.\u201d<\/p><p class=\"wp-block-paragraph\"><strong>The Crash<\/strong>: The problem explodes the moment both transactions try to write (Insert) into that gap.<\/p><ol class=\"wp-block-list\"><li>Transaction A tries to Insert. It needs an Exclusive Lock. It must wait for Transaction B to release its shared Gap Lock.<\/li><\/ol><ol class=\"wp-block-list\"><li>Transaction B tries to Insert. It needs an Exclusive Lock. It must wait for Transaction A to release its shared Gap Lock.<\/li><\/ol><h3 class=\"wp-block-heading\">3. Other Culprits (Briefly Noted)\u00a0<\/h3><p class=\"wp-block-paragraph\">There are, of course, other reasons for deadlock detection. Lock escalation due to low memory, insufficient connection pools, or even \u201c<a href=\"https:\/\/dev.mysql.com\/doc\/refman\/8.0\/en\/innodb-locking.html#innodb-next-key-locks\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Next-Key Lock<\/a>\u201d collisions.<\/p><p class=\"wp-block-paragraph\">However, in our case, the root cause was more fundamental. It wasn\u2019t about resources; it was about direction.<\/p><h2 class=\"wp-block-heading\">The \u201cAha!\u201d Moment: Root Cause for Deadlocks\u00a0<\/h2><p class=\"wp-block-paragraph\">The breakthrough came when we compared how events were sorted on the producing side against our database schema.<\/p><p class=\"wp-block-paragraph\">Our consumer writes data into a table with a Unique Index (ensuring we have one record per ID + Country + Date).<\/p><p class=\"wp-block-paragraph\">Physically, this index is stored as a B-Tree. When inserting new rows or checking for duplicates, the database traverses this tree in a specific, fixed direction.<\/p><p class=\"wp-block-paragraph\">We realized that our producer was publishing events in an order that went \u201cagainst the grain\u201d of the unique index. By sending unsorted (or reverse-sorted) data, we were asking the database to grab locks at random positions throughout the index tree, jumping back and forth.<\/p><h2 class=\"wp-block-heading\">Why \u2018Against the Grain\u2019 Creates MySQL Deadlock Issues<\/h2><p class=\"wp-block-paragraph\">When you insert data in an order that conflicts with the Unique Index, especially in a high-throughput system, you drastically increase the surface area for collisions.<\/p><p class=\"wp-block-paragraph\">Imagine the unique index as a narrow, one-way bridge:<\/p><ul class=\"wp-block-list\"><li>With the Grain (Sorted)<\/li><\/ul><p class=\"wp-block-paragraph\">If Transaction A and Transaction B both arrive sorted, they cross the bridge moving in the same direction. If B is faster, it simply waits behind A. No crash.<\/p><ul class=\"wp-block-list\"><li>Against the Grain (Unsorted\/Reverse)<\/li><\/ul><p class=\"wp-block-paragraph\">If Transaction A tries to lock the bridge from left-to-right, and Transaction B tries to lock it from right to left (or jumps onto the bridge randomly), they will inevitably meet in the middle.<\/p><figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" height=\"349\" width=\"640\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/image-9.jpeg\" alt=\"Avoid MySQL Deadlocks - deadlock example transaction A and transaction B. Fix Avoid MySQL Deadlocks in Go with One Sort Function.\" class=\"wp-image-2976\"><\/figure><p class=\"wp-block-paragraph\">\/\/ Neither can move forward because the other is blocking the path.<\/p><h2 class=\"wp-block-heading\">Fix Deadlocks with Sorted Events<\/h2><p class=\"wp-block-paragraph\">Once we identified the friction between our logical input order and the physical database storage, the fix was simple. We implemented a sort function on the consumer side to <strong>align our events with the database index<\/strong> before inserting them into the table.<br><\/p><p class=\"wp-block-paragraph\">We forced the application to sort events strictly by the columns in our Unique Index (ID, Country, Date).\u00a0<\/p><p class=\"wp-block-paragraph\">It aligned our logical locking order with the database\u2019s physical storage. Everyone started crossing the bridge in the same direction, and the deadlocks vanished.<\/p><h2 class=\"wp-block-heading\">Results<\/h2><p class=\"wp-block-paragraph\">What\u2019s better than deadlock monitoring? Deadlock monitoring that is completely flat.<\/p><figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" height=\"373\" width=\"1600\" src=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/image-3.png\" alt=\"Avoid MySQL Deadlocks in Go with One Sort Function\u00a0\" class=\"wp-image-2977\"><\/figure><p class=\"wp-block-paragraph\">Understanding the underlying mechanics of<strong> InnoDB locking<\/strong> and aligning our application logic to match helped eliminate the instability without upgrading hardware or changing the database engine.<\/p><h2 class=\"wp-block-heading\">End Note<\/h2><p class=\"wp-block-paragraph\">MySQL deadlocks in high-traffic systems are often invisible until they cause real data gaps, but the solution doesn\u2019t have to be complex.\u00a0<\/p><p class=\"wp-block-paragraph\">At adjoe, simply sorting events to match the Unique Index transformed the reporting pipeline into a stable, deadlock-free system.\u00a0<\/p><p class=\"wp-block-paragraph\">This highlights a key lesson for engineering teams: understanding how your application logic interacts with database storage can prevent subtle issues more effectively than retries, scaling, or hardware upgrades.<\/p><p class=\"wp-block-paragraph\">For more in-depth adtech insights, check out the<a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/\" target=\"_blank\" rel=\"noreferrer noopener\"> adjoe engineers blog<\/a>.\u00a0<\/p><h2 class=\"wp-block-heading\">FAQs<\/h2><h4 class=\"wp-block-heading\">How do I detect deadlocks in MySQL?<\/h4><p class=\"wp-block-paragraph\">You can detect <strong>MySQL deadlocks<\/strong> by checking the <strong>InnoDB status<\/strong> using SHOW ENGINE INNODB STATUS;<\/p><p class=\"wp-block-paragraph\"><a href=\"https:\/\/adjoe.io\/company\/engineer-blog\/debug-sql-connections-with-go-pprof-profiling-tool\/\" target=\"_blank\" rel=\"noreferrer noopener\">MySQL <\/a>automatically detects deadlocks and rolls back one of the conflicting transactions. Monitoring logs and enabling the <strong>performance schema<\/strong> can also help identify recurring deadlocks.<\/p><h4 class=\"wp-block-heading\">How do gap locks contribute to deadlocks?<\/h4><p class=\"wp-block-paragraph\">Gap locks temporarily reserve spaces between rows for inserts. If two transactions try to insert in the same gap simultaneously, they can block each other, causing a deadlock.<\/p><h2 class=\"wp-block-heading\" style=\"font-size:26px\">Build products that move markets<\/h2>","protected":false},"excerpt":{"rendered":"<p>At adjoe, the largest rewarded mobile ad network, we process massive volumes of data, user clicks, views, scrolls and installs&#8230;.<\/p>\n","protected":false},"author":3,"featured_media":2978,"template":"","engineer_blog_category":[76],"class_list":["post-2807","engineer_blog","type-engineer_blog","status-publish","has-post-thumbnail","hentry","engineer_blog_category-backend"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/\" \/>\n<meta property=\"og:locale\" content=\"ko_KR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"og:description\" content=\"At adjoe, the largest rewarded mobile ad network, we process massive volumes of data, user clicks, views, scrolls and installs....\" \/>\n<meta property=\"og:url\" content=\"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/\" \/>\n<meta property=\"og:site_name\" content=\"adjoe | Making every interaction the start of lasting value\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-14T15:58:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/\",\"name\":\"Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg\",\"datePublished\":\"2026-01-15T12:26:04+00:00\",\"dateModified\":\"2026-11-14T15:58:30+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/#breadcrumb\"},\"inLanguage\":\"ko-KR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/#primaryimage\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/01\\\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg\",\"width\":1920,\"height\":1080,\"caption\":\"Eliminate MySQL Deadlocks in Go with One Sort Function\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/company\\\/engineer-blog\\\/fix-mysql-deadlocks-in-go-with-one-sort-function\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Fix MySQL Deadlocks in Go with One Sort Function\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#website\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"description\":\"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.\",\"publisher\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ko-KR\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#organization\",\"name\":\"adjoe | Making every interaction the start of lasting value\",\"url\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ko-KR\",\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"contentUrl\":\"https:\\\/\\\/adjoe.io\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/OG-img-1200x630-1.jpg\",\"width\":1200,\"height\":630,\"caption\":\"adjoe | Making every interaction the start of lasting value\"},\"image\":{\"@id\":\"https:\\\/\\\/adjoe.io\\\/ko\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/people\\\/Adjoe\\\/100076450974671\\\/\",\"https:\\\/\\\/www.instagram.com\\\/adjoe.io\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/adjoe\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/","og_locale":"ko_KR","og_type":"article","og_title":"Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value","og_description":"At adjoe, the largest rewarded mobile ad network, we process massive volumes of data, user clicks, views, scrolls and installs....","og_url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/","og_site_name":"adjoe | Making every interaction the start of lasting value","article_publisher":"https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","article_modified_time":"2026-11-14T15:58:30+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/","url":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/","name":"Fix MySQL Deadlocks in Go with One Sort Function - adjoe | Making every interaction the start of lasting value","isPartOf":{"@id":"https:\/\/adjoe.io\/ko\/#website"},"primaryImageOfPage":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/#primaryimage"},"image":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/#primaryimage"},"thumbnailUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg","datePublished":"2026-01-15T12:26:04+00:00","dateModified":"2026-11-14T15:58:30+00:00","breadcrumb":{"@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/#breadcrumb"},"inLanguage":"ko-KR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/"]}]},{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/#primaryimage","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/01\/2026.01.13-Eliminate-MySQL-Deadlocks-in-Go-with-One-Sort-Function.jpg","width":1920,"height":1080,"caption":"Eliminate MySQL Deadlocks in Go with One Sort Function"},{"@type":"BreadcrumbList","@id":"https:\/\/adjoe.io\/ko\/company\/engineer-blog\/fix-mysql-deadlocks-in-go-with-one-sort-function\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/adjoe.io\/ko\/"},{"@type":"ListItem","position":2,"name":"Fix MySQL Deadlocks in Go with One Sort Function"}]},{"@type":"WebSite","@id":"https:\/\/adjoe.io\/ko\/#website","url":"https:\/\/adjoe.io\/ko\/","name":"adjoe | Making every interaction the start of lasting value","description":"adjoe is a global tech company powering user acquisition, monetization and audience engagement across the app economy \u2013 making every interaction the start of lasting value.","publisher":{"@id":"https:\/\/adjoe.io\/ko\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/adjoe.io\/ko\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ko-KR"},{"@type":"Organization","@id":"https:\/\/adjoe.io\/ko\/#organization","name":"adjoe | Making every interaction the start of lasting value","url":"https:\/\/adjoe.io\/ko\/","logo":{"@type":"ImageObject","inLanguage":"ko-KR","@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/","url":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","contentUrl":"https:\/\/adjoe.io\/wp-content\/uploads\/2026\/11\/OG-img-1200x630-1.jpg","width":1200,"height":630,"caption":"adjoe | Making every interaction the start of lasting value"},"image":{"@id":"https:\/\/adjoe.io\/ko\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/people\/Adjoe\/100076450974671\/","https:\/\/www.instagram.com\/adjoe.io\/","https:\/\/www.linkedin.com\/company\/adjoe"]}]}},"_links":{"self":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog"}],"about":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/types\/engineer_blog"}],"author":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/users\/3"}],"version-history":[{"count":4,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2807\/revisions"}],"predecessor-version":[{"id":3718,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog\/2807\/revisions\/3718"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media\/2978"}],"wp:attachment":[{"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/media?parent=2807"}],"wp:term":[{"taxonomy":"engineer_blog_category","embeddable":true,"href":"https:\/\/adjoe.io\/ko\/wp-json\/wp\/v2\/engineer_blog_category?post=2807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}