Tagged articles

SQL

2820 articles · Page 28 of 29
Architecture Digest
Architecture Digest
Jun 7, 2016 · Databases

10 Simple Steps to Fully Understand SQL

This article explains SQL’s declarative nature, the difference between its syntactic and execution order, core concepts like table references, joins, derived tables, GROUP BY, and common keywords, providing ten clear steps and examples to help developers master SQL queries.

JoinsSQLdeclarative
0 likes · 23 min read
10 Simple Steps to Fully Understand SQL
ITPUB
ITPUB
May 30, 2016 · Databases

When to Use UPDATE vs MERGE in Oracle: Performance Tips & Pitfalls

Oracle’s UPDATE and MERGE statements can both modify data, but depending on indexing, join conditions, and query complexity their execution speed varies dramatically; this article explains when each is appropriate, outlines their drawbacks, and provides real‑world examples with execution plans and optimization techniques.

OptimizationOraclePerformance
0 likes · 5 min read
When to Use UPDATE vs MERGE in Oracle: Performance Tips & Pitfalls
ITPUB
ITPUB
May 27, 2016 · Databases

How to Log Every Executed Oracle SQL Statement with v$sql and Automated Jobs

This guide explains why a numeric column turned null, compares using the volatile v$sql view with a permanent logging solution, and details step‑by‑step how to create a tablespace, logging table, stored procedure, and scheduled job to capture all Oracle SQL statements.

Database LoggingJob SchedulingOracle
0 likes · 5 min read
How to Log Every Executed Oracle SQL Statement with v$sql and Automated Jobs
ITPUB
ITPUB
May 20, 2016 · Databases

Step-by-Step Guide: Migrating DB2 v9.7 PHSDB to K-DB11G

This tutorial details the complete process of moving a single‑node DB2 v9.7 PHSDB database to K‑DB11G, covering schema‑to‑user mapping, object conversion, constraint handling, identity column emulation, manual adjustments for views/functions, and the export‑import scripts required for data migration.

DB2Data MigrationK-DB
0 likes · 10 min read
Step-by-Step Guide: Migrating DB2 v9.7 PHSDB to K-DB11G
ITPUB
ITPUB
May 20, 2016 · Databases

Essential Oracle Monitoring Queries for Performance Tuning

This article compiles a comprehensive set of Oracle SQL queries that monitor wait events, rollback segment contention, tablespace and file system I/O ratios, SGA hit rates, dictionary cache efficiency, MTS activity, fragmentation, and other critical performance metrics, often with recommended threshold values.

Database MonitoringOraclePerformance Tuning
0 likes · 10 min read
Essential Oracle Monitoring Queries for Performance Tuning
ITPUB
ITPUB
May 4, 2016 · Databases

Master Oracle Triggers: Real‑World Examples and Step‑by‑Step Guide

This article explains Oracle trigger fundamentals, syntax, and a series of practical examples—including preventing weekend updates, auto‑incrementing IDs, logging DML actions, aggregating department salaries, capturing deletions, view‑based inserts, salary change alerts, and tracking CREATE/DROP operations—complete with full SQL code snippets.

OraclePL/SQLSQL
0 likes · 12 min read
Master Oracle Triggers: Real‑World Examples and Step‑by‑Step Guide
ITPUB
ITPUB
May 3, 2016 · Databases

Practical Tips for Optimizing Oracle SQL Execution Plans

This guide outlines concrete strategies to reduce I/O and CPU overhead in Oracle queries, covering scope reduction, partition pruning, join simplification, hint usage, bind variables, and common pitfalls like Cartesian products and inefficient filters.

Execution PlanIndexesJoins
0 likes · 8 min read
Practical Tips for Optimizing Oracle SQL Execution Plans
ITPUB
ITPUB
May 2, 2016 · Databases

How to Combine Multiple MyISAM Tables with MySQL’s MERGE Engine

This guide explains how to use MySQL’s MERGE storage engine to merge identically structured MyISAM tables into a single logical table, covering creation, querying, INSERT handling, adding new members, and important caveats such as avoiding primary keys.

MERGE engineMySQLSQL
0 likes · 5 min read
How to Combine Multiple MyISAM Tables with MySQL’s MERGE Engine
dbaplus Community
dbaplus Community
Apr 28, 2016 · Databases

Unlock Oracle 12c Optimizer: New Stats, Adaptive Features & Advanced Techniques

This article explores the major enhancements in Oracle 12c's optimizer, including session‑level statistics for global temporary tables, new DBMS_STATS reporting procedures, adaptive features, advanced join elimination methods, incremental and concurrent statistics collection, and automatic column‑group detection, providing practical guidance for DBAs and developers.

12cDBMS_STATSOracle
0 likes · 23 min read
Unlock Oracle 12c Optimizer: New Stats, Adaptive Features & Advanced Techniques
ITPUB
ITPUB
Apr 25, 2016 · Databases

Common MySQL Errors and How to Fix Them: A Practical Guide

This guide lists frequent MySQL error messages, explains their underlying causes, and provides step‑by‑step solutions—including configuration tweaks, permission adjustments, and server‑side fixes—to help developers quickly resolve database connectivity and query issues.

Database TroubleshootingError handlingMySQL
0 likes · 25 min read
Common MySQL Errors and How to Fix Them: A Practical Guide
ITPUB
ITPUB
Apr 25, 2016 · Databases

How to Move Oracle Tablespaces and Datafiles to a New Location

This guide explains step‑by‑step how to offline Oracle datafiles or tablespaces, copy them to a new directory, rename them, recover if needed, bring them back online, and safely shut down and restart the database to complete the migration.

DatafileOracleSQL
0 likes · 4 min read
How to Move Oracle Tablespaces and Datafiles to a New Location
ITPUB
ITPUB
Apr 24, 2016 · Big Data

12 Essential Hive Performance Tips for Faster Hadoop Queries

This guide presents twelve practical Hive tuning techniques—including avoiding MapReduce, limiting string concatenation, steering clear of subqueries, choosing the right file formats, managing vectorization, sizing containers, enabling statistics, and optimizing joins—to dramatically improve query speed on Hadoop.

Big DataHadoopHive
0 likes · 7 min read
12 Essential Hive Performance Tips for Faster Hadoop Queries
ITPUB
ITPUB
Apr 22, 2016 · Databases

Boost Oracle Performance: Master Parallel Execution Techniques

This article explains Oracle's parallel execution features—including parallel query, DML, and DDL—covers object, session, and statement level settings, provides practical SQL examples, discusses common pitfalls, and presents performance test results that demonstrate significant speed improvements for large data migration tasks.

OraclePerformance TuningSQL
0 likes · 10 min read
Boost Oracle Performance: Master Parallel Execution Techniques
ITPUB
ITPUB
Apr 22, 2016 · Databases

Unlock Oracle Error Codes with the oerr Shell Script: A Deep Dive

This article explains how the Oracle oerr utility works as a shell script, shows how it maps facilities to components, locates the appropriate message files, and demonstrates using sed and awk to extract detailed error descriptions, causes, and actions for any ORA code.

DatabasesError handlingOracle
0 likes · 7 min read
Unlock Oracle Error Codes with the oerr Shell Script: A Deep Dive
ITPUB
ITPUB
Apr 21, 2016 · Databases

13 MySQL Tips You Probably Missed: From Case Sensitivity to Binlog

This article highlights thirteen often‑overlooked MySQL details—including case‑insensitive column names, LIKE pattern rules, REPLACE and INSERT ON DUPLICATE KEY syntax, EXPLAIN usage, index limits, replication methods, partitioning, slow‑query logging, binlog, advanced objects, and useful client tools.

Database TipsMySQLPerformance
0 likes · 7 min read
13 MySQL Tips You Probably Missed: From Case Sensitivity to Binlog
ITPUB
ITPUB
Apr 21, 2016 · Databases

Master Oracle Profiles: Limits, Parameters, and Example Creation

Oracle profiles let administrators enforce password policies and resource limits such as CPU time, I/O, session count, and idle periods, with detailed parameters for both kernel resources and password rules, and the article provides a complete example of creating a custom profile using SQL.

OracleProfilesSQL
0 likes · 5 min read
Master Oracle Profiles: Limits, Parameters, and Example Creation
ITPUB
ITPUB
Apr 20, 2016 · Backend Development

Top 17 C++ Backend Interview Questions with Answers and Code Samples

This article compiles 17 common C++ backend interview questions covering algorithms, data structures, language nuances, Linux process handling, SQL, networking, and system design, providing concise explanations and complete code examples to help candidates prepare effectively.

C++LinuxSQL
0 likes · 18 min read
Top 17 C++ Backend Interview Questions with Answers and Code Samples
ITPUB
ITPUB
Apr 12, 2016 · Databases

Mastering Oracle Auditing: How to Enable, Configure, and Interpret Audit Trails

This guide explains Oracle's auditing capabilities, covering its purpose, three audit types, how to enable auditing via AUDIT_TRAIL, defining audit policies, controlling record generation, locating audit records, special considerations, and provides practical SQL examples.

DBADatabase AuditingFine-Grained Auditing
0 likes · 9 min read
Mastering Oracle Auditing: How to Enable, Configure, and Interpret Audit Trails
ITPUB
ITPUB
Apr 8, 2016 · Databases

How to Monitor and Analyze Oracle SQL Statements with Powerful Queries

This guide provides Oracle SQL queries to list currently running statements, retrieve historical SQL, identify high‑CPU or high‑disk‑usage queries, find slow statements, and detect uncommitted transactions, enabling DBAs to quickly diagnose performance issues.

Database AdministrationOracleQueries
0 likes · 4 min read
How to Monitor and Analyze Oracle SQL Statements with Powerful Queries
ITPUB
ITPUB
Apr 3, 2016 · Databases

Master SQL GROUP BY: From Simple Aggregations to Rollup and Joins

This guide explains how to use SQL's GROUP BY clause with examples covering basic grouping, GROUP_CONCAT, aggregate functions, HAVING filters, multi‑column grouping, WITH ROLLUP, and inner, left, and right joins, illustrating each technique with clear query results.

GROUP BYHAVINGSQL
0 likes · 7 min read
Master SQL GROUP BY: From Simple Aggregations to Rollup and Joins
ITPUB
ITPUB
Mar 30, 2016 · Databases

Understanding Oracle Wait Events: A Deep Dive into 33 Common Waits

This article explains Oracle's idle and non‑idle wait events, shows how to query the v$event_name view, counts and classifies events, introduces related performance views, and provides detailed descriptions and parameters for 33 frequently encountered wait events.

AWROracleSQL
0 likes · 31 min read
Understanding Oracle Wait Events: A Deep Dive into 33 Common Waits
Qunar Tech Salon
Qunar Tech Salon
Mar 26, 2016 · Databases

MySQL User Management, Database and Table Operations Guide

This guide provides step‑by‑step instructions for connecting to MySQL, creating and managing users and permissions, displaying, creating and deleting databases and tables, performing backups and restores, and executing various query operations such as selecting, updating, and aggregating data.

Database operationsMySQLQueries
0 likes · 14 min read
MySQL User Management, Database and Table Operations Guide
ITPUB
ITPUB
Mar 23, 2016 · Databases

Mastering COALESCE in PostgreSQL: Fix NULL Arithmetic Results

This guide shows how NULL values break numeric calculations in PostgreSQL and demonstrates using the COALESCE function to substitute default numbers, with step‑by‑step SQL examples that turn unexpected NULL results into accurate sums.

COALESCENULL handlingPostgreSQL
0 likes · 4 min read
Mastering COALESCE in PostgreSQL: Fix NULL Arithmetic Results
dbaplus Community
dbaplus Community
Mar 16, 2016 · Databases

How to Supercharge SELECT COUNT(*) in Oracle: 6 Proven Optimization Tricks

Discover six powerful techniques—including B‑tree and bitmap indexes, materialized views, result‑set caching, and clever query rewrites—to dramatically reduce logical reads and accelerate Oracle's SELECT COUNT(*) performance, with step‑by‑step examples and measurable improvements.

IndexesOraclePerformance Tuning
0 likes · 6 min read
How to Supercharge SELECT COUNT(*) in Oracle: 6 Proven Optimization Tricks
Qunar Tech Salon
Qunar Tech Salon
Mar 15, 2016 · Databases

Analysis of MySQL InnoDB Locking Mechanisms and Deadlock Scenarios

This report details a series of MySQL InnoDB experiments that examine transaction locking, lock types, gap and next‑key locks, and deadlock behavior across various SQL operations, providing practical insights for optimizing concurrency and preventing deadlocks.

DeadlockInnoDBLocking
0 likes · 16 min read
Analysis of MySQL InnoDB Locking Mechanisms and Deadlock Scenarios
ITPUB
ITPUB
Mar 11, 2016 · Databases

Essential Oracle SQL Queries for DBAs: Tablespaces, Rollback Segments, and Performance Insights

A comprehensive collection of Oracle SQL statements helps database administrators quickly retrieve tablespace sizes, data file details, rollback segment information, control and log files, usage statistics, object metadata, version data, long‑running queries, partition parameters, locked objects, resource‑intensive sessions, lock and wait statuses, SGA metrics, cached objects, and SQL area details.

Database AdministrationOraclePerformance
0 likes · 10 min read
Essential Oracle SQL Queries for DBAs: Tablespaces, Rollback Segments, and Performance Insights
ITPUB
ITPUB
Feb 23, 2016 · Databases

Uncovering Oracle’s Massive CREATE TABLE Docs: Core Database Concepts Explained

This article reveals why Oracle’s CREATE TABLE documentation spans dozens of pages and walks readers through essential Oracle database concepts such as tables, indexes, sequences, views, clusters, tablespaces, database links, and synonyms to help master the platform efficiently.

ConceptsOracleSQL
0 likes · 7 min read
Uncovering Oracle’s Massive CREATE TABLE Docs: Core Database Concepts Explained
dbaplus Community
dbaplus Community
Feb 3, 2016 · Databases

What Makes PostgreSQL Superior? Data Types, Indexes, and Queries Compared

This article examines why PostgreSQL claims to be the most advanced open‑source database by detailing its object‑relational model, extensive native data types, large‑scale size limits, robust ACID compliance, powerful indexing options, flexible virtual table features, built‑in functions, language extensions, and how these capabilities compare to MySQL, MariaDB and Firebird.

CTEData TypesDatabase Comparison
0 likes · 21 min read
What Makes PostgreSQL Superior? Data Types, Indexes, and Queries Compared
dbaplus Community
dbaplus Community
Feb 2, 2016 · Databases

Unlock SQL Speed: Real-World Optimization Tricks and Techniques

This article walks through practical Oracle SQL optimization methods—explaining execution plans, indexes, statistics, hints, and partitioning—using concrete examples and step‑by‑step case studies that show how to dramatically reduce query runtimes and CPU load.

Index OptimizationOraclePerformance Tuning
0 likes · 24 min read
Unlock SQL Speed: Real-World Optimization Tricks and Techniques
21CTO
21CTO
Feb 1, 2016 · Big Data

How Solr Supercharges Real‑Time Queries in Big Data Environments

This article examines a real‑world case from Alibaba’s Taobao Jushita platform, showing how traditional SQL queries struggle with multi‑dimensional, high‑volume data and how integrating Solr’s inverted‑index search engine—combined with Hive‑generated wide tables and custom QParser plugins—delivers millisecond‑level, scalable query performance for buyer analytics.

Big DataHiveReal-time Query
0 likes · 11 min read
How Solr Supercharges Real‑Time Queries in Big Data Environments
dbaplus Community
dbaplus Community
Jan 31, 2016 · Databases

Unlock Oracle 12c Performance: Mastering In-Memory Option (IMO)

Oracle 12c’s In‑Memory Option (IMO) lets you store table, partition, and materialized view data in a columnar format within the SGA, offering faster query performance, configurable compression, priority settings, and detailed management via INMEMORY clauses, parameters, and specialized dictionary views.

In-MemoryOraclePerformance
0 likes · 17 min read
Unlock Oracle 12c Performance: Mastering In-Memory Option (IMO)
dbaplus Community
dbaplus Community
Jan 27, 2016 · Databases

How to Densify Sparse Data with Oracle 10g Partitioned Outer Join

This article explains why sparse data in Oracle tables hampers continuous time‑series reporting, introduces the Partitioned Outer Join syntax introduced in Oracle 10g, and demonstrates step‑by‑step how to transform one‑dimensional and multi‑dimensional gaps into dense datasets using practical SQL examples.

AnalyticsData DensificationOracle
0 likes · 17 min read
How to Densify Sparse Data with Oracle 10g Partitioned Outer Join
ITPUB
ITPUB
Jan 18, 2016 · Databases

Mastering Tic‑Tac‑Toe with Oracle SQL: Generate All Endgames & Find Forced Wins

This article presents two Oracle SQL challenges from the 3rd ITPUB "Shengtou Media Cup" Tic‑Tac‑Toe contest, detailing how to generate every possible terminal game sequence for insertion into a table and how to compute forced win strategies for any given board using pure SQL techniques.

Database ProgrammingGame TheoryOracle
0 likes · 14 min read
Mastering Tic‑Tac‑Toe with Oracle SQL: Generate All Endgames & Find Forced Wins
ITPUB
ITPUB
Jan 14, 2016 · Databases

SQL Tic‑Tac‑Toe Challenge: Generate All Endgames and Find Forced Wins

Presented are two Oracle‑SQL challenges from the 3rd ITPUB “Shengtou Media Cup” Tic‑Tac‑Toe contest: (1) generate every possible terminal move sequence and board state, inserting them into a TICTACTOE table without PL/SQL in WITH clauses, and (2) given any valid board, compute the forced winner and the minimal remaining moves using recursive SQL and minimax logic.

Game TheoryOracleSQL
0 likes · 8 min read
SQL Tic‑Tac‑Toe Challenge: Generate All Endgames and Find Forced Wins
dbaplus Community
dbaplus Community
Jan 13, 2016 · Databases

Simplify Oracle DBA Tasks with the OraZ Automation Toolkit

This article explains how the OraZ toolset streamlines Oracle database administration by automating routine tasks, providing intelligent hang analysis, offering comprehensive health checks, and delivering real‑time instance activity insights, ultimately reducing DBA workload and improving operational efficiency.

AutomationDBAHang Analysis
0 likes · 15 min read
Simplify Oracle DBA Tasks with the OraZ Automation Toolkit
ITPUB
ITPUB
Jan 13, 2016 · Databases

SQL Challenge: Generate All Tic‑Tac‑Toe Endgames and Determine Winning Strategies

The article details the ITPUB "Shengtou Media Cup" SQL contest, presenting two Oracle‑based Tic‑Tac‑Toe problems—one to list every possible terminal game sequence and insert it into a table, and another to compute forced wins from any valid board—along with solution approaches and extra challenges.

Game TheoryOracleRecursive query
0 likes · 9 min read
SQL Challenge: Generate All Tic‑Tac‑Toe Endgames and Determine Winning Strategies
ITPUB
ITPUB
Jan 1, 2016 · Databases

10 Essential PostgreSQL Tips to Boost Your Productivity

Discover ten practical PostgreSQL techniques—including CTEs, custom .psqlrc settings, pg_stat_statements, FDWs, array handling, materialized views, window functions, pivot shortcuts, PostGIS, and JSONB—to write cleaner queries, improve performance, and leverage advanced database features.

CTEFDWJSONB
0 likes · 9 min read
10 Essential PostgreSQL Tips to Boost Your Productivity
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 DesignDenormalizationSQL
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.

AggregationBig DataElasticsearch
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/SQLSQL
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.

OraclePerformance TuningSQL
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.

Flash SaleSQLUnique Index
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.

.NETFundamentalsParallel Programming
0 likes · 2 min read
Internal Training Courses: XML Serialization, .NET Parallel Programming Basics, and SQL Query Fundamentals
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 PuzzleSQL
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.

CASSQLbackend
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.

Best PracticesDatabase DesignPerformance
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 DataMySQLSQL
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.

FormattingSQLcode readability
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.

MongoDBNoSQLSQL
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.

DatabasesForeign KeyPrimary Key
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 KeyPrimary Key
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.

MySQLPHPPerformance
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.

BenchmarkBig DataData Management
0 likes · 15 min read
Selection and Comparison of Big Data Benchmark Standards with a Focus on TPC‑DS
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.

MySQLPostgreSQLSQL
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 SecurityEncryptionPostgreSQL
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.

ComparisonMySQLPostgreSQL
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