<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Database on Neat Guy Coding</title><link>https://neatguycoding.com/categories/database/</link><description>Recent content in Database on Neat Guy Coding</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2026 NeatGuyCoding</copyright><lastBuildDate>Wed, 01 May 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://neatguycoding.com/categories/database/index.xml" rel="self" type="application/rss+xml"/><item><title>PostgreSQL vs MySQL: Finding the Right Fit for Your OLTP Workloads</title><link>https://neatguycoding.com/posts/pgsql-mysql/</link><pubDate>Wed, 01 May 2024 00:00:00 +0000</pubDate><guid>https://neatguycoding.com/posts/pgsql-mysql/</guid><description>A comprehensive comparison of PostgreSQL and MySQL for OLTP scenarios, exploring their fundamental architectural differences in secondary index handling and MVCC implementation, with practical insights on when to choose each database.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://neatguycoding.com/posts/pgsql-mysql/featured.jpg"/></item><item><title>Tackling Performance Degradation in Sharded MySQL Tables: Understanding the Root Cause and Solutions</title><link>https://neatguycoding.com/posts/recreate_table/</link><pubDate>Fri, 27 May 2022 00:00:00 +0000</pubDate><guid>https://neatguycoding.com/posts/recreate_table/</guid><description>A comprehensive guide to understanding why MySQL queries slow down over time in sharded environments, exploring the underlying causes of storage fragmentation and MVCC-related issues, and providing practical solutions using table rebuilding techniques with OPTIMIZE TABLE for maintaining optimal database performance.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://neatguycoding.com/posts/recreate_table/featured.jpg"/></item><item><title>MySQL Optimizer Statistics: Why Your Queries Choose the Wrong Index</title><link>https://neatguycoding.com/posts/sql-index/</link><pubDate>Thu, 24 Feb 2022 00:00:00 +0000</pubDate><guid>https://neatguycoding.com/posts/sql-index/</guid><description>A deep dive into MySQL&amp;rsquo;s InnoDB optimizer statistics and how sampling inaccuracies can lead to poor index selection, causing dramatic performance differences between similar queries. Learn practical solutions to prevent slow SQL queries caused by optimizer misjudgments.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://neatguycoding.com/posts/sql-index/featured.jpg"/></item><item><title>A Hidden Production Issue Discovered Through SQL Optimization</title><link>https://neatguycoding.com/posts/big-table-index-invalid/</link><pubDate>Sat, 07 Aug 2021 00:00:00 +0000</pubDate><guid>https://neatguycoding.com/posts/big-table-index-invalid/</guid><description>When our operations team brought us a complex SQL query that was taking forever to execute, we thought it was just a performance issue. Little did we know, this investigation would uncover a deeply hidden character encoding mismatch that had been silently causing full table scans in our production database.</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://neatguycoding.com/posts/big-table-index-invalid/featured.jpg"/></item></channel></rss>