<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>SQL on Netdata</title><link>https://www.netdata.cloud/tags/sql/</link><description>Recent content in SQL on Netdata</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sun, 23 Aug 2026 02:03:02 +0300</lastBuildDate><atom:link href="https://www.netdata.cloud/tags/sql/index.xml" rel="self" type="application/rss+xml"/><item><title>Using FOR UPDATE SKIP LOCKED For Queue Workflows</title><link>https://www.netdata.cloud/academy/update-skip-locked/</link><pubDate>Fri, 29 Aug 2025 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/academy/update-skip-locked/</guid><description>&lt;p&gt;One of the most common and powerful patterns in modern application development is the job queue. Whether you&amp;rsquo;re sending emails, processing images, or running complex calculations, offloading tasks to background workers is essential for building responsive and scalable systems. Many developers reach for dedicated queueing software like RabbitMQ or Redis, but for many use cases, your primary PostgreSQL database already has all the tools you need to build a robust, transactional, and incredibly performant &lt;code&gt;job_queue_postgres&lt;/code&gt;.&lt;/p&gt;</description></item><item><title>Whats The Difference Between PostgreSQL vs MySQL</title><link>https://www.netdata.cloud/academy/postgres-mysql-differences/</link><pubDate>Mon, 09 Jun 2025 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/academy/postgres-mysql-differences/</guid><description>&lt;p&gt;When building an application, one of the most fundamental decisions you&amp;rsquo;ll make is choosing the right database. For many developers, this choice boils down to two of the most popular open-source relational databases in the world: PostgreSQL and MySQL. Both are powerful, reliable, and backed by strong communities, but they operate on different philosophies and excel in different areas.&lt;/p&gt;&#10;&lt;p&gt;Making the right choice between &lt;code&gt;PostgreSQL vs MySQL&lt;/code&gt; isn&amp;rsquo;t about finding a single &amp;ldquo;best&amp;rdquo; database, but understanding which one aligns with your application&amp;rsquo;s specific needs. This guide breaks down the critical differences in their architecture, features, performance characteristics, and ideal use cases to help you make an informed decision for your next project.&lt;/p&gt;</description></item><item><title>All Types Of Databases: Advantages &amp; Examples</title><link>https://www.netdata.cloud/academy/types-of-databases/</link><pubDate>Thu, 17 Apr 2025 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/academy/types-of-databases/</guid><description>&lt;p&gt;This is a tech-savvy exploration of &lt;strong&gt;database types&lt;/strong&gt;! From the structured precision of relational models to the dynamic versatility of NoSQL, we’re diving deep into each &lt;strong&gt;DB type&lt;/strong&gt;, unpacking their perks, and dishing out some examples to help you pick the perfect fit for your digital toolbox.&lt;/p&gt;&#10;&lt;h2 id="what-is-a-database"&gt;What Is A Database?&lt;/h2&gt;&#10;&lt;p&gt;&lt;strong&gt;A database is a structured collection of stored data&lt;/strong&gt;, that allows easy access, management, and updating. They come in various types to suit different needs; from hierarchical databases that organize data in a tree-like format to relational databases that use tables and relationships among those data. Databases are essential to build any tech product from small mobile apps to large-scale enterprise systems. They help you handle, search, and efficiently utilize large data sets.&lt;/p&gt;</description></item><item><title>What Is Cardinality In Databases: A Comprehensive Guide</title><link>https://www.netdata.cloud/academy/what-is-cardinality-in-databases-a-comprehensive-guide/</link><pubDate>Mon, 29 Jan 2024 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/academy/what-is-cardinality-in-databases-a-comprehensive-guide/</guid><description>&lt;h2 id="an-introduction-to-cardinality"&gt;An Introduction To Cardinality&lt;/h2&gt;&#10;&lt;p&gt;Cardinality is a fundamental concept in databases that plays a crucial role in designing efficient databases and optimizing query performance. For those new to databases, understanding what is cardinality is essential for effective data management. This comprehensive guide will explain the meaning of cardinality, its types, and its &lt;a href="https://www.netdata.cloud/monitoring-101/mongodb-monitoring/"&gt;impact on database performance&lt;/a&gt;, making it accessible for both beginners and intermediate users.&lt;/p&gt;&#10;&lt;h2 id="what-is-cardinality-in-databases"&gt;What Is Cardinality In Databases?&lt;/h2&gt;&#10;&lt;p&gt;Cardinality in databases refers to the uniqueness of data values contained in a column. It essentially measures how many distinct values exist in a column compared to the total number of rows in a table.&lt;/p&gt;</description></item><item><title>Monitor any SQL metrics with Netdata (and Pandas ❤️)</title><link>https://www.netdata.cloud/blog/monitor-any-sql-metrics-with-netdata/</link><pubDate>Wed, 22 Feb 2023 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/blog/monitor-any-sql-metrics-with-netdata/</guid><description>&lt;p&gt;&lt;img src="../2023-02-22-monitor-any-sql-metrics-with-netdata/img/img.png" alt="img"&gt;&lt;/p&gt;&#10;&lt;p&gt;We recently got this great feedback from a dear user in our &lt;a href="https://discord.com/channels/847502280503590932/1075370683393118278/1075723915265069106"&gt;Discord&lt;/a&gt;:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;I would really like to use Netdata to monitor custom internal metrics that come from SQL, not a fan of having 10 diff systems doing essentially the same thing as is, Netdata is pretty much all there in that regard, just needs a few extra features.&lt;/p&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;This is great and exactly what we want, a clear problem or improvement we could make to help make that users monitoring life a little easier.&lt;/p&gt;</description></item><item><title>CockroachDB Monitoring</title><link>https://www.netdata.cloud/monitoring-101/cockroachdb-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/monitoring-101/cockroachdb-monitoring/</guid><description>&lt;h2 id="cockroachdb-monitoring"&gt;CockroachDB Monitoring&lt;/h2&gt;&#10;&lt;p&gt;CockroachDB is a cloud-native distributed SQL database designed to scale horizontally and survive datacenter failures. Monitoring CockroachDB is crucial for maintaining the health, performance, and reliability of your database infrastructure. Netdata provides a comprehensive CockroachDB monitoring tool that enables real-time visibility and enhanced troubleshooting capabilities to ensure optimal database operations.&lt;/p&gt;&#10;&lt;h3 id="what-is-cockroachdb"&gt;What Is CockroachDB?&lt;/h3&gt;&#10;&lt;p&gt;CockroachDB is a distributed SQL database, similar in functionality to Google Spanner, designed to deliver strong fault tolerance, consistency, and scalability across distributed environments. Its architecture allows for seamless scaling and resilience, making it an ideal choice for modern, high-demand database operations.&lt;/p&gt;</description></item><item><title>CockroachDB result is ambiguous: ambiguous commit errors and how to handle them</title><link>https://www.netdata.cloud/guides/cockroachdb/cockroachdb-result-is-ambiguous/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/cockroachdb/cockroachdb-result-is-ambiguous/</guid><description>&lt;p&gt;Your application received &lt;code&gt;result is ambiguous&lt;/code&gt; (PostgreSQL error code 40003, &lt;code&gt;statement_completion_unknown&lt;/code&gt;) from CockroachDB. The transaction may have committed. It may have been aborted. The database does not know, and neither do you.&lt;/p&gt;&#10;&lt;p&gt;This is not a bug. It is a correctness property of CockroachDB&amp;rsquo;s distributed commit protocol. When the transaction coordinator loses contact with the leaseholder during the final commit step, or during the last statement of an implicit transaction, it cannot determine whether the commit succeeded. Rather than guess and risk a silent double-apply, CockroachDB surfaces the ambiguity.&lt;/p&gt;</description></item><item><title>MySQL online DDL still blocking: ALGORITHM, LOCK, and the copy phase</title><link>https://www.netdata.cloud/guides/mysql/mysql-online-ddl-blocking/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/guides/mysql/mysql-online-ddl-blocking/</guid><description>&lt;p&gt;Online DDL in MySQL is not lock-free. Even with &lt;code&gt;ALGORITHM=INPLACE&lt;/code&gt; or &lt;code&gt;ALGORITHM=INSTANT&lt;/code&gt;, and even with &lt;code&gt;LOCK=NONE&lt;/code&gt;, every online DDL operation passes through a brief window where it upgrades its metadata lock (MDL) to exclusive. That window is short, but it is real, and it is the single most common reason an &amp;ldquo;online&amp;rdquo; schema change still stalls a busy production table.&lt;/p&gt;&#10;&lt;p&gt;This article explains the three-phase MDL model that online DDL uses, why &lt;code&gt;ALGORITHM=INPLACE&lt;/code&gt; with &lt;code&gt;LOCK=NONE&lt;/code&gt; can still block, what the copy phase actually does, and how third-party tools such as &lt;code&gt;pt-online-schema-change&lt;/code&gt; and &lt;code&gt;gh-ost&lt;/code&gt; change the picture. It assumes you already understand the broader MySQL mental model. See the hub page for the failure-pattern catalogue that frames metadata lock stalls as one of MySQL&amp;rsquo;s characteristic outage archetypes.&lt;/p&gt;</description></item><item><title>SQL Database agnostic Monitoring</title><link>https://www.netdata.cloud/monitoring-101/sql-monitoring/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://www.netdata.cloud/monitoring-101/sql-monitoring/</guid><description>&lt;h2 id="sql-database-agnostic-monitoring"&gt;SQL Database agnostic Monitoring&lt;/h2&gt;&#10;&lt;h3 id="what-is-sql-database-monitoring"&gt;What Is SQL Database Monitoring?&lt;/h3&gt;&#10;&lt;p&gt;SQL databases are an integral part of most modern applications, serving as the backbone for data storage and management. Monitoring SQL databases involves tracking performance metrics, uptime, and other critical parameters to ensure database queries run smoothly and efficiently. It helps in preemptively identifying issues such as slow queries, connection bottlenecks, or resource exhaustion.&lt;/p&gt;&#10;&lt;h3 id="monitoring-sql-databases-with-netdata"&gt;Monitoring SQL Databases With Netdata&lt;/h3&gt;&#10;&lt;p&gt;To effectively monitor SQL databases, &lt;a href="https://app.netdata.cloud/?utm_source=website&amp;amp;utm_content=monitoring101"&gt;Netdata&lt;/a&gt; utilizes an openmetrics (Prometheus) exporter. Netdata can ingest data from any Prometheus exporter, allowing users to set up automated dashboards, alerts, and more. This is achieved without needing a dedicated Prometheus server or Grafana, making it an efficient and streamlined solution for your database monitoring needs. With &lt;a href="https://github.com/free/sql_exporter"&gt;Netdata&amp;rsquo;s integration&lt;/a&gt;, you can maintain real-time insights into your database health and performance seamlessly.&lt;/p&gt;</description></item></channel></rss>