Tagged articles

SQL

2898 articles · Page 1 of 29
Java Tech Enthusiast
Java Tech Enthusiast
Oct 4, 2026 · Databases

Why SQL NULL Can't Use Equals: Three-Valued Logic & Hidden Pitfalls

This article explains why SQL NULL represents an unknown state rather than a value, how three-valued logic (TRUE, FALSE, UNKNOWN) breaks equality comparisons, and demonstrates practical pitfalls with WHERE clauses, NOT IN subqueries, aggregate functions, and MySQL's NULL-safe operator.

MySQLNOT IN pitfallNULL
0 likes · 9 min read
Why SQL NULL Can't Use Equals: Three-Valued Logic & Hidden Pitfalls
Architect's Guide
Architect's Guide
Sep 30, 2026 · Databases

10 Advanced SQL Techniques for Data Science Interviews

This article explains ten advanced SQL concepts including CTEs, recursive queries, temporary functions, pivoting with CASE WHEN, EXCEPT vs NOT IN, self-joins, ranking functions, delta calculations with LEAD/LAG, running totals, and datetime manipulation, with code examples for data science interview preparation.

CTEDateTime ManipulationPivoting
0 likes · 12 min read
10 Advanced SQL Techniques for Data Science Interviews
Programmer XiaoFu
Programmer XiaoFu
Sep 29, 2026 · Databases

Why SQL Writing Order Differs from Execution Order: Explained

This article explains the difference between SQL's written clause order and its logical execution order, detailing why WHERE cannot use column aliases, how HAVING filters groups, the impact of JOIN/ON placement in LEFT JOINs, and how to verify execution plans with EXPLAIN.

EXPLAINHAVING clauseJOIN
0 likes · 9 min read
Why SQL Writing Order Differs from Execution Order: Explained
dbaplus Community
dbaplus Community
Sep 26, 2026 · Databases

PostgreSQL JSON vs JSONB: 1M Row Benchmark Shows 7x Query Speed Gap

This article benchmarks PostgreSQL JSON and JSONB types on 1 million rows, revealing JSONB delivers 6-9x faster queries and 26% less storage despite 31% slower writes, with practical guidance on when to choose each type and how to leverage GIN indexes for optimal performance.

Data TypesDatabase BenchmarkGIN Index
0 likes · 20 min read
PostgreSQL JSON vs JSONB: 1M Row Benchmark Shows 7x Query Speed Gap
Java Captain
Java Captain
Sep 22, 2026 · Databases

MySQL JOIN: Why ON vs WHERE Placement Changes LEFT JOIN Results

This article explains how placing filter conditions in ON versus WHERE clauses affects MySQL JOIN results, demonstrating with concrete examples that INNER JOIN behaves equivalently while LEFT JOIN preserves driving table rows only when conditions are in ON, with SQL code and result comparisons.

INNER JOINJOINLEFT JOIN
0 likes · 7 min read
MySQL JOIN: Why ON vs WHERE Placement Changes LEFT JOIN Results
StarRocks
StarRocks
Sep 3, 2026 · Databases

Querying Paimon Semi-Structured Data with StarRocks: Variant, Shredding & SQL Practices

This article explains how StarRocks queries Paimon Variant data, covering the differences between regular Parquet JSON and Variant, the three-phase read architecture, Shredding optimization for hot paths, practical SQL examples using get_variant_* functions, and a decision framework for choosing between JSON, Plain Variant, Shredded Variant, and formal typed columns.

LakehousePaimonParquet
0 likes · 21 min read
Querying Paimon Semi-Structured Data with StarRocks: Variant, Shredding & SQL Practices
DataFunTalk
DataFunTalk
Sep 3, 2026 · Databases

Hologres: One SQL Engine for Multimodal Data, AI Functions & Agent Memory

Hologres evolves from a real-time data warehouse into an AI data infrastructure, integrating multimodal data via Object Tables and Dynamic Tables, providing AI Functions for hybrid search within SQL, an AI Assistant for automated warehouse operations, and a long-term memory service for cross-session agent recall.

AI FunctionsAlibaba CloudHologres
0 likes · 15 min read
Hologres: One SQL Engine for Multimodal Data, AI Functions & Agent Memory
Woodpecker Software Testing
Woodpecker Software Testing
Aug 30, 2026 · Operations

A Deep Guide to Troubleshooting Data‑Preparation Failures in Performance Testing

The article systematically dissects common data‑preparation failure patterns in performance testing, explains root‑cause tracing techniques such as SQL log sampling and dynamic timestamp generation, and proposes a three‑layer, engineering‑driven pipeline—including JSON‑Schema validation, Drools rule checks, and read‑only API verification—to ensure reliable, reproducible test data.

Rule EngineSQLdata preparation
0 likes · 8 min read
A Deep Guide to Troubleshooting Data‑Preparation Failures in Performance Testing
dbaplus Community
dbaplus Community
Aug 30, 2026 · Databases

Why OFFSET Pagination Slows You Down: Switch to Keyset and Cut Latency from Seconds to Milliseconds

The article recounts how an API that originally used OFFSET pagination suffered 2‑3 seconds response time, and after rewriting the query to Keyset (Seek) pagination—adding a secondary sort key for stability and exploring cursor pagination, index‑only OFFSET, and materialized views—the same endpoint now responds in under 200 ms, with detailed benchmark comparisons.

Cursor PaginationDatabase IndexingMaterialized Views
0 likes · 7 min read
Why OFFSET Pagination Slows You Down: Switch to Keyset and Cut Latency from Seconds to Milliseconds
liandk
liandk
Aug 25, 2026 · Databases

Final Chapter: Master SQL Server Stored Procedures – Batch Execution & Params

This concluding tutorial walks beginners through SQL Server stored procedures, highlighting their speed, reusability, and automation advantages over single statements and views, and demonstrates creating, invoking (with and without parameters), altering, and dropping procedures while sharing naming conventions and common pitfalls.

Database AutomationSQLSQL Server
0 likes · 6 min read
Final Chapter: Master SQL Server Stored Procedures – Batch Execution & Params
liandk
liandk
Aug 24, 2026 · Databases

One‑Line Queries: Using Database Views to Encapsulate Complex SQL

This article explains how database views act as virtual tables that store only query logic, allowing developers to replace repetitive, multi‑join SQL statements with a single, reusable query while improving consistency, hiding sensitive fields, and boosting development efficiency.

Database ViewsQuery OptimizationSQL
0 likes · 4 min read
One‑Line Queries: Using Database Views to Encapsulate Complex SQL
liandk
liandk
Aug 22, 2026 · Databases

Mastering Database Transactions: Eliminate Data Chaos and Loss with ACID Basics

The article explains how database transactions ensure atomicity, consistency, isolation, and durability, showing why they are essential for preventing data inconsistency, loss, and reconciliation errors, and provides step‑by‑step SQL examples of successful and rolled‑back transactions along with practical tips for safe usage.

ACIDDatabase TransactionsSQL
0 likes · 6 min read
Mastering Database Transactions: Eliminate Data Chaos and Loss with ACID Basics
liandk
liandk
Aug 20, 2026 · Databases

Mastering SQL Subqueries: Core Nested Query Techniques for Beginners

This guide explains why subqueries are essential after learning JOINs, outlines their core characteristics, common use cases, two main types, step‑by‑step examples—including single‑row, multi‑row, aggregate, and derived‑table queries—and lists five key rules to avoid pitfalls while showing when to prefer subqueries over JOINs.

Database TutorialJOIN vs SubqueryNested Query
0 likes · 6 min read
Mastering SQL Subqueries: Core Nested Query Techniques for Beginners
AI Large-Model Wave and Transformation Guide
AI Large-Model Wave and Transformation Guide
Aug 20, 2026 · Artificial Intelligence

Can You Query a Database Without Writing SQL? How NL2SQL Lets You Talk to Your Data

NL2SQL transforms natural language queries into executable SQL, enabling non‑technical users to retrieve data by simply speaking, and the article explains its workflow, evolution from rule‑based to large‑model approaches, current performance on the Spider benchmark, remaining challenges, and real‑world use cases.

AILarge Language ModelsNL2SQL
0 likes · 7 min read
Can You Query a Database Without Writing SQL? How NL2SQL Lets You Talk to Your Data
liandk
liandk
Aug 17, 2026 · Databases

MySQL Transaction Basics: ACID, Isolation Levels, and Practical Pitfall‑Avoiding Code

The article explains what a database transaction is, breaks down the ACID properties, details MySQL’s four isolation levels with their appropriate use‑cases and pitfalls, and provides step‑by‑step SQL and SpringBoot code to reproduce and resolve dirty reads, non‑repeatable reads, and phantom reads.

ACIDIsolation LevelMySQL
0 likes · 10 min read
MySQL Transaction Basics: ACID, Isolation Levels, and Practical Pitfall‑Avoiding Code
liandk
liandk
Aug 16, 2026 · Databases

Understanding DELETE vs DROP: How to Remove Data Without Dropping the Table

This article clarifies the difference between SQL DELETE and DROP TABLE, showing that DELETE removes rows while preserving table structure (and requires a WHERE clause), whereas DROP TABLE eliminates the entire table, and provides practical scenarios and code examples for each.

DELETEDROP TABLEData manipulation
0 likes · 2 min read
Understanding DELETE vs DROP: How to Remove Data Without Dropping the Table
Woodpecker Software Testing
Woodpecker Software Testing
Aug 14, 2026 · Databases

How to Diagnose Database Performance Test Failures: Real‑World Cases and a Three‑Layer Method

The article presents a systematic, three‑layer approach to uncovering root causes of database performance test failures, illustrating each step with real‑world financial and e‑commerce case studies, key metrics to monitor, reproducible fault injection techniques, and a baseline‑driven change‑gate process.

InnoDBLoad TestingSQL
0 likes · 9 min read
How to Diagnose Database Performance Test Failures: Real‑World Cases and a Three‑Layer Method
liandk
liandk
Aug 14, 2026 · Databases

Hands‑On MySQL Slow Query: Enable Logs, Analyze SQL, and Optimize Performance

The article explains what MySQL slow queries are, why they must be detected, when to enable slow‑query logging, step‑by‑step commands to configure the log, how to simulate and analyze problematic SQL with EXPLAIN, and practical optimization techniques—including index creation and Spring Boot integration—to eliminate performance bottlenecks.

MySQLPerformance OptimizationSQL
0 likes · 10 min read
Hands‑On MySQL Slow Query: Enable Logs, Analyze SQL, and Optimize Performance
liandk
liandk
Aug 14, 2026 · Databases

Safe SQL UPDATE Practices: Changing Phone Numbers, Statuses, and Prices Without Risk

This article explains how the SQL UPDATE statement modifies existing rows, emphasizes the necessity of a WHERE clause to avoid full‑table changes, provides single‑row, batch, and multi‑column examples, and advises verifying data with SELECT before executing updates in production.

Data ModificationSQLSQL tips
0 likes · 2 min read
Safe SQL UPDATE Practices: Changing Phone Numbers, Statuses, and Prices Without Risk
IT Learning Made Simple
IT Learning Made Simple
Aug 13, 2026 · Databases

Databases: I'm Not Just Your Excel‑Savvy Cousin

This article demystifies databases by contrasting them with Excel, explains core concepts such as tables, rows, columns, primary and foreign keys, compares relational and NoSQL systems, introduces SQL CRUD operations, ACID properties, and provides a quick MySQL hands‑on guide, helping readers decide when to adopt a database.

ACIDMySQLNoSQL
0 likes · 10 min read
Databases: I'm Not Just Your Excel‑Savvy Cousin
liandk
liandk
Aug 13, 2026 · Databases

How to Use ORDER BY to Automatically Sort SQL Query Results

When query results appear unordered, the SQL ORDER BY clause lets you instantly arrange rows by ascending or descending values—such as timestamps, amounts, or multiple fields—providing clean, organized output for latest‑first displays, statistical sorting, and tidy list presentations.

ORDER BYSQLdatabase
0 likes · 2 min read
How to Use ORDER BY to Automatically Sort SQL Query Results
samdeepthink
samdeepthink
Aug 13, 2026 · Databases

Why High Traffic Makes SQL JOINs a Bottleneck

When traffic spikes, a multi‑table JOIN can hold database connections far longer than separate single‑table queries, quickly exhausting the connection pool and slowing the entire system, as demonstrated by concrete timing examples and a practical workaround.

Database ConnectionsJOINSQL
0 likes · 3 min read
Why High Traffic Makes SQL JOINs a Bottleneck
liandk
liandk
Aug 11, 2026 · Databases

Mastering SELECT: The Most Used SQL Query for Beginners

SELECT is the most frequently used SQL command, handling about 80% of data‑related work; this guide explains its core role, basic operations such as selecting all rows, specific columns, distinct values, and row limits, shows practical code examples, and advises against using SELECT * for better performance.

Data RetrievalSQLSQL Basics
0 likes · 2 min read
Mastering SELECT: The Most Used SQL Query for Beginners
Data STUDIO
Data STUDIO
Aug 10, 2026 · Databases

Master DuckDB: From Your First SQL Query to Analyzing Ten Million E‑Commerce Rows

This comprehensive DuckDB tutorial explains why loading large CSV files into Pandas is inefficient, demonstrates how DuckDB can query CSV, Parquet, and JSON directly, walks through SQL basics, advanced features like window functions and CTEs, compares performance against Pandas on ten‑million‑row datasets, and provides practical tips for tuning, common pitfalls, and when to choose DuckDB for data analysis.

Data AnalysisDuckDBParquet
0 likes · 28 min read
Master DuckDB: From Your First SQL Query to Analyzing Ten Million E‑Commerce Rows
liandk
liandk
Aug 10, 2026 · Databases

INSERT Basics: A Beginner’s Hands‑On Guide to Adding Data

This tutorial explains the purpose of the SQL INSERT statement, compares column‑specified and full‑field syntax, shows single‑row and batch‑row examples using a UserInfo table, and highlights common pitfalls such as column‑value ordering, quoting rules, and auto‑increment IDs.

Data InsertionINSERTSQL
0 likes · 2 min read
INSERT Basics: A Beginner’s Hands‑On Guide to Adding Data
liandk
liandk
Aug 8, 2026 · Databases

SQL for Absolute Beginners: Core Database Operations (Create, View, Delete)

This tutorial walks SQL newcomers through the three essential database commands—creating a database, listing all databases, switching to a specific one, and safely dropping a database—providing copy‑paste code, practical scenarios, and beginner‑focused pitfalls.

Database BasicsSQLSQL Server
0 likes · 3 min read
SQL for Absolute Beginners: Core Database Operations (Create, View, Delete)
YiSu Grain
YiSu Grain
Aug 7, 2026 · Databases

Day 50: Relational Database Normalization – From Functional Dependencies to Normal Form Decomposition

This lesson walks through relational database normalization using a messy enrollment table, showing how to derive functional dependencies, identify candidate keys, detect partial, transitive and BCNF violations, and systematically decompose the schema into student, major, course, teacher and enrollment tables while ensuring lossless joins and dependency preservation.

BCNFRelational DatabaseSQL
0 likes · 30 min read
Day 50: Relational Database Normalization – From Functional Dependencies to Normal Form Decomposition
ITPUB
ITPUB
Aug 7, 2026 · Databases

Left Join: ON vs WHERE – Understanding the Crucial Difference

The article explains that in a LEFT JOIN the ON clause determines how rows are matched but never filters out rows from the left table, while a WHERE clause is applied after the join and can remove left‑table rows, illustrated with concrete SQL examples and step‑by‑step analysis.

LEFT JOINON clauseSQL
0 likes · 5 min read
Left Join: ON vs WHERE – Understanding the Crucial Difference
Machine Learning Algorithms & Natural Language Processing
Machine Learning Algorithms & Natural Language Processing
Aug 6, 2026 · Artificial Intelligence

Training‑Free Beats 14B Model: Sonar‑TS Fills Scale Gap in Time‑Series QA

The paper introduces Sonar‑TS, a training‑free neural‑symbolic system that tackles the newly defined NLQ4TSDB problem—natural‑language queries over database‑scale time‑series—by converting shape intents into searchable symbols and verifying candidates with executable code, achieving up to 3.8× higher scores than the strongest Text‑to‑SQL baseline while highlighting remaining challenges in shape understanding.

LLMNatural Language QuerySQL
0 likes · 10 min read
Training‑Free Beats 14B Model: Sonar‑TS Fills Scale Gap in Time‑Series QA
System Architect Go
System Architect Go
Aug 4, 2026 · Databases

Quick PostgreSQL Guide for MySQL Users: Beyond Syntax Differences

This article walks MySQL developers through the essential architectural, schema, data‑type, SQL‑dialect, transaction, vacuum, indexing, and extension differences when moving to PostgreSQL, providing concrete examples, code snippets, and best‑practice recommendations to avoid common pitfalls.

MySQLPostgreSQLSQL
0 likes · 38 min read
Quick PostgreSQL Guide for MySQL Users: Beyond Syntax Differences
Xike
Xike
Aug 2, 2026 · Databases

ClickHouse vs Doris for ADS Analytics: MergeTree Compared on the Same Dataset

This article walks through setting up ClickHouse 24.8‑alpine, explains the MergeTree storage model, demonstrates data import and ADS queries, and then directly compares ClickHouse’s performance and semantics with Apache Doris on an identical orders CSV dataset, offering practical selection guidance and troubleshooting tips.

ADSAnalyticsClickHouse
0 likes · 13 min read
ClickHouse vs Doris for ADS Analytics: MergeTree Compared on the Same Dataset
Alibaba Cloud Big Data AI Platform
Alibaba Cloud Big Data AI Platform
Jul 29, 2026 · Big Data

Exploring EMR Serverless StarRocks AI Functions: Multimodal Embedding, Semantic Aggregation, and Mixed Retrieval

The article analyzes the newly released AI Function suite in Alibaba Cloud EMR Serverless StarRocks, detailing multimodal embedding, AI‑driven aggregation, semantic filtering, mixed vector‑full‑text search, architectural advantages such as SQL‑native execution, async pipelines, bounded resources, and real‑world use cases in advertising, gaming, and finance.

AI FunctionSQLStarRocks
0 likes · 16 min read
Exploring EMR Serverless StarRocks AI Functions: Multimodal Embedding, Semantic Aggregation, and Mixed Retrieval
Advanced AI Application Practice
Advanced AI Application Practice
Jul 28, 2026 · Operations

One-Click Test Data Generation, Validation, and Cleanup with the 42nd Test Skill

The article walks through the pain of manually creating, validating, and cleaning test data for a user‑registration feature and shows how the test-data-manager Skill automates the entire workflow—producing dependency lists, SQL/API scripts, verification steps, and cleanup commands in minutes instead of hours.

API-testingAutomationPython
0 likes · 10 min read
One-Click Test Data Generation, Validation, and Cleanup with the 42nd Test Skill
Top Architect
Top Architect
Jul 25, 2026 · Databases

Manticore Search: A High‑Performance Alternative That Could Overtake Elasticsearch

Manticore Search, a C++‑based open‑source search engine forked from Sphinx, claims to outperform Elasticsearch by up to 15× in various scenarios, offers modern multithreaded architecture, SQL compatibility, extensive client libraries, and easy Docker deployment, positioning itself as a fast, lightweight, full‑text search solution.

DockerElasticsearchManticore Search
0 likes · 8 min read
Manticore Search: A High‑Performance Alternative That Could Overtake Elasticsearch
Architecture and Beyond
Architecture and Beyond
Jul 18, 2026 · Artificial Intelligence

New RAG Approaches: Exploring SAG and OpenViking

The article analyzes two emerging RAG strategies—SAG, which rebuilds relational structure with dynamic SQL hyperedges, and OpenViking, which treats agent context as a virtual file system—detailing their architectures, benchmarks, limitations, and guidance on when to adopt each.

Knowledge RetrievalLLMOpenViking
0 likes · 13 min read
New RAG Approaches: Exploring SAG and OpenViking
Linyb Geek Road
Linyb Geek Road
Jul 17, 2026 · Databases

8 Common SQL Mistakes That Are Destroying Your Database

The article identifies eight easy-to-overlook SQL habits—such as using SELECT *, applying functions on indexed columns, careless LIKE patterns, improper IN/OR logic, deep offset pagination, unconditional UPDATE/DELETE, excessive indexing, and ignoring execution plans—that can cause slow queries, lock tables, index failures, and even data loss, and provides concrete examples and safer alternatives.

MySQLQuery OptimizationSQL
0 likes · 12 min read
8 Common SQL Mistakes That Are Destroying Your Database
Linyb Geek Road
Linyb Geek Road
Jul 17, 2026 · Databases

Why 90% of Slow SQL Queries Aren’t Caused by Large Data Volumes

Most slow SQL statements stem from poor query writing—such as index‑breaking functions, implicit type casts, leading wildcards, unnecessary column selection, improper joins, sorting, grouping, and pagination—rather than merely the size of the data, and the article shows how to diagnose and fix each issue.

Query OptimizationSQLdatabase
0 likes · 11 min read
Why 90% of Slow SQL Queries Aren’t Caused by Large Data Volumes
Architect's Tech Stack
Architect's Tech Stack
Jul 16, 2026 · Databases

Still Using IN and NOT IN in SQL? Here’s Why You Should Think Twice

The article explains that IN is fine for small constant lists, but NOT IN can produce unexpected empty results when NULL values appear, while EXISTS (or NOT EXISTS) often better expresses existence checks; it also stresses the decisive role of proper indexing and using EXPLAIN to verify performance.

NOT INNULLOptimization
0 likes · 10 min read
Still Using IN and NOT IN in SQL? Here’s Why You Should Think Twice
ITPUB
ITPUB
Jul 15, 2026 · Databases

Is count(*) Really the Slowest? MySQL Count Performance Explained

The article analyzes how MySQL executes different COUNT() forms—count(*), count(1), count(primary‑key), and count(column)—showing that count(*) and count(1) have identical performance, count(column) is the slowest, and offers indexing and approximation tips for large tables.

COUNTInnoDBMySQL
0 likes · 10 min read
Is count(*) Really the Slowest? MySQL Count Performance Explained
dbaplus Community
dbaplus Community
Jul 12, 2026 · Databases

Stop Blaming Data Size: 90% of Slow SQLs Are Due to Poor Queries

This article reveals that most slow SQL queries aren't caused by large data volumes but by poor query writing, such as index‑killing functions, implicit type casts, leading wildcards, SELECT *, missing LIMIT, and inefficient JOINs, and offers a five‑step method to diagnose and fix them.

Query OptimizationSQLdatabases
0 likes · 11 min read
Stop Blaming Data Size: 90% of Slow SQLs Are Due to Poor Queries
Big Data Technology & Architecture
Big Data Technology & Architecture
Jul 8, 2026 · Artificial Intelligence

Key Evaluation Criteria for Data‑Driven AI Agents

The article outlines a practical framework for assessing data‑centric AI agents, highlighting challenges such as nondeterminism, black‑box behavior, and error amplification, and proposes concrete dimensions—result correctness, semantic consistency, query quality, security, and explainability—to ensure zero‑tolerance accuracy and reproducibility.

AIData AgentData Quality
0 likes · 7 min read
Key Evaluation Criteria for Data‑Driven AI Agents
Data Integration and Governance
Data Integration and Governance
Jul 2, 2026 · Industry Insights

Why the SQL‑Driven Data Analyst Era Is Coming to an End

The article argues that SQL, once the core moat for data analysts, is losing its protective power as AI can instantly generate queries and BI tools enable self‑service analytics, forcing analysts to shift from pure data extraction to business‑level interpretation and decision‑making.

AIAutomationBusiness Intelligence
0 likes · 11 min read
Why the SQL‑Driven Data Analyst Era Is Coming to an End
Alibaba Cloud Big Data AI Platform
Alibaba Cloud Big Data AI Platform
Jul 1, 2026 · Artificial Intelligence

SQL‑Driven Text Classification with Hologres AI Function: Prompt Design to KV‑Cache Tuning

This article demonstrates how Hologres AI Function enables end‑to‑end text classification directly in the database using a single SQL call, covering data preparation, prompt engineering, batch inference, accuracy evaluation (up to 95%), and cost analysis with KV‑Cache optimization that reduces token charges to as low as 0.11 CNY for 200 reviews.

AI FunctionHologresKV Cache
0 likes · 12 min read
SQL‑Driven Text Classification with Hologres AI Function: Prompt Design to KV‑Cache Tuning
Linyb Geek Road
Linyb Geek Road
Jun 30, 2026 · Backend Development

How to Design Pagination for Billion‑Row Sharded Databases in an Interview

The article systematically breaks down pagination challenges in billion‑row sharded databases, compares common sharding strategies and middleware architectures, analyzes the performance drawbacks of a naïve global‑query approach, and presents several practical alternatives—including keyset pagination, two‑stage queries, index‑table tricks, and external search or NewSQL solutions—while highlighting their trade‑offs for interview discussions.

SQLdistributed databasespagination
0 likes · 24 min read
How to Design Pagination for Billion‑Row Sharded Databases in an Interview
DataFunSummit
DataFunSummit
Jun 29, 2026 · Big Data

Generate Ad Creative with One SQL Using Hologres for Intelligent Creation and Closed‑Loop Analysis

The article explains how Hologres AI Function and Skills transform traditional, slow, and fragmented ad‑creative production into a fully automated, SQL‑driven workflow that handles multimodal data ingestion, AI‑based labeling, video generation, and real‑time performance analysis in a single closed‑loop system.

AI FunctionAd CreativeHologres
0 likes · 12 min read
Generate Ad Creative with One SQL Using Hologres for Intelligent Creation and Closed‑Loop Analysis
IoT Full-Stack Technology
IoT Full-Stack Technology
Jun 26, 2026 · Databases

Are You Still Using These 8 Inefficient SQL Patterns?

This article examines eight common SQL pitfalls—including misuse of LIMIT offsets, implicit type conversion, sub‑query updates, mixed ordering, EXISTS clauses, condition push‑down, early limiting, and intermediate result set handling—showing how each can degrade performance and providing rewritten queries with execution‑plan evidence that dramatically improve speed.

MySQLQuery OptimizationSQL
0 likes · 12 min read
Are You Still Using These 8 Inefficient SQL Patterns?
samdeepthink
samdeepthink
Jun 25, 2026 · Databases

How Much SQL Do You Really Need to Master for Real‑World Development?

The author argues that in most companies you only need to write simple, single‑table or limited‑join queries and focus on index tuning and basic MySQL concepts such as InnoDB, locks, and execution flow, while complex SQL work often signals a poorly organized team.

MySQLQuery OptimizationSQL
0 likes · 3 min read
How Much SQL Do You Really Need to Master for Real‑World Development?
Past Memory Big Data
Past Memory Big Data
Jun 22, 2026 · Big Data

What’s New in Apache Spark 4.2? Core Features and Architecture Evolution

Apache Spark 4.2 introduces a lightweight Spark Connect architecture, native AI integration, enhanced Metrics View for unified semantics, Arrow‑first performance gains, advanced SQL extensions like vector search and QUALIFY, robust geospatial support, and a revamped streaming engine with auto CDC and sub‑millisecond state cleanup.

Apache SparkArrowCDC
0 likes · 13 min read
What’s New in Apache Spark 4.2? Core Features and Architecture Evolution
dbaplus Community
dbaplus Community
Jun 21, 2026 · Databases

Why the 20‑Year‑Old N+1 Query Problem Doesn’t Apply to SQLite

The article explains that the classic N+1 query anti‑pattern, harmful on client‑server databases like MySQL, is irrelevant for SQLite because its embedded architecture eliminates network round‑trips, turning hundreds of queries into cheap function calls, and examines the performance data and trade‑offs behind this claim.

FossilN+1 QueryQuery Optimization
0 likes · 29 min read
Why the 20‑Year‑Old N+1 Query Problem Doesn’t Apply to SQLite
DataFunSummit
DataFunSummit
Jun 19, 2026 · Big Data

Near‑Real‑Time Data Warehousing with Yunqi Lakehouse: Cases from Xiaohongshu, Kuaishou, Meituan

The article examines how Xiaohongshu, Kuaishou and Meituan adopted Yunqi Lakehouse’s General Incremental Computing and Single‑Engine architecture to achieve near‑real‑time data warehouses, cutting resource usage to as low as 1/20 of full‑batch jobs, reducing data latency from days to minutes, and improving query performance.

General Incremental ComputingReal-time Data WarehouseSQL
0 likes · 12 min read
Near‑Real‑Time Data Warehousing with Yunqi Lakehouse: Cases from Xiaohongshu, Kuaishou, Meituan
Machine Heart
Machine Heart
Jun 18, 2026 · Artificial Intelligence

SAG: The New RAG SOTA That Delivers Sub‑Second Retrieval on 500 Million Records

SAG (SQL‑Retrieval Augmented Generation) introduces a hypergraph‑based event‑entity data model that combines SQL joins, vector similarity, and hyperedge reasoning to achieve 79%‑88% Recall@2‑5 with second‑level latency on a 500 M‑row corpus, outperforming GraphRAG and HippoRAG in multi‑hop tasks.

AIAgentHypergraph
0 likes · 14 min read
SAG: The New RAG SOTA That Delivers Sub‑Second Retrieval on 500 Million Records
Alibaba Cloud Observability
Alibaba Cloud Observability
Jun 15, 2026 · Cloud Native

Measuring AI Coding Impact from Individual to Organization with LoongSuite‑Pilot and SLS

This article details how LoongSuite‑Pilot captures heterogeneous AI coding agent events and leverages Alibaba Cloud Log Service (SLS) SQL dashboards to provide end‑to‑end, organization‑wide metrics—covering individual usage, team adoption, token consumption, skill and tool utilization—enabling R&D teams to quantify the real‑world effectiveness of AI coding assistants.

AI codingCloud LoggingDevOps
0 likes · 21 min read
Measuring AI Coding Impact from Individual to Organization with LoongSuite‑Pilot and SLS
Architect's Guide
Architect's Guide
Jun 15, 2026 · Databases

Chat2DB Review: Alibaba’s Open‑Source Multi‑Database Client with AI‑Driven SQL Features

Chat2DB is a free open‑source multi‑database client that adds AI capabilities such as natural‑language‑to‑SQL, SQL‑to‑natural‑language, and performance suggestions; this guide walks through downloading, installing, configuring OpenAI keys, using its four main menus, and evaluating its SQL generation, explanation, and optimization functions.

AIChat2DBDatabase client
0 likes · 11 min read
Chat2DB Review: Alibaba’s Open‑Source Multi‑Database Client with AI‑Driven SQL Features
AI Architecture Path
AI Architecture Path
Jun 11, 2026 · Databases

Why Beekeeper Studio Is the Free, Open‑Source Alternative to Navicat with Built‑In AI SQL Assistant

The article compares paid database clients such as Navicat, DBeaver, TablePlus and DataGrip, highlights their cost and usability issues, and presents Beekeeper Studio—a cross‑platform, open‑source tool with a sleek UI, tab persistence, smart SQL completion, extensive database support, and an AI Shell for automatic query generation—while also outlining its strengths, limitations, and when to choose the free Community edition versus the paid Ultimate edition.

AIBeekeeper StudioDatabase client
0 likes · 11 min read
Why Beekeeper Studio Is the Free, Open‑Source Alternative to Navicat with Built‑In AI SQL Assistant
Architect Chen
Architect Chen
Jun 10, 2026 · Databases

12 Essential MySQL Online Commands Every DBA Should Know

This guide lists the most frequently used MySQL commands for checking version, connections, process lists, killing queries, global status, configuration variables, lock waits, slow‑query settings, table sizes, index information, execution plans, and replication status, each with practical usage scenarios.

DBAMySQLPerformance Monitoring
0 likes · 5 min read
12 Essential MySQL Online Commands Every DBA Should Know
Alibaba Cloud Native
Alibaba Cloud Native
Jun 9, 2026 · Cloud Native

From Individual Productivity to Organizational Insight: Building AI Coding Metrics with LoongSuite‑Pilot and SLS

The article explains how to capture event‑level AI coding agent data using LoongSuite‑Pilot, align it with the LoongSuite GenAI semantic conventions, store it in Alibaba Cloud Log Service (SLS), and construct a multi‑layered SQL dashboard that turns personal usage signals into organization‑wide metrics for informed decision‑making.

AICloud NativeDevOps
0 likes · 25 min read
From Individual Productivity to Organizational Insight: Building AI Coding Metrics with LoongSuite‑Pilot and SLS
Architect's Guide
Architect's Guide
Jun 8, 2026 · Backend Development

Three Practical Data Masking Solutions That Really Work

This article walks through three common data‑masking approaches—SQL queries using string functions, a Java‑based "sensitive‑plus" plugin, and the mybatis‑mate‑sensitive‑jackson extension—showing configuration, code examples, and how each method masks phone numbers, ID cards and other personal fields.

JavaMyBatisSQL
0 likes · 10 min read
Three Practical Data Masking Solutions That Really Work
Top Architect
Top Architect
Jun 5, 2026 · Databases

Eliminate LIKE% in MySQL: Use Full‑Text Search for Efficient Fuzzy Queries

This article explains why using LIKE% for fuzzy searches in MySQL is inefficient, introduces InnoDB full‑text search (available since MySQL 5.6), describes inverted indexes, shows how to create and query full‑text indexes with natural language, boolean, and query‑expansion modes, discusses relevance calculation, stopwords, token‑size parameters, and provides the syntax for dropping full‑text indexes.

Boolean ModeInnoDBMySQL
0 likes · 12 min read
Eliminate LIKE% in MySQL: Use Full‑Text Search for Efficient Fuzzy Queries
Architect Chen
Architect Chen
Jun 5, 2026 · Databases

Complete 2026 Guide to MySQL Commands: Syntax, Usage, and Best Practices

This article provides a comprehensive, step‑by‑step reference of essential MySQL commands—including connection, database and table creation, data manipulation, schema alteration, and query optimization with EXPLAIN—complete with code examples, parameter explanations, and performance warnings for safe production use.

CRUDDDLDML
0 likes · 6 min read
Complete 2026 Guide to MySQL Commands: Syntax, Usage, and Best Practices
Alibaba Cloud Big Data AI Platform
Alibaba Cloud Big Data AI Platform
Jun 4, 2026 · Big Data

Scalar‑Vector Hybrid Search in a Data Lake with One SQL on EMR Serverless Spark

EMR Serverless Spark now supports scalar‑vector hybrid search via DLF Global Index, allowing a single Spark SQL statement to perform vector similarity and scalar filtering together, eliminating data movement, reducing latency, and boosting performance for scenarios such as autonomous driving, e‑commerce, and knowledge‑base retrieval.

DLF Global IndexEMR Serverless SparkSQL
0 likes · 17 min read
Scalar‑Vector Hybrid Search in a Data Lake with One SQL on EMR Serverless Spark
StarRocks
StarRocks
Jun 4, 2026 · Databases

How StarRocks and Iceberg Enable Federated Queries: A Practical Walkthrough

This article details Fresha's real‑world integration of StarRocks with Apache Iceberg, covering metadata planning, distributed execution, adaptive metadata retrieval, hot‑cold data layering, missing statistics handling, catalog configuration, and performance optimizations that together demonstrate how federated queries can be efficiently executed over data‑lake tables.

Apache IcebergData LakeFederated Query
0 likes · 14 min read
How StarRocks and Iceberg Enable Federated Queries: A Practical Walkthrough
Java Tech Enthusiast
Java Tech Enthusiast
Jun 4, 2026 · Databases

Why PostgreSQL Beats MySQL in the AI Era

The article explains why developers should move beyond MySQL to PostgreSQL, illustrating the productivity gains of native window functions, MVCC concurrency, rich indexing, JSONB support, and extensive extensions through detailed examples, installation guides, performance comparisons, and real‑world use cases.

JSONBJava integrationMVCC
0 likes · 24 min read
Why PostgreSQL Beats MySQL in the AI Era
dbaplus Community
dbaplus Community
Jun 3, 2026 · Big Data

Boosting SQL Compliance to 95%: Harness Solves AI’s “Memory Loss” in Data Warehouse

The article analyzes the challenges of AI‑generated SQL in a data‑warehouse environment—context loss, unstable rule enforcement, and token overflow—and presents a five‑layer Harness architecture that persists constraints, injects hooks, uses subagents, and refactors SKILL files, raising SQL compliance from 70‑80% to over 95% while reducing context compacting.

AIAutomationHooks
0 likes · 26 min read
Boosting SQL Compliance to 95%: Harness Solves AI’s “Memory Loss” in Data Warehouse
Past Memory Big Data
Past Memory Big Data
Jun 2, 2026 · Artificial Intelligence

Beyond 100% Accuracy: Key Metrics to Evaluate in Text2SQL Systems

The article argues that a 100% accuracy claim for Text2SQL is misleading without considering stability, coverage, and pass‑rate metrics, and it details a deterministic NLQ pipeline that converts natural language to a verifiable intermediate format before rule‑based SQL compilation.

AINLQSQL
0 likes · 16 min read
Beyond 100% Accuracy: Key Metrics to Evaluate in Text2SQL Systems
Programmer XiaoFu
Programmer XiaoFu
Jun 1, 2026 · Databases

Why Does an OR Between Two Indexed Columns Still Trigger a Full Table Scan?

Even though the phone and email columns each have a single‑column index, an OR condition forces MySQL's cost‑based optimizer to choose a full table scan because the estimated cost of index merge (random I/O and possible sort‑union) exceeds the cost of a sequential scan, and the article explains the underlying mechanics and practical workarounds.

MySQLOR queryQuery Optimization
0 likes · 10 min read
Why Does an OR Between Two Indexed Columns Still Trigger a Full Table Scan?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 25, 2026 · Databases

11 Golden Rules for SQL Performance Optimization

This article explains why inefficient SQL queries cause most database bottlenecks and presents eleven concrete rules—covering indexes, SELECT *, LIMIT, WHERE clause tuning, join strategies, execution‑plan analysis, subqueries, DISTINCT, ORDER BY/GROUP BY, UNION vs UNION ALL, and query decomposition with materialized views—to help developers systematically improve SQL execution speed on MySQL and Oracle.

MySQLOptimizationOracle
0 likes · 16 min read
11 Golden Rules for SQL Performance Optimization
Big Data Tech Team
Big Data Tech Team
May 24, 2026 · Big Data

Data Warehouse Interview Pitfall Guide 2.0: Avoid Common SQL, Modeling, and ETL Mistakes

This guide compiles the most frequent interview pitfalls for data warehouse roles, covering SQL join and aggregation errors, window function misuse, subquery versus CTE performance myths, dimensional modeling mistakes, SCD implementation traps, layered design issues, data quality handling, ETL traps, Hive and Spark performance questions, real‑time warehousing considerations, and effective interview strategies.

ETLHiveSQL
0 likes · 3 min read
Data Warehouse Interview Pitfall Guide 2.0: Avoid Common SQL, Modeling, and ETL Mistakes
Alibaba Cloud Big Data AI Platform
Alibaba Cloud Big Data AI Platform
May 23, 2026 · Cloud Computing

Best Practice: Using EMR Serverless StarRocks AI Function for Financial Text Classification

This article demonstrates how to leverage StarRocks AI Function on EMR Serverless to perform sentiment analysis, intelligent classification, information extraction, and PII redaction on financial text entirely within SQL, eliminating data export, reducing latency, and ensuring compliance while providing concrete code examples, performance benchmarks, and best‑practice recommendations.

AI FunctionEMR ServerlessFinancial NLP
0 likes · 25 min read
Best Practice: Using EMR Serverless StarRocks AI Function for Financial Text Classification
Smart Sea Tide
Smart Sea Tide
May 22, 2026 · Databases

SQL Query Optimization: Cutting a 9M‑Row Scan from 17 s to 300 ms

The article analyzes why a MySQL LIMIT OFFSET query on a 9.5 million‑row table takes 16 seconds, demonstrates how moving the filter into a sub‑query that returns only primary‑key IDs and joining back reduces execution to 0.35 seconds, and validates the theory by measuring InnoDB buffer‑pool page accesses.

Buffer PoolInnoDBLIMIT OFFSET
0 likes · 9 min read
SQL Query Optimization: Cutting a 9M‑Row Scan from 17 s to 300 ms
dbaplus Community
dbaplus Community
May 20, 2026 · Databases

Stunning SQL Queries: From Tetris Game to Real‑Time Funnels

This article showcases a collection of impressive SQL queries—including a PostgreSQL Tetris implemented with a recursive CTE, window‑function session analysis, a ClickHouse real‑time funnel, dynamic WHERE clause generation, and a recursive employee hierarchy—while discussing performance tips and engine choices.

ClickHouseHivePostgreSQL
0 likes · 25 min read
Stunning SQL Queries: From Tetris Game to Real‑Time Funnels
DataFunSummit
DataFunSummit
May 20, 2026 · Databases

Apache Doris 4.1: A Unified Data Store and Retrieval Engine for AI & Search

Apache Doris 4.1 introduces a systematic evolution for AI and search workloads, adding low‑cost massive vector storage, unified structured, full‑text and vector search, 100 MB JSON document support, Segment V3 metadata decoupling, sparse column optimizations, lakehouse lifecycle management, and a suite of performance‑boosting features such as aggregate push‑down, condition cache, and spill‑to‑disk, all backed by detailed benchmark results.

AIApache DorisLakehouse
0 likes · 30 min read
Apache Doris 4.1: A Unified Data Store and Retrieval Engine for AI & Search
Architect's Guide
Architect's Guide
May 20, 2026 · Databases

30 Essential SQL Query Optimization Techniques

This article presents thirty practical SQL optimization tips, covering index usage, avoiding full‑table scans caused by operators like !=, NULL checks, OR, LIKE, IN, functions, and expressions, as well as best practices for temporary tables, cursors, and transaction size to improve database performance.

Query OptimizationSQLdatabase
0 likes · 10 min read
30 Essential SQL Query Optimization Techniques
MaGe Linux Operations
MaGe Linux Operations
May 19, 2026 · Databases

How I Reduced a MySQL Slow Query from 3 seconds to 10 milliseconds

This article walks through a real‑world MySQL slow‑query case, showing how to identify the bottleneck with EXPLAIN, design covering and composite indexes, rewrite the SQL, tune InnoDB parameters, and safely deploy the changes, ultimately shrinking execution time from seconds to a few milliseconds.

EXPLAINMySQLOptimization
0 likes · 32 min read
How I Reduced a MySQL Slow Query from 3 seconds to 10 milliseconds
Su San Talks Tech
Su San Talks Tech
May 17, 2026 · Databases

Why Leading Companies Avoid NULL Values in MySQL

The article explains why major tech companies discourage using NULL in MySQL, covering its meaning as an unknown state, three-valued logic pitfalls such as NOT IN subqueries, index inefficiencies, aggregate function quirks, storage overhead, Java handling issues, and offers practical alternatives like NOT NULL constraints with sensible defaults.

Index OptimizationMySQLNULL
0 likes · 11 min read
Why Leading Companies Avoid NULL Values in MySQL
Architecture Digest
Architecture Digest
May 15, 2026 · Databases

Why Alibaba Bans Joins Over Three Tables – A Must‑Know Rule for SQL Engineers

Alibaba’s Java Development Manual mandates that any SQL involving more than three tables must be avoided, a rule that stems from the exponential cost of multi‑table joins in a single‑instance database, prompting engineers to rethink data modeling, adopt denormalization, wide tables, materialized views, CQRS or application‑level assembly instead of relying on complex joins.

AlibabaCQRSJOIN
0 likes · 12 min read
Why Alibaba Bans Joins Over Three Tables – A Must‑Know Rule for SQL Engineers
Architect's Guide
Architect's Guide
May 14, 2026 · Databases

8 SQL Pitfalls That Can Slow Your Queries 100‑Fold – How to Avoid Them

The article enumerates eight common MySQL query patterns—such as large‑offset LIMIT, implicit type conversion, sub‑query updates, mixed ordering, unnecessary EXISTS, poor condition push‑down, early range reduction, and inefficient intermediate result handling—and shows rewritten SQL that reduces execution time from seconds to milliseconds.

JOINMySQLQuery Optimization
0 likes · 15 min read
8 SQL Pitfalls That Can Slow Your Queries 100‑Fold – How to Avoid Them
JD Tech
JD Tech
May 13, 2026 · Databases

Deep Dive into Using JSON Fields in Databases: Practical Lessons and Pitfalls

This article walks through the rationale, common functions, and real‑world case studies of storing and querying JSON columns in a relational database, exposing issues with null handling, batch updates, and dynamic SQL generation, and presents step‑by‑step debugging and robust solutions.

Batch UpdateDynamic QueriesJSON
0 likes · 11 min read
Deep Dive into Using JSON Fields in Databases: Practical Lessons and Pitfalls
Aikesheng Open Source Community
Aikesheng Open Source Community
May 11, 2026 · Artificial Intelligence

SCALE April 2026 Large‑Model SQL Capability Ranking Unveiled

The SCALE April 2026 report adds four new models—DeepSeek‑V4‑Pro, DeepSeek‑V4‑Flash, GPT‑5.5 and Claude Opus 4.7—to its SQL capability leaderboard, evaluates them across SQL understanding, optimization and dialect conversion, and highlights each model’s strengths, weaknesses, and recommended deployment scenarios.

AI benchmarkDialect ConversionLarge Language Models
0 likes · 17 min read
SCALE April 2026 Large‑Model SQL Capability Ranking Unveiled
Cloud Architecture
Cloud Architecture
May 10, 2026 · Databases

Building an Automated End-to-End Loop for Full-Stack SQL Performance Optimization

The article walks through a real-world e-commerce incident, explains why a seemingly simple slow order-query SQL can cripple an entire high-traffic system, and presents a complete automated workflow—from detection and analysis to optimization, deployment, verification, and regression monitoring—to achieve sustainable full-stack SQL performance.

AutomationMySQLPerformance Optimization
0 likes · 28 min read
Building an Automated End-to-End Loop for Full-Stack SQL Performance Optimization
Golang Shines
Golang Shines
May 7, 2026 · Databases

160 Must‑Know MySQL Interview Questions to Test Your Skills

This article presents 160 high‑frequency MySQL interview questions, covering fundamentals such as SQL basics, MySQL vs. Oracle vs. SQL Service, normalization rules, permission tables, and more, with a free PDF of the full list for interview preparation.

MySQLSQLdatabase design
0 likes · 5 min read
160 Must‑Know MySQL Interview Questions to Test Your Skills
SpringMeng
SpringMeng
May 2, 2026 · Artificial Intelligence

10 Essential AI Prompt Templates Every Programmer Needs

This article presents ten practical AI prompt templates that help programmers efficiently handle requirement clarification, unit test generation, code explanation, refactoring, exception troubleshooting, performance tuning, SQL creation, knowledge documentation, design review, and cross‑language translation, each illustrated with concrete examples and usage tips.

AI PromptingPerformance OptimizationSQL
0 likes · 13 min read
10 Essential AI Prompt Templates Every Programmer Needs
Lin is Dream
Lin is Dream
Apr 29, 2026 · Artificial Intelligence

Where Do Agent Capabilities Come From? A High‑Frequency Skill Toolset for AI Agents

This article presents a practical collection of high‑frequency tools—including Python, Shell, SQL, Mermaid, Pandoc, curl, ImageMagick, and PlantUML—that can be wrapped as Agent Skills to give AI agents real execution power, illustrated with concrete prompts and scripts that cut manual work from hours to seconds.

Agent SkillAutomationImageMagick
0 likes · 13 min read
Where Do Agent Capabilities Come From? A High‑Frequency Skill Toolset for AI Agents
Cloud Architecture
Cloud Architecture
Apr 27, 2026 · Backend Development

Building an Enterprise‑Level MyBatis Persistence Layer from Zero to One

The article walks through a real production incident caused by a massive IN‑list query, then presents a complete methodology for designing, implementing, and tuning an enterprise‑grade MyBatis persistence layer—including core execution chain, caching strategies, batch processing, read/write splitting, sharding, observability, and deployment best practices.

Batch ProcessingCachingMyBatis
0 likes · 39 min read
Building an Enterprise‑Level MyBatis Persistence Layer from Zero to One
Java Baker
Java Baker
Apr 22, 2026 · Databases

A Step‑by‑Step SOP for Seamless Business Data Migration

This article outlines a comprehensive, risk‑controlled SOP for migrating business data—including model changes, storage shifts, incremental dual‑write, back‑filling, full and incremental consistency checks, read‑switching, and final decommissioning—backed by concrete SQL examples and visual diagrams.

BackendSQLdata consistency
0 likes · 6 min read
A Step‑by‑Step SOP for Seamless Business Data Migration