Mafiree logo
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
Schedule a Call
Menu
  • About
  • Services
  • Blogs
  • Careers
  • Products
    • orbit logo Orbit
    • streamer logo Xstreami
  • Contact
  • Schedule a Call
Database
Database Managed Database Services
MySQL MySQL
MySQL Consulting
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB MongoDB
MongoDB Consulting
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL PostgreSQL
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
SQL Server MSSQL
MSSQL Consulting
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Aerospike
Aerospike Consulting
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
Clickhouse Clickhouse
ClickHouse Consulting
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB TiDB
TiDB Consulting
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB ScyllaDB
ScyllaDB Consulting
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
DevOps
DevOps DevOps Services
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Networking
Networking Networking Services
Basic Basic
Advanced Advanced
MySQL MySQL
MongoDB MongoDB
PostgreSQL PostgreSQL
MSSQL MSSQL
Aerospike Aerospike
Clickhouse Clickhouse
TiDB TiDB
ScyllaDB ScyllaDB
Version Control Version Control
Kubernetes Kubernetes
Infrastructure Infrastructure Management
Web Servers Web Servers
Basic Basic
Advanced Advanced
MySQL Consulting
MySQL Migration Services
MySQL Optimization & Query Tuning
MySQL Database Administration
MySQL Backup & Recovery
MySQL Security & Maintenance
MySQL Cloud Services (AWS RDS, Aurora, Google Cloud SQL, Azure)
MySQL for Ecommerce
MySQL High Availability & Replication
MongoDB Consulting
MongoDB Migration Services
MongoDB Optimization & Query Tuning
MongoDB Database Administration
MongoDB Backup & Recovery
MongoDB Security & Maintenance
MongoDB Cloud (Atlas)
MongoDB Solutions by Industry
MongoDB High Availability & Replication
PostgreSQL Consulting
PostgreSQL Migration & Upgrades
Performance Tuning & Query Optimization
PostgreSQL Administration & Managed Services
High Availability, Clustering & Replication
PostgreSQL Backup, Recovery & Disaster Planning
PostgreSQL Security, Compliance & Auditing
PostgreSQL for Analytics & Data Warehousing
PostgreSQL on Cloud & Containers
PostgreSQL Extensions & Open-Source Integrations
PostgreSQL for Every Industry
MSSQL Consulting
MSSQL Migration Services
MSSQL Optimization & Query Tuning Services
MSSQL Database Administration Services
MSSQL Backup & Recovery Services
MSSQL High Availability & Replication Services
MSSQL Security & Compliance Services
MSSQL Performance Monitoring & Health Checks
MSSQL Solutions by Industry
Aerospike Consulting
Aerospike Migration Services
Aerospike Performance Optimization & Tuning
Aerospike Backup & Recovery
Aerospike High Availability
Aerospike Cloud & Hybrid Deployments
Aerospike for Real-Time Applications (AdTech, FinTech, Retail, IoT)
ClickHouse Consulting
ClickHouse Migration Services
ClickHouse Optimization & Query Tuning
ClickHouse Database Administration
ClickHouse Backup & Recovery
ClickHouse Security & Maintenance
ClickHouse Cloud Services (ClickHouse Cloud, AWS, GCP, Azure)
ClickHouse Solutions by Industry
ClickHouse High Availability & Replication
TiDB Consulting
TiDB Administration & Maintenance
TiDB Security and Privacy Maintenance
TiDB Performance & Query Optimization
TiDB Migration Services
TiDB Backup & Disaster Recovery
TiDB High Availability Solutions
TiDB Solutions by Industry
TiDB Cloud Services
ScyllaDB Consulting
ScyllaDB Administration & Maintenance
ScyllaDB Security and Privacy Maintenance
ScyllaDB Performance & Query Optimization
ScyllaDB Migration Services
ScyllaDB Backup & Disaster Recovery
ScyllaDB High Availability Solutions
ScyllaDB Solutions by Industry
ScyllaDB Cloud Services
  1. Home
  2. > Blogs
  3. > MySQL
  4. > Check Constraints in MySQL

Check Constraints in MySQL

Master Database Integrity with Check Constraints: Improve Data Quality and System Performance

Jenishker September 10, 2026

Subscribe for email updates

Summarize with AI: ChatGPT Google AI Perplexity Claude Grok

 

Why Check Constraints?

Check constraints serve several essential purposes in database design:

  1. Ensuring Data Validity: They prevent invalid data from being entered into the database. For example, a check constraint can ensure that an age field only accepts non-negative integers, effectively eliminating erroneous entries.
  2. Enhancing Data Quality: By enforcing specific rules, check constraints improve the overall quality of the data. This is crucial for applications that rely on accurate and consistent data for reporting and analysis.
  3. Reducing Application Complexity: Implementing checks at the database level reduces the need for extensive validation logic within application code. This leads to cleaner, more maintainable code, allowing developers to focus on business logic rather than data validation.
  4. Improving Performance: With constraints managed at the database level, applications can execute operations faster since they don’t need to perform additional checks. This can lead to better overall system performance.

Introduction to CHECK Constraints in Databases

In database management, it's important to ensure that the data stored is accurate and follows certain rules. One way to do this is by using check constraints. A check constraint lets you set conditions that data must meet before it can be added or updated in a table. For example, you can make sure that an "age" column only accepts values 18 or older, or that a "status" column can only have values like "active" or "inactive." These constraints help prevent invalid or incorrect data from being entered into the database.

 

However, while check constraints are valuable for ensuring data correctness, they can introduce some performance challenges, particularly in large-scale systems. The problem arises when a database grows in size, and the volume of transactions increases. Even simple check constraints can add overhead, slowing down operations like inserting, updating, or querying data. More complex constraints—such as those involving calculations, functions, or checking large datasets—can lead to significant performance bottlenecks. In high-traffic applications or large databases, this can impact the overall system efficiency, leading to slower response times and reduced throughput.
 

mysql> CREATE TABLE tbl_1 (
    -> age INT CHECK (age > 0) -- Ensure that age is greater than 0
    -> );
Query OK, 0 rows affected (0.08 sec)

mysql> show CREATE TABLE tbl_1\G
*************************** 1. row ***************************
      Table: tbl_1
Create Table: CREATE TABLE `tbl_1` (
  `age` int DEFAULT NULL,
  CONSTRAINT `tbl_1_chk_1` CHECK ((`age` > 0))
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
1 row in set (0.00 sec)

mysql> INSERT INTO tbl_1 (age) VALUES (25);  -- This will succeed
Query OK, 1 row affected (0.01 sec)

mysql> INSERT INTO tbl_1 (age) VALUES (-5);  -- This will fail due to CHECK constraint
ERROR 3819 (HY000): Check constraint 'tbl_1_chk_1' is violated.

 

Current Problem with CHECK Constraints

The current challenge with check constraints is balancing data integrity with system performance. As databases scale up and more complex business logic is required, the overhead of constantly evaluating check constraints can become noticeable. For instance, when dealing with large datasets or frequently updating rows, the system must evaluate these constraints every time data is modified, which can slow down operations. 

 

This becomes more problematic when constraints are more complex, involving functions, subqueries, or conditions based on other tables. As a result, the very tool that ensures data correctness can become a source of performance issues if not carefully managed.

 

In short, while check constraints are essential for maintaining valid data, their impact on performance—especially in large, high-traffic databases—needs to be carefully considered.

 

Understanding CHECK Constraints

Definition and Purpose
Check constraints are rules applied to a column or a set of columns in a database table that enforce specific conditions on the data that can be stored. They are designed to ensure that only valid data is entered, thus maintaining data integrity.

 

How to create a CHECK Constraint?

To create a CHECK constraint while creating a new table, you can define it directly in the table definition. Here’s an example:

 

mysql> CREATE TABLE Employees (
    ->     EmployeeID INT PRIMARY KEY,
    ->     Name VARCHAR(100),
    ->     Age INT CHECK (Age >= 18)  -- CHECK constraint to ensure age is 18 or older
    -> );
Query OK, 0 rows affected (0.10 sec)

mysql> 

 

All check constraints are enforced by default. If the user wants to create a check constraint but does not want to enforce it, then the “NOT ENFORCED” clause is used.

 

mysql> CREATE TABLE Employees1 (     EmployeeID INT PRIMARY KEY,     Name VARCHAR(100),
Age INT CHECK (Age >= 18) NOT ENFORCED )
    -> ;
Query OK, 0 rows affected (0.09 sec)

How to add a check constraint to an existing table?

 

To add a CHECK constraint to an already existing table, you can use the ALTER TABLE statement:

 

mysql> ALTER TABLE Employees ADD CONSTRAINT chk_age CHECK (Age >= 18);
Query OK, 0 rows affected (0.10 sec)
Records: 0  Duplicates: 0  Warnings: 0

How to drop a check constraint?

 

To drop a CHECK constraint from a table, you use the ALTER TABLE command along with DROP CONSTRAINT:

 

mysql> ALTER TABLE Employees
    -> DROP CONSTRAINT chk_age;  -- Use the name of the constraint you want to drop
Query OK, 0 rows affected (0.10 sec)
Records: 0  Duplicates: 0  Warnings: 0

What is the effect of CHECK constraint on DMLs?

CHECK constraints affect Data Manipulation Language (DML) operations such as INSERT and UPDATE. When you try to insert or update a row in a table, the CHECK constraint ensures that the data meets the specified conditions. If it doesn't, the operation will fail with an error. For example:

 

mysql> INSERT INTO Employees (EmployeeID, Name, Age) VALUES (1, 'jenish', 17);  -- This will fail due to not validating the age.
ERROR 3819 (HY000): Check constraint 'Employees_chk_1' is violated.
mysql> INSERT INTO Employees (EmployeeID, Name, Age) VALUES (1, 'sunil', 20);  -- This will succeed due to the age validating the conditions.
Query OK, 1 row affected (0.02 sec)

Where to find information about all the defined CHECK constraints?

 

To find information about all defined CHECK constraints in your database, you can query the information_schema database, specifically the TABLE_CONSTRAINTS table:

 

mysql> SELECT * FROM information_schema.table_constraints WHERE TABLE_NAME = 'Employees';
+--------------------+-------------------+-----------------+--------------+------------+-----------------+----------+
| CONSTRAINT_CATALOG | CONSTRAINT_SCHEMA | CONSTRAINT_NAME | TABLE_SCHEMA | TABLE_NAME | CONSTRAINT_TYPE | ENFORCED |
+--------------------+-------------------+-----------------+--------------+------------+-----------------+----------+
| def                | chk_const         | PRIMARY         | chk_const    | Employees  | PRIMARY KEY     | YES      |
| def                | chk_const         | Employees_chk_1 | chk_const    | Employees  | CHECK           | YES      |
+--------------------+-------------------+-----------------+--------------+------------+-----------------+----------+
2 rows in set (0.00 sec)

Check Constraints: Column vs. Table

1.Column-level Check Constraints

 

Definition:
Check rules that apply directly to a single column in a database table. They restrict the type of data that can be entered into that specific column, ensuring that the data meets certain criteria.

 

Characteristics:

  • Scope: Affects only the specified column.
  • Implementation: Can be defined during table creation or added later through an ALTER statement.
  • CHECK: Validates that data meets a specific condition for that column.
mysql> CREATE TABLE Products (
    ->     ProductID INT PRIMARY KEY,
    ->     Price DECIMAL(10, 2) CHECK (Price > 0)  -- Ensure Price is greater than 0
    -> );
Query OK, 0 rows affected (0.05 sec)

Advantages:

  • Simplicity: Easier to implement for straightforward validations that only involve one column.
  • Clarity: Makes the intention clear by tying constraints directly to the column in question.

2. Table-level Check Constraints 

 

Definition:
Table constraints are rules defined at the table level. They can involve one or more columns and allow for more complex validation rules that consider relationships between columns.

 

Characteristics:

  • Scope: Can reference multiple columns within the same table.
  • Implementation: Typically defined when the table is created or can be added later using ALTER TABLE.
  • CHECK: Can involve multiple columns to enforce a condition.
mysql> CREATE TABLE Events (
    ->     StartDate DATE,
    ->     EndDate DATE,
    ->     CONSTRAINT chk_dates CHECK (StartDate < EndDate)  -- Correctly defining the CHECK constraint
    -> );
Query OK, 0 rows affected (0.03 sec)

 

Advantages:

  • Complex Validations: Allows for validations that depend on the values of multiple columns, which is essential for maintaining data integrity.
  • Better Organization: Centralizes constraints related to multiple columns, making it easier to understand how they work together.

 

Key Differences

 

Feature

 

Column-level Check Constraints

Table-level Check Constraints 

Scope

Affects a single column

Can involve multiple columns

Use Case

Simple validations

Complex validations involving relationships

Implementation

Directly within the column definition

Defined at the table level

 

3. Limitations of Check Constraints

No Cross-Table References
Check constraints cannot reference data in other tables, which limits their use for enforcing foreign key relationships or validating against data elsewhere in the database.

 

Do we see any performance issue while using check constraints:

Using check constraints in a database is an effective way to ensure data integrity, meaning that only valid values can be inserted or updated in a column. In most cases, these constraints don't cause significant performance issues, as they are relatively lightweight. However, there are a few things to consider, especially if you're working with large-scale databases or complex constraints.

 

If you're concerned about performance, here are some best practices:

  • Keep the constraint expressions simple.
  • Ensure relevant columns are indexed.
  • Minimize the use of complex logic inside constraints.
  • Test how your DBMS handles constraints with large volumes of data

Conclusion:

Check constraints are essential for maintaining the integrity and reliability of your database. They ensure that your data stays accurate and consistent, just like how Mafiree provides 24/7 service to keep things running smoothly. By using check constraints, we can prevent invalid data from entering your system and help your database perform efficiently.

 

At Mafiree, we understand the importance of maintaining high data quality. We work closely with you to implement and regularly review your check constraints, ensuring your data stays secure and compliant. As your data needs grow, we’ll adjust and optimize your constraints to keep your systems running efficiently, providing you with reliable support around the clock.

 

we help ensure that your data remains secure, accurate, and compliant—today, tomorrow, and beyond

FAQ

A CHECK constraint is a database rule that ensures values inserted or updated in a table satisfy a specified condition. It helps maintain data integrity by preventing invalid data from being stored.
CHECK constraints validate data during INSERT and UPDATE operations. If the data does not satisfy the defined condition, the database rejects the operation with an error.
CHECK constraints are generally lightweight and do not cause significant performance issues in most cases. However, complex constraints and large-scale workloads can introduce overhead during data modifications. Keeping constraint expressions simple can help minimize performance impact.
Column-level CHECK constraints validate values in a specific column, while table-level CHECK constraints can evaluate conditions involving multiple columns.
You can add a CHECK constraint to an existing MySQL table using the ALTER TABLE statement with ADD CONSTRAINT and the required validation condition.

Leave a Comment

Related Blogs

MySQL Deadlock Analysis: Diagnosing and Resolving Lock Contention in High-Concurrency Workloads

A MySQL deadlock occurs when two or more transactions hold locks that each other needs, creating a circular dependency that prevents them from proceeding. InnoDB detects the deadlock and rolls back one transaction; applications typically receive MySQL error 1213 and should safely retry the transaction. To diagnose a deadlock, start with SHOW ENGINE INNODB STATUS; for recurring incidents, use innodb_print_all_deadlocks and Performance Schema data_locks and data_lock_waits to investigate lock relationships. Common causes include inconsistent transaction ordering, long-running transactions, and inefficient indexing or locking patterns. The most effective fixes are to keep transactions short, access shared resources in a consistent order, optimize the indexes used by locking statements, and implement safe retry handling.

  316 views
MySQL Consulting vs In-House DBA: Which Is Right for Your Team?

Choose an in-house DBA when you need continuous database ownership, deep knowledge of internal systems, and day-to-day operational control. Choose MySQL consulting when you need specialized expertise, performance tuning, migrations, complex troubleshooting, or additional database capacity without hiring a full-time specialist. A hybrid model can be the best fit when your team handles routine database operations internally but needs external expertise for complex projects, peak workloads, or specialized MySQL problems. The right choice depends on workload consistency, technical complexity, required coverage, internal expertise, scalability, and total cost—not simply the hourly or salary cost. Mafiree's managed database services provide ongoing MySQL support alongside specialized database expertise for organizations that need more flexibility than a purely in-house model.

  232 views
MySQL Consultant: When to Call in a Performance Expert

Most MySQL slowdowns are fixable in-house. A smaller set of problems keep coming back, keep growing, or sit outside what routine tuning can solve — and that's the line worth knowing before an incident forces the decision for you.

  319 views
MySQL Performance Issues: 7 Signs You Need Professional Tuning

MySQL performance issues are rarely sudden — they build over time through slow queries, InnoDB buffer pool misses, replication lag, lock contention, thread pile-ups, tablespace bloat, and unstable query plans. This post identifies the seven most reliable signs that your MySQL environment needs professional DBA attention, with diagnostic queries and remediation guidance for each.

  13172 views
Column-Level Security: Enterprise Data Protection Without the Infrastructure Overhead

Column-level security is a native database feature that restricts access to specific table columns by user role. Mafiree implemented this for a client as a cost-effective replacement for a planned CDC replication architecture that existed solely to strip sensitive columns. The result: zero additional infrastructure, single source of truth, full GDPR/HIPAA compliance posture, and validated in production with no performance impact.

  1173 views
MySQL Schema Migration Without Downtime: A Real Fintech Case Study

Schema changes on large MySQL tables can bring production systems to a halt if not handled correctly. This case study walks through how Mafiree helped a fintech client execute a zero-downtime MySQL schema migration on a 500M+ row production database — covering the real challenges faced, the three-phase tool strategy using gh-ost, pt-online-schema-change, and MySQL 8.0 INSTANT DDL, production configuration settings with performance benchmarks, and best practices for safely evolving your MySQL schema without impacting users

  4280 views
MySQL Architecture Explained: Performance Tuning & Troubleshooting Guide

MySQL features a unique tiered architecture that separates query processing from data storage through its pluggable storage engine model. This guide explores the core components—from connection handling and the SQL optimizer to the physical storage of data on disk. By understanding how engines like InnoDB provide ACID compliance and row-level locking, you can significantly improve your database's scalability. We also break down the query execution workflow and provide actionable tips for performance tuning, such as optimizing the buffer pool. Whether you're managing a replica set or a standalone instance, mastering MySQL’s internal structure is essential for building high-performance applications.

  2251 views
MariaDB vs MySQL: What's Different in 2026 and Which One Should You Use

Discover how MariaDB 11.x is redefining open-source databases with cutting-edge features like system-versioned tables, native AI-ready vector support, UUIDv7 for scalable inserts, and enterprise-grade security; all in the Community Edition, without the paywall.

  1677 views
MySQL’s Connection Control Plugin for Brute-Force Protection: A DBA Security Guide

“Fortify Your MySQL Security: Slow Down Attackers with Connection Control Plugin” Learn how the MySQL Connection Control Plugin helps defend against brute-force login attempts by introducing intelligent, progressive delays—without locking out legitimate users.

  13143 views
MySQL 8.4 Migration: Key Changes for IT Leaders

Explore the 8 critical changes in MySQL 8.4 you need to know before migrating your production environment. From authentication updates to InnoDB defaults, this release brings significant operational implications for developers and DBAs.

  175 views
Load Balancing in MySQL: Read and Write Traffic Optimization Using MySQL Router

Optimize MySQL traffic with MySQL Router — smart load balancing made easyRouter Architecture image widget

  1906 views
Guarding Your Account: 5 Essential Tips to Evade Common Password Mistakes.

How to Secure your mysql database with the mysql validate password component

  3526 views
Access Control & Account Management In MySQL 8

Discover how MySQL 8 enhances security through features like password expiry, password validation, account lock/unlock, privilege management, and dual passwords. Safeguard your valuable data and streamline access control in your MySQL environment.

  3851 views
Significance of using Invisible Primary key (GIPK) with MySQL 8.0

How Generated Invisible Primary Keys (GIPK) Can Boost Your Database Efficiency

  3689 views
Optimize Your Database: Exploring MySQL 8.0 JSON Functions

This blog highlights the some of the important JSON function in MySQL 8.0 with examples. Level up your SQL skills with MySQL 8.0's JSON functions.

  5124 views
Best practices on enabling Audit log on MySQL, MariaDB and ProxySQL

Importance of audit log in MySQL, MariaDB and ProxySQL. Best practices to enable audit log

  5150 views
High Availability for MySQL using Orchestrator and ProxySQL

Auto slave promotion without any DBAs intervention using Orchestrator and ProxySQL. If you are looking for a HA solution without going for synchronous replication or Aws RDS then Orchestrator with ProxySQL is a great choice.

  3396 views
Understanding the Spider Storage Engine

MariaDB Spider is a storage engine that supports federation and sharding across multiple MySQL or MariaDB servers. It helps distribute data and workloads, making it useful for scaling large datasets, balancing traffic, and improving data retrieval through parallel processing.

  1723 views
Avoid deadlocks, certification failures on Galera Cluster using ProxySQL

Dealing with deadlocks, certification failures on Galera cluster by running single node writer using ProxySQL

  7047 views
MySQL Character Set: UTF8MB4 vs UTF8 and How to Choose the Right Encoding

Choosing the right MySQL character set is critical for ensuring accurate data storage, multilingual support, and proper text comparison. While the legacy utf8 (utf8mb3) character set supports only up to 3-byte characters, it fails to handle modern Unicode requirements such as emojis and certain international symbols. In contrast, utf8mb4 provides full 4-byte Unicode support, making it the recommended standard for modern applications. This guide explains the differences between UTF8MB4 and UTF8, their impact on storage and performance, and provides step-by-step instructions to configure and migrate your MySQL databases safely.

  5797 views
Real time data streaming from MariaDB to Columnstore

How real time data from transactional database(mariadb) to analytic database(columnstore) is achieved using MariaDB's maxscale binlog streaming

  1459 views
Fixing the MariaDB Galera Bug: WSREP Lock Waits

A MariaDB Galera cluster can experience severe stalls when concurrent updates to the same primary key trigger an unexpected deadlock issue. This blog explains how we reproduced the issue in MariaDB 10.2, why the affected node became unresponsive, and the recovery and upgrade options used to resolve it.

  4538 views

Subscribe for email updates

Get in touch with us

Highlights

More than 6000 Servers Monitored

Happy Clients

Certified DBAs

24 x 7 x 365 Support

PCI

Database Services

MySQL MongoDB PostgreSQL SQL Server Aerospike Clickhouse TiDB ScyllaDB

Quick Links

Careers Blog Contact Privacy Policy Disclaimer Policy

Contacts

Linkedin Mafiree Facebook Mafiree Twitter Mafiree

Nagercoil Office

Miru IT Park, Vallankumaranvillai,

Nagercoil, Tamilnadu - 629 002.

Bangalore Office

Unit 303, Vanguard Rise,

5th Main, Konena Agrahara,

Old Airport Road, Bangalore - 560 017.

Call: +91 6383016411

Email: sales@mafiree.com


Copyright © - All Rights Reserved - Mafiree