Tagged articles
2769 articles
Page 28 of 28
ITPUB
ITPUB
Dec 18, 2015 · Databases

Mastering Database Schema Design: From Normalization to Sharding and Scaling

This article explains essential database design principles—including normalization, denormalization, join avoidance, and various sharding techniques—while also covering scaling strategies such as vertical upgrades, horizontal partitioning, and the use of flash storage to boost performance.

Database designDenormalizationnormalization
0 likes · 27 min read
Mastering Database Schema Design: From Normalization to Sharding and Scaling
ITPUB
ITPUB
Dec 3, 2015 · Databases

Choosing the Right Time‑Series Database: Types, Queries, and Performance Trade‑offs

Time‑series data, defined by a timestamp field, appears everywhere, and the article explains how to choose an appropriate time‑series database by comparing two schema models, their query patterns, performance trade‑offs, and why modern solutions like Elasticsearch, columnar stores, and Druid excel at real‑time massive aggregation.

Big DataElasticsearchTime Series
0 likes · 9 min read
Choosing the Right Time‑Series Database: Types, Queries, and Performance Trade‑offs
ITPUB
ITPUB
Dec 3, 2015 · Databases

SQL Tic‑Tac‑Toe Challenge: Generate Endgame Boards and Find Forced Wins

The ITPUB community revived its SQL Database Programming Contest, outlining judges, prize tiers, and detailed rules, then presenting two Oracle‑SQL puzzles—one to generate every possible tic‑tac‑toe endgame board and another to determine a forced winning strategy for a given board—plus an optional extension for larger m,n,k games.

ContestPL/SQLTicTacToe
0 likes · 9 min read
SQL Tic‑Tac‑Toe Challenge: Generate Endgame Boards and Find Forced Wins
dbaplus Community
dbaplus Community
Nov 17, 2015 · Databases

Master Oracle SQL Optimization: Proven Roadmap & Real-World Cases

This comprehensive guide explains the essence of Oracle SQL tuning, presents a step‑by‑step optimization roadmap, walks through real‑world case studies—including a high‑CPU query fixed with hints and query rewrites—and details how to capture and interpret accurate execution plans while addressing optimizer parameters and common pitfalls.

Database OptimizationOracleperformance tuning
0 likes · 24 min read
Master Oracle SQL Optimization: Proven Roadmap & Real-World Cases
ITPUB
ITPUB
Nov 16, 2015 · Databases

Mastering Flash‑Sale (秒杀) Logic: Using Unique Indexes and SQL for Concurrency Control

This guide explains two flash‑sale scenarios—single‑item seckill with a unique index and multi‑item seckill with quantity tracking—detailing table structures, SQL statements, concurrency handling, advantages, drawbacks, and an optimized version without locks, illustrated with step‑by‑step diagrams.

Unique Indexconcurrencydatabase
0 likes · 5 min read
Mastering Flash‑Sale (秒杀) Logic: Using Unique Indexes and SQL for Concurrency Control
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
Nov 13, 2015 · Fundamentals

Internal Training Courses: XML Serialization, .NET Parallel Programming Basics, and SQL Query Fundamentals

The announcement details three internal technical training sessions covering XML serialization fundamentals, .NET parallel programming basics, and essential SQL query concepts and optimization, including instructors, topics, locations, target audiences, and scheduled times for each course.

Parallel ProgrammingTrainingXML
0 likes · 2 min read
Internal Training Courses: XML Serialization, .NET Parallel Programming Basics, and SQL Query Fundamentals
dbaplus Community
dbaplus Community
Nov 12, 2015 · Databases

Mastering MySQL View Optimization: Techniques, Limits, and Best Practices

This article explains how MySQL versions up to 5.5 process and optimize views, outlines the exact conditions required for view merge rewriting, compares derived table handling with the SQL standard, and provides concrete test cases to illustrate performance pitfalls.

Database PerformanceDerived TablesView Optimization
0 likes · 6 min read
Mastering MySQL View Optimization: Techniques, Limits, and Best Practices
ITPUB
ITPUB
Nov 11, 2015 · Databases

Solve the 5‑Digit Reverse‑Multiplication Puzzle with SQL Queries

A father turned his daughter's third‑grade math challenge—finding a five‑digit number that becomes its reverse when multiplied by four—into a collaborative coding exercise, showcasing three distinct Oracle SQL solutions that generate and test digit permutations to reveal the unique answer.

Digit PermutationMath Puzzlenumber theory
0 likes · 4 min read
Solve the 5‑Digit Reverse‑Multiplication Puzzle with SQL Queries
21CTO
21CTO
Nov 5, 2015 · Backend Development

How CAS Prevents Data Inconsistency in High‑Concurrency Transactions

This article explains why concurrent read‑write operations on a shared balance can cause inconsistencies, illustrates the problem with a purchase‑balance example, and shows how a Compare‑And‑Set (CAS) update clause guarantees atomicity and preserves data integrity.

BackendCASConsistency
0 likes · 7 min read
How CAS Prevents Data Inconsistency in High‑Concurrency Transactions
21CTO
21CTO
Oct 28, 2015 · Databases

Block SELECT * Queries with a One‑Line Computed Column Hack

This article explains why using SELECT * is problematic and demonstrates a simple technique—adding a computed column that triggers a divide‑by‑zero error—to block SELECT * queries while still allowing column‑specific selections.

Database designbest practicescomputed column
0 likes · 3 min read
Block SELECT * Queries with a One‑Line Computed Column Hack
21CTO
21CTO
Oct 23, 2015 · Databases

How to Efficiently Paginate 100M User IDs in MySQL

This article examines three SQL pagination strategies for a 100‑million‑row favorites table, compares their correctness and performance using EXPLAIN analysis, and demonstrates why a GROUP BY approach with proper indexing yields the most reliable and fast results.

Large Dataindexmysql
0 likes · 5 min read
How to Efficiently Paginate 100M User IDs in MySQL
21CTO
21CTO
Oct 11, 2015 · Databases

From Chaos to Order: Step‑by‑Step Database Normalization up to 4NF

This article explains the purpose of database normalization, outlines its benefits and drawbacks, and walks through a concrete demo that transforms an unnormalized employee table through the first, second, third, BC, and fourth normal forms, illustrating each step with diagrams.

1NF2NF3NF
0 likes · 8 min read
From Chaos to Order: Step‑by‑Step Database Normalization up to 4NF
Java High-Performance Architecture
Java High-Performance Architecture
Oct 5, 2015 · Databases

Why Proper SQL Formatting Boosts Development Efficiency

Formatting SQL statements doesn't speed up execution, but it dramatically enhances readability, maintenance, and development efficiency, making testing easier and reducing errors through clear alias usage, leading commas, and line‑by‑line JOIN placement, as illustrated by practical examples.

code readabilitydatabaseformatting
0 likes · 2 min read
Why Proper SQL Formatting Boosts Development Efficiency
21CTO
21CTO
Oct 4, 2015 · Databases

When to Choose SQL vs NoSQL: Real-World Scenarios and Schema Design

This article compares SQL and NoSQL databases, outlining their core characteristics, advantages, and trade‑offs, and demonstrates practical schema designs for contact lists, social networks, and warehouse management, helping developers decide which technology best fits their project requirements.

MongoDBNoSQLschema
0 likes · 11 min read
When to Choose SQL vs NoSQL: Real-World Scenarios and Schema Design
21CTO
21CTO
Oct 1, 2015 · Databases

Visualizing SQL Joins with Venn Diagrams: Inner, Outer & Cross Join Explained

An in‑depth guide shows how to illustrate various SQL join types—including inner, full outer, left outer, and cross joins—using Venn diagrams and concrete table examples, highlighting result sets, null handling, and the pitfalls of Cartesian products for large tables.

Cross JoinINNER JOINJoins
0 likes · 5 min read
Visualizing SQL Joins with Venn Diagrams: Inner, Outer & Cross Join Explained
21CTO
21CTO
Sep 27, 2015 · Databases

Using Physical Primary Keys as Foreign Keys and Implementing Optimistic Locks

This article explains two key relational database design techniques: using auto‑increment or UUID physical primary keys for foreign key relationships, and employing optimistic locking with a version column to safely handle concurrent updates, while also covering when locks can be omitted.

Foreign Keydatabasesoptimistic lock
0 likes · 6 min read
Using Physical Primary Keys as Foreign Keys and Implementing Optimistic Locks
21CTO
21CTO
Sep 16, 2015 · Databases

Why Physical Primary Keys and Optimistic Locks Are Essential for Reliable DB Design

This article explains why using a physical primary key for foreign‑key relationships, how to implement optimistic locking with a version column for concurrent updates, and when it’s safe to update records without any locking, providing practical SQL examples for reliable database design.

Database designForeign Keyoptimistic lock
0 likes · 6 min read
Why Physical Primary Keys and Optimistic Locks Are Essential for Reliable DB Design
21CTO
21CTO
Sep 12, 2015 · Databases

Master MySQL Optimization: Practical Tips for Performance, Hardware, and Schema

This comprehensive guide explores MySQL's unique characteristics, hardware and OS tuning, configuration tweaks, schema and SQL optimization techniques, and provides actionable recommendations and tools to identify and resolve common performance bottlenecks.

Database TuningHardware Configurationmysql
0 likes · 13 min read
Master MySQL Optimization: Practical Tips for Performance, Hardware, and Schema
WeChat Client Technology Team
WeChat Client Technology Team
Aug 24, 2015 · Databases

How We Boosted SQLite Chat Performance: Fragment Caching, Table Splitting, and Index Refactoring

This article details a multi‑stage performance overhaul of a large‑scale chat application's SQLite database, covering trace‑based I/O analysis, view caching with Fragments, table‑splitting experiments, index size reduction, and the development of a PageTracer tool to quantify page‑level gains.

AndroidFragmentPageTracer
0 likes · 21 min read
How We Boosted SQLite Chat Performance: Fragment Caching, Table Splitting, and Index Refactoring
Java High-Performance Architecture
Java High-Performance Architecture
Jul 29, 2015 · Databases

How Indexes Enable Efficient GROUP BY Queries in MySQL

This article explains why GROUP BY requires sorting like ORDER BY, how a suitable index can satisfy both operations, and outlines the precise conditions—including single‑table queries, left‑most index prefixes, constant values, and limited aggregates—that allow MySQL to execute GROUP BY using an index scan.

GROUP BYIndex Optimizationmysql
0 likes · 3 min read
How Indexes Enable Efficient GROUP BY Queries in MySQL

MySQL Performance Optimization Tips for Web Applications

This article presents a comprehensive set of MySQL performance optimization techniques for web applications, covering query caching, EXPLAIN analysis, LIMIT usage, indexing strategies, join type consistency, avoiding ORDER BY RAND(), selective column retrieval, proper primary keys, ENUM usage, prepared statements, unbuffered queries, IP storage, fixed‑length tables, vertical partitioning, batch deletions, column size reduction, storage engine selection, ORM benefits, and persistent connections.

Database OptimizationPHPmysql
0 likes · 21 min read
MySQL Performance Optimization Tips for Web Applications

Selection and Comparison of Big Data Benchmark Standards with a Focus on TPC‑DS

This article reviews the evolution of big‑data management technologies, discusses the criteria for choosing appropriate big‑data benchmarks, compares existing benchmarks such as MapReduce tests, YCSB, BigBench and BigFrame, and provides an in‑depth analysis of the TPC‑DS benchmark and its certification status.

Big DataData ManagementPerformance Testing
0 likes · 15 min read
Selection and Comparison of Big Data Benchmark Standards with a Focus on TPC‑DS
Java High-Performance Architecture
Java High-Performance Architecture
Jul 16, 2015 · Databases

When MySQL Indexes Fail: 4 Common Pitfalls to Avoid

This article explains four situations where MySQL will ignore indexes—using a non‑leading column in a composite index, leading wildcards in LIKE queries, OR conditions with non‑indexed fields, and unquoted string literals—offering guidance to improve query performance.

Database Optimizationindexingmysql
0 likes · 3 min read
When MySQL Indexes Fail: 4 Common Pitfalls to Avoid
Qunar Tech Salon
Qunar Tech Salon
Jul 13, 2015 · Databases

Mapping MySQL Commands and Features to PostgreSQL psql Equivalents

This article compares MySQL client commands and features with their PostgreSQL psql equivalents, covering general command‑line options, SQL‑level operations such as showing tables, creating tables, listing databases, using databases, handling auto‑increment, process lists, global variables, and function‑level differences, plus practical code snippets.

database migrationmysqlpostgresql
0 likes · 6 min read
Mapping MySQL Commands and Features to PostgreSQL psql Equivalents
MaGe Linux Operations
MaGe Linux Operations
Jul 10, 2015 · Databases

Master SQL Joins: Inner, Outer, and Cross Join Explained with Examples

This article explains the three types of SQL joins—inner, outer, and cross—detailing their variations such as equi‑join, non‑equi‑join, natural join, left/right/full outer joins, and provides clear example queries and result illustrations to help readers understand how to combine tables effectively.

Cross JoinINNER JOINJoins
0 likes · 5 min read
Master SQL Joins: Inner, Outer, and Cross Join Explained with Examples
MaGe Linux Operations
MaGe Linux Operations
Jun 5, 2015 · Databases

Master MySQL: From Database Basics to Full Installation Guide

This comprehensive guide explains what databases are, their evolution, key models, core DBMS components, and provides step‑by‑step instructions for installing, configuring, and securing MySQL on Linux, along with essential SQL commands and concepts.

DBMSDatabase InstallationLinux
0 likes · 18 min read
Master MySQL: From Database Basics to Full Installation Guide
Qunar Tech Salon
Qunar Tech Salon
May 5, 2015 · Databases

Encrypting Sensitive Data with PostgreSQL pgcrypto

This article explains how to protect user privacy by using PostgreSQL's built-in pgcrypto extension to encrypt and decrypt sensitive fields such as phone numbers and ID numbers, showing practical SQL examples for creating tables, altering columns, storing ciphertext, and querying encrypted data.

Database Securityencryptionpgcrypto
0 likes · 5 min read
Encrypting Sensitive Data with PostgreSQL pgcrypto
Qunar Tech Salon
Qunar Tech Salon
May 4, 2015 · Databases

Comparing MySQL and PostgreSQL Counter Queries

This article compares two SQL counter queries, presenting a detailed MySQL version with CASE statements and variable counters alongside a concise PostgreSQL version using ROW_NUMBER, and includes an explanation of the differences and a brief author biography.

Comparisondatabasemysql
0 likes · 3 min read
Comparing MySQL and PostgreSQL Counter Queries
Qunar Tech Salon
Qunar Tech Salon
May 3, 2015 · Databases

Optimizing PostgreSQL Queries for Flight Data Retrieval at Qunar

The article analyzes a slow PostgreSQL query that joins multiple tables to fetch flight numbers, compares several alternative query formulations with their execution plans, and presents a final solution using array aggregation to achieve sub‑millisecond performance despite existing indexes.

Database Performanceindexespostgresql
0 likes · 7 min read
Optimizing PostgreSQL Queries for Flight Data Retrieval at Qunar
Qunar Tech Salon
Qunar Tech Salon
Apr 30, 2015 · Databases

Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL

The article demonstrates how to split a space‑separated "validperiods" column into separate begin, end, and price fields in PostgreSQL using string_to_array, to_timestamp, regexp_replace, and unnest to transform the data into a readable tabular format.

data normalizationpostgresqlregex
0 likes · 8 min read
Parsing and Normalizing Space-Delimited Valid Periods in PostgreSQL
Qunar Tech Salon
Qunar Tech Salon
Apr 26, 2015 · Databases

Using a User‑Defined Multiplicative Aggregate in PostgreSQL to Count Travel Package Combinations

The article explains how to calculate the total number of possible flight‑hotel combinations for travel packages by defining a custom multiplicative aggregate function in PostgreSQL, provides the SQL code, demonstrates its usage with examples, and discusses its practical advantages for flexible grouping.

Travel PackagesUser-Defined Aggregatedatabase
0 likes · 3 min read
Using a User‑Defined Multiplicative Aggregate in PostgreSQL to Count Travel Package Combinations
MaGe Linux Operations
MaGe Linux Operations
Mar 17, 2015 · Databases

Why MySQL Shows Garbled Text and How to Fix It

This article explains the root causes of MySQL character‑set garbling, illustrates the encoding/decoding steps during data insertion and retrieval, and provides practical methods—including dump‑reload and binary conversion—to prevent and repair corrupted text.

character encodinggarbled textmysql
0 likes · 19 min read
Why MySQL Shows Garbled Text and How to Fix It
MaGe Linux Operations
MaGe Linux Operations
Mar 3, 2015 · Databases

Essential MySQL Performance Tuning: Key Metrics & Optimization Tips

Learn how to monitor and optimize MySQL server performance by examining critical variables, status metrics, and configuration parameters such as slow query settings, connection limits, key buffer size, query cache, temporary tables, and thread usage to achieve stable, efficient database operation.

Database Optimizationmysqlsql
0 likes · 8 min read
Essential MySQL Performance Tuning: Key Metrics & Optimization Tips
ITPUB
ITPUB
Oct 20, 2014 · Databases

Why Indexes Are the Key to Cutting Logical Reads and Speeding Up SQL

The article explains how inefficient SQL statements increase logical reads, why creating effective indexes dramatically reduces those reads and execution time, and discusses practical guidelines for choosing indexed columns, differences between clustered and non‑clustered indexes, and common pitfalls in index design.

Logical Readsindexesperformance
0 likes · 5 min read
Why Indexes Are the Key to Cutting Logical Reads and Speeding Up SQL
MaGe Linux Operations
MaGe Linux Operations
Aug 22, 2014 · Databases

Essential MySQL Q&A: Master Version, Queries, Functions, and More

This article provides concise MySQL Q&A covering how to retrieve server version and database name, filter records with NOT operators, combine AND/OR conditions, use IFNULL, limit query results, choose between Oracle and MySQL, obtain the current date, export tables to XML, understand persistent connections, list table indexes, and explain CSV tables.

Linuxdatabasefunctions
0 likes · 9 min read
Essential MySQL Q&A: Master Version, Queries, Functions, and More
MaGe Linux Operations
MaGe Linux Operations
Aug 6, 2014 · Databases

Essential Resources to Kickstart Your MySQL DBA Journey

This guide shares a curated list of foundational books and resources for beginners aiming to master SQL, deepen MySQL expertise, and develop the operational and data‑centric mindset needed for a successful DBA career, including links to downloads and a weekly MySQL radio show.

DBADatabase AdministrationLearning Resources
0 likes · 4 min read
Essential Resources to Kickstart Your MySQL DBA Journey
MaGe Linux Operations
MaGe Linux Operations
Jul 30, 2014 · Databases

SQL vs NoSQL: Which Database Wins the Big Data Battle?

This article examines the ongoing debate between SQL and NoSQL databases for big‑data projects, presenting expert arguments on performance, scalability, standardization, and flexibility to help enterprises decide the optimal solution.

Big DataComparisonNoSQL
0 likes · 14 min read
SQL vs NoSQL: Which Database Wins the Big Data Battle?
MaGe Linux Operations
MaGe Linux Operations
Jul 11, 2014 · Databases

How to Build a Simple Database from Scratch Using B‑Trees

This article explains how to build a minimal database by storing records in a fixed‑length text file, using B‑tree structures for efficient lookup, creating index files for non‑primary fields, and outlines additional features such as SQL parsing, joins, transactions, backup and remote access.

B+Treesql
0 likes · 7 min read
How to Build a Simple Database from Scratch Using B‑Trees
MaGe Linux Operations
MaGe Linux Operations
Jul 9, 2014 · Databases

SQL Server vs Oracle: 45 Essential Function Equivalents

This article presents a comprehensive side‑by‑side mapping of 45 common SQL Server functions to their Oracle equivalents, covering numeric, string, date, and miscellaneous operations with example queries and notes on usage differences.

Data MigrationDatabase FunctionsOracle
0 likes · 16 min read
SQL Server vs Oracle: 45 Essential Function Equivalents