Tagged articles

SQL

2900 articles · Page 27 of 29
ITPUB
ITPUB
Jan 16, 2018 · Databases

10 Groundbreaking Database Systems Launched in 2017

A 2017 roundup highlights ten innovative database releases—including a time‑series extension for PostgreSQL, a multi‑model Azure service, Google’s globally distributed Spanner, Amazon’s Neptune graph service, and several open‑source cloud‑native databases—detailing their key features, architectures, and intended use cases.

GraphSQLTime Series
0 likes · 10 min read
10 Groundbreaking Database Systems Launched in 2017
ITPUB
ITPUB
Jan 11, 2018 · Databases

Master MySQL Character Sets & Collations: When and How to Configure Them

This article explains MySQL character sets and collations, their relationship, how to view supported options, and step‑by‑step methods for configuring them at server, database, table, and column levels, plus guidance on when each setting should be applied.

MySQLSQLcollation
0 likes · 14 min read
Master MySQL Character Sets & Collations: When and How to Configure Them
ITPUB
ITPUB
Dec 27, 2017 · Databases

Understanding MySQL Transaction Isolation Levels with Real‑World Examples

This article explains the four MySQL transaction isolation levels—Read Uncommitted, Read Committed, Repeatable Read, and Serializable—by creating a sample table and running step‑by‑step command‑line sessions that demonstrate dirty reads, non‑repeatable reads, phantom reads, and the practical limits of InnoDB's MVCC implementation.

InnoDBMySQLSQL
0 likes · 9 min read
Understanding MySQL Transaction Isolation Levels with Real‑World Examples
dbaplus Community
dbaplus Community
Dec 12, 2017 · Databases

MariaDB ColumnStore: Future‑Ready OLAP Architecture, Limits & Migration Tips

This article shares practical experience deploying MariaDB ColumnStore for offline OLAP, covering its MPP‑based architecture, user‑experience benefits, high‑availability options, numerous syntax and data‑type limitations, and detailed scripts for schema conversion and incremental data extraction using pt‑archiver.

ColumnstoreMariaDBOLAP
0 likes · 17 min read
MariaDB ColumnStore: Future‑Ready OLAP Architecture, Limits & Migration Tips
ITPUB
ITPUB
Dec 12, 2017 · Databases

Understanding PostgreSQL’s Subquery Planner: How Query Optimization Works

This article explains how PostgreSQL transforms and rewrites query trees, why a completed transform‑rewrite tree may not be optimal, and details the subquery_planner’s role, tuple_fraction handling, and the step‑by‑step logical optimization process used to generate efficient execution plans.

Planner HookPostgreSQLQuery Optimization
0 likes · 7 min read
Understanding PostgreSQL’s Subquery Planner: How Query Optimization Works
ITPUB
ITPUB
Dec 6, 2017 · Databases

Mastering Oracle Data Dictionary: Types, Views, and Practical Queries

This article explains the classification of Oracle data dictionary objects, demonstrates how to query static and dynamic dictionary tables and views, lists common view families and permission views, and provides numerous SQL examples for inspecting users, tables, indexes, sequences, constraints, and PL/SQL objects.

OracleSQLViews
0 likes · 13 min read
Mastering Oracle Data Dictionary: Types, Views, and Practical Queries
ITPUB
ITPUB
Dec 5, 2017 · Databases

How to Remove Duplicate MySQL Records with a Single Fast SQL Query

This article walks through the problem of duplicate rows in a MySQL table, shows an initial complex SQL attempt, compares a slow PHP‑based cleanup, and finally presents a concise, three‑step DELETE statement that eliminates duplicates in under a second.

MySQLPerformance OptimizationSQL
0 likes · 6 min read
How to Remove Duplicate MySQL Records with a Single Fast SQL Query
ITPUB
ITPUB
Dec 1, 2017 · Databases

How to Shrink Oracle Indexes for Skewed Columns Using Function Indexes

This article explains why conventional indexes waste space and perform poorly on highly skewed columns, introduces a decode‑based function index that excludes high‑frequency values, details the experimental setup with millions of rows, compares index size and query performance, and outlines the method's limitations.

Data SkewFunction IndexOracle
0 likes · 10 min read
How to Shrink Oracle Indexes for Skewed Columns Using Function Indexes
Senior Brother's Insights
Senior Brother's Insights
Nov 29, 2017 · Databases

Mastering SQL Performance: Proven Optimization Techniques and Best Practices

Learn a comprehensive methodology for SQL performance tuning, from identifying resource bottlenecks and understanding query processing stages to applying practical optimization tactics such as efficient joins, index usage, avoiding costly operations, and best‑practice guidelines that improve execution speed and resource consumption.

OptimizationQuery TuningSQL
0 likes · 13 min read
Mastering SQL Performance: Proven Optimization Techniques and Best Practices
dbaplus Community
dbaplus Community
Nov 29, 2017 · Databases

Why Fewer Permissions Slow Down Oracle SQL: A Deep Dive into EXISTS Subqueries

An Oracle SQL query with five EXISTS permission checks runs dramatically slower when only a few permissions are configured, and the author investigates the root cause using execution plans, SQL Monitor data, and step‑by‑step testing, ultimately revealing how execution counts and row returns drive the unexpected performance degradation.

OraclePermission ChecksSQL
0 likes · 11 min read
Why Fewer Permissions Slow Down Oracle SQL: A Deep Dive into EXISTS Subqueries
ITPUB
ITPUB
Nov 27, 2017 · Databases

Essential Database Design and Query Optimization Tips for Faster SQL Performance

This article outlines essential database design principles and a comprehensive set of query optimization techniques, covering row size limits, appropriate data types, field length choices, index usage, avoiding costly WHERE clause patterns, and best practices for temporary tables, transactions, and result set handling to boost SQL performance.

Query OptimizationSQLbest practices
0 likes · 13 min read
Essential Database Design and Query Optimization Tips for Faster SQL Performance
ITPUB
ITPUB
Nov 22, 2017 · Databases

Boost MySQL Bulk Inserts: Proven Techniques & Optimized Syntax

This guide explains the factors that affect MySQL INSERT performance and presents a collection of practical techniques—including multi‑row INSERT, bulk_insert_buffer_size tuning, INSERT DELAYED, LOAD DATA INFILE, table creation with disabled keys, LOCK TABLES, and the proper use of IGNORE and ON DUPLICATE KEY UPDATE—to dramatically speed up large‑scale data loading.

INSERTMySQLSQL
0 likes · 11 min read
Boost MySQL Bulk Inserts: Proven Techniques & Optimized Syntax
Qunar Tech Salon
Qunar Tech Salon
Nov 16, 2017 · Databases

Why Upgrade PostgreSQL and How to Perform a Major Version Upgrade Using PGQ

This article explains the importance of upgrading PostgreSQL to benefit from new features and security fixes, compares traditional upgrade methods, introduces the PGQ replication system, and provides a detailed step‑by‑step guide for performing a major version upgrade with minimal downtime.

PGQPostgreSQLReplication
0 likes · 11 min read
Why Upgrade PostgreSQL and How to Perform a Major Version Upgrade Using PGQ
ITPUB
ITPUB
Nov 15, 2017 · Databases

Master MySQL JSON: Create, Query, Update, and Index JSON Data in MySQL 5.7+

This guide walks you through using MySQL's native JSON data type—creating tables with JSON columns, inserting simple and complex JSON values, updating nested structures, generating indexed columns from JSON fields, converting strings to JSON, and a comprehensive list of built‑in JSON functions.

JSONMySQLSQL
0 likes · 6 min read
Master MySQL JSON: Create, Query, Update, and Index JSON Data in MySQL 5.7+
ITPUB
ITPUB
Nov 13, 2017 · Big Data

How Real‑Time Big Data Stream Computing Powers Double 11 E‑Commerce Success

The article explains how NetEase’s real‑time big‑data stream computing platform, Sloth, handles massive, continuously generated data during China’s Double 11 shopping festival, covering use cases, architectural shifts from batch to incremental processing, technical challenges, and the role of stream‑SQL for easier development.

Real-Time ComputingSQLdistributed systems
0 likes · 16 min read
How Real‑Time Big Data Stream Computing Powers Double 11 E‑Commerce Success
ITPUB
ITPUB
Nov 13, 2017 · Big Data

How Real-Time Big Data Streaming Powers Double 11 E‑Commerce Success

The article explains how continuous data generation and real‑time stream processing enable e‑commerce platforms like NetEase Kaola to handle massive Double 11 traffic, showcasing use cases, architectural shifts from batch to incremental computing, and the technical challenges of latency, accuracy, and fault tolerance.

SQLdistributed systemse-commerce
0 likes · 15 min read
How Real-Time Big Data Streaming Powers Double 11 E‑Commerce Success
ITPUB
ITPUB
Nov 9, 2017 · Databases

34 Proven Oracle SQL Optimization Tips to Boost Query Performance

This guide presents thirty‑four practical Oracle SQL optimization techniques—from choosing the most efficient table order and rewriting WHERE clauses to leveraging indexes, avoiding SELECT *, using DECODE, and replacing costly operations—helping developers dramatically improve query speed and resource usage.

OptimizationOracleSQL
0 likes · 16 min read
34 Proven Oracle SQL Optimization Tips to Boost Query Performance
ITPUB
ITPUB
Nov 7, 2017 · Big Data

Which Tech Giant Dominates Open‑Source on GitHub? 2017 Contribution Analysis

This article examines 2017 GitHub data to compare how major tech companies like Microsoft, Google, Amazon, and others contribute to open‑source projects, revealing surprising rankings, star counts, and the methodology behind the analysis using Google BigQuery and custom SQL queries.

GitHubGoogle BigQuerySQL
0 likes · 8 min read
Which Tech Giant Dominates Open‑Source on GitHub? 2017 Contribution Analysis
ITPUB
ITPUB
Nov 7, 2017 · Databases

Why MySQL Ignored My Index and How to Speed Up Periodic Deletion Queries

The article examines why a MySQL DELETE statement with a composite index on biz_date and status still triggers a full‑table scan, shows EXPLAIN output, tests forced index usage, and ultimately demonstrates that narrowing the date range in the query dramatically reduces rows examined and improves performance.

MySQLQuery OptimizationSQL
0 likes · 7 min read
Why MySQL Ignored My Index and How to Speed Up Periodic Deletion Queries
dbaplus Community
dbaplus Community
Oct 31, 2017 · Databases

How I Cut a 5‑Second SQL Query to Under 1 Second in a Critical Release

Facing a last‑minute performance crisis on a major release, the author dissected eight SQL statements, merged four permission‑related queries using Oracle's RANK function, and reduced the responsibility‑lookup time from five seconds to under one second, ensuring the system met its strict latency target.

OracleQuery TuningRank Function
0 likes · 10 min read
How I Cut a 5‑Second SQL Query to Under 1 Second in a Critical Release
Liulishuo Tech Team
Liulishuo Tech Team
Oct 22, 2017 · Big Data

Data-CI: A SQL-Based Data Unit Testing Framework for ETL

The article introduces data-ci, a SQL‑driven unit testing framework that lets engineers write, organize, and automate data validation tests for ETL pipelines, providing assertions, failure callbacks, coverage reporting, and CI integration to improve data quality and reliability.

Data QualityETLSQL
0 likes · 9 min read
Data-CI: A SQL-Based Data Unit Testing Framework for ETL
21CTO
21CTO
Oct 20, 2017 · Databases

Master MySQL Indexes: Boost Query Performance with Smart B+Tree Strategies

This guide explains MySQL B+Tree index structures, their advantages, how to create primary, unique, ordinary, full‑text, composite and prefix indexes, and provides practical rules and tips for designing efficient indexes, query patterns, and sorting strategies to dramatically improve database performance.

B+ TreeMySQLSQL
0 likes · 14 min read
Master MySQL Indexes: Boost Query Performance with Smart B+Tree Strategies
ITPUB
ITPUB
Oct 14, 2017 · Databases

Cutting a Slow Oracle Search Query from Cost 13902 to Under 100

This article walks through diagnosing a sluggish Oracle search query with many optional filters, removing unnecessary joins and function calls, applying conditional MyBatis joins, and creating composite indexes to dramatically lower the execution plan cost from 13902 to under 100.

MyBatisOracleQuery Optimization
0 likes · 11 min read
Cutting a Slow Oracle Search Query from Cost 13902 to Under 100
ITPUB
ITPUB
Oct 7, 2017 · Databases

Essential Oracle SQL Commands: From Connecting to Advanced Tablespace Management

This guide provides a comprehensive collection of Oracle SQL commands covering connection, query execution, variable handling, formatting, tablespace creation, modification, and external table operations, presented step‑by‑step for database administrators and developers.

External TableOraclePartitioning
0 likes · 11 min read
Essential Oracle SQL Commands: From Connecting to Advanced Tablespace Management
ITPUB
ITPUB
Sep 30, 2017 · Databases

Recovering Deleted MySQL User Data from Binary Logs

When a sales employee's workflow records vanished after a WeChat ID change, the team traced the deletion to MySQL binary logs, extracted the relevant log entries, and used bulk UPDATE statements to replace the old user_id with the new one, fully restoring the missing data.

Binary LogMySQLSQL
0 likes · 5 min read
Recovering Deleted MySQL User Data from Binary Logs
dbaplus Community
dbaplus Community
Sep 24, 2017 · Databases

Why Splitting a Giant SQL Query Cut Report Time by 6 Seconds

In a high‑pressure performance‑optimization project, a team dissected a massive, multi‑with‑clause SQL report into smaller temporary‑table queries, applied dimensional modeling, and achieved a 6‑second runtime reduction while handling complex reporting requirements across regions, contractors, and milestones.

Query RefactoringSQLTemporary tables
0 likes · 10 min read
Why Splitting a Giant SQL Query Cut Report Time by 6 Seconds
Meituan Technology Team
Meituan Technology Team
Sep 21, 2017 · Databases

Database Q&A: Book Recommendations, Engine Differences, Optimization, Sharding, and Operational Practices

The article compiles Meituan‑Dianping engineers' Q&A covering SQL book suggestions, relational versus NoSQL engine choices, performance tuning techniques, time‑series database uses, sharding versus partitioning strategies, query handling in distributed systems, proxy limitations, and practical advice on replication and pre‑database setups.

MySQLNoSQLOptimization
0 likes · 12 min read
Database Q&A: Book Recommendations, Engine Differences, Optimization, Sharding, and Operational Practices
ITPUB
ITPUB
Sep 21, 2017 · Databases

MySQL vs PostgreSQL: 20 Key Differences Every Developer Should Know

This article provides a detailed, side‑by‑side comparison of MySQL and PostgreSQL, covering their histories, licensing, feature sets, performance characteristics, extensions like PostGIS, indexing, clustering, transaction handling, and practical guidance on choosing the right database for specific workloads.

MySQLPostgreSQLSQL
0 likes · 18 min read
MySQL vs PostgreSQL: 20 Key Differences Every Developer Should Know
Programmer DD
Programmer DD
Sep 19, 2017 · Databases

Why MySQL Ignored My Index and How to Speed Up Periodic Deletions

The article investigates why a seemingly indexed MySQL DELETE query still performs a full‑table scan, analyzes execution plans and statistics, demonstrates forcing the index, and finally rewrites the query to limit the date range, achieving a much faster operation.

Index OptimizationMySQLSQL
0 likes · 7 min read
Why MySQL Ignored My Index and How to Speed Up Periodic Deletions
ITPUB
ITPUB
Sep 19, 2017 · Databases

Mastering Oracle Datafiles: Queries, Creation, Resizing, and Management

This guide explains Oracle datafile concepts, how to query absolute and relative file numbers, create and add files to tablespaces, modify file size with autoextend or resize, change file availability, rename or move files, and safely delete files while observing key restrictions.

DatafilesOracleSQL
0 likes · 13 min read
Mastering Oracle Datafiles: Queries, Creation, Resizing, and Management
ITPUB
ITPUB
Aug 30, 2017 · Databases

How to Slash SQL I/O and CPU Costs: Practical Query Performance Tips

Learn practical techniques to reduce unnecessary I/O and CPU consumption in SQL queries, including narrowing scan ranges, using partition filters, optimizing joins, leveraging hints, bind variables, and proper use of MERGE, UPDATE, EXISTS/IN, pagination, temporary tables, and other performance‑tuning strategies.

MySQLOracleSQL
0 likes · 8 min read
How to Slash SQL I/O and CPU Costs: Practical Query Performance Tips
ITPUB
ITPUB
Aug 29, 2017 · Databases

Why Set-Based SQL Beats Procedural Queries: Real Performance Comparisons

The article explains how set‑based SQL queries outperform procedural, row‑by‑row approaches by showing concrete examples, AUTOTRACE statistics, and PL/SQL function alternatives, highlighting massive differences in consistent gets, recursive calls, and overall resource consumption for large production data sets.

PL/SQLProceduralSQL
0 likes · 7 min read
Why Set-Based SQL Beats Procedural Queries: Real Performance Comparisons
MaGe Linux Operations
MaGe Linux Operations
Aug 17, 2017 · Databases

Top 10 MySQL Errors Every DBA Should Know and How to Fix Them

This article compiles ten classic MySQL error scenarios—from connection limits and replication conflicts to charset issues and file‑open limits—explaining the root causes, diagnostic commands, and step‑by‑step solutions so beginners and seasoned DBAs can troubleshoot confidently.

CharsetDatabase ErrorsMySQL
0 likes · 16 min read
Top 10 MySQL Errors Every DBA Should Know and How to Fix Them
dbaplus Community
dbaplus Community
Aug 13, 2017 · Databases

Mastering Oracle Execution Plans: Control, Hints, and Design Tricks

This article teaches how to read and manipulate Oracle execution plans using hints, SQL rewrites, design features, and statistics tricks, providing step‑by‑step examples, common pitfalls, and practical scripts to achieve predictable performance without costly statistics collection.

HintsOracleSQL
0 likes · 18 min read
Mastering Oracle Execution Plans: Control, Hints, and Design Tricks
Alibaba Cloud Developer
Alibaba Cloud Developer
Aug 10, 2017 · Big Data

Alibaba’s HBase Innovations: Powering Big Data at Scale – HBaseCon 2017 Asia Insights

At HBaseCon 2017 Asia, Alibaba showcased a series of groundbreaking HBase enhancements—including strong synchronous replication, SQL-on-HBase capabilities, cross‑cluster range data copy, and read/write path optimizations—that dramatically improve performance, reliability, and usability for large‑scale big‑data storage.

HBaseReplicationSQL
0 likes · 10 min read
Alibaba’s HBase Innovations: Powering Big Data at Scale – HBaseCon 2017 Asia Insights
ITPUB
ITPUB
Aug 3, 2017 · Databases

Boost Oracle Query Speed with Parallel Processing: A Practical Guide

This article explains how Oracle's parallel processing feature can accelerate data‑intensive queries by configuring session, table, or hint‑based parallelism, shows the degree‑of‑parallelism formula, and presents experimental results that compare execution times under different settings.

OracleSQLdatabase
0 likes · 8 min read
Boost Oracle Query Speed with Parallel Processing: A Practical Guide
dbaplus Community
dbaplus Community
Aug 2, 2017 · Databases

Top 10 MySQL Error Cases and How to Fix Them

This article lists ten classic MySQL error scenarios—from connection limits and replication conflicts to startup failures and charset issues—explaining each problem, showing the exact error output, and providing step‑by‑step commands and configuration tweaks to resolve them.

Database ErrorsMySQLSQL
0 likes · 17 min read
Top 10 MySQL Error Cases and How to Fix Them
Qunar Tech Salon
Qunar Tech Salon
Jul 31, 2017 · Databases

Core Functions of Relational Database Middleware and an In‑Depth Look at Sharding‑JDBC Architecture

This article explains why relational database middleware is essential for scaling internet‑level workloads, describes the principles of horizontal sharding and distributed primary‑key generation, and provides a comprehensive overview of Sharding‑JDBC’s architecture, core modules, performance benchmarks, and future roadmap.

Database MiddlewareJavaSQL
0 likes · 18 min read
Core Functions of Relational Database Middleware and an In‑Depth Look at Sharding‑JDBC Architecture
ITPUB
ITPUB
Jul 17, 2017 · Databases

Why SQL Still Dominates After 43 Years: 8 Compelling Reasons

Based on a 2017 Stack Overflow survey of 64,000 developers, this article explains why SQL remains the second‑most used programming language, detailing eight technical, community‑driven and practical reasons that keep relational databases indispensable despite the rise of newer technologies.

RDBMSSQLdata management
0 likes · 10 min read
Why SQL Still Dominates After 43 Years: 8 Compelling Reasons
Architects' Tech Alliance
Architects' Tech Alliance
Jul 10, 2017 · Big Data

Comprehensive Collection of Technical Interview Questions from Major Tech Companies

This article compiles a wide range of interview questions sourced from Glassdoor covering general topics, machine learning, statistics, programming, big‑data frameworks, SQL, and brain‑teasers, providing candidates with English translations and insights into the types of problems asked by companies such as Apple, Google, Microsoft, Uber, and many others.

Data ScienceSQLStatistics
0 likes · 30 min read
Comprehensive Collection of Technical Interview Questions from Major Tech Companies
21CTO
21CTO
Jun 23, 2017 · Backend Development

How to Build High‑Performance Search Queries with SQL and Redis

This article explores three progressive implementations for a complex e‑commerce search interface, comparing a monolithic SQL solution, an optimized multi‑query approach, and a Redis‑based caching strategy that leverages sets and sorted sets for fast, scalable results.

BackendCachingRedis
0 likes · 8 min read
How to Build High‑Performance Search Queries with SQL and Redis
dbaplus Community
dbaplus Community
Jun 22, 2017 · Databases

Turning a 5‑Second Oracle Pagination Query into Sub‑Second Speed

This article walks through a real‑world Oracle pagination query that took over five seconds for just fifteen rows, analyzes why ORDER BY caused the slowdown, and demonstrates a step‑by‑step rewrite using a WITH clause and index‑driven access that reduces execution time to under one second.

OracleSQLindex
0 likes · 10 min read
Turning a 5‑Second Oracle Pagination Query into Sub‑Second Speed
dbaplus Community
dbaplus Community
Jun 20, 2017 · Databases

Build a Simple NoSQL Database in Python: Hands‑On Tutorial

This article walks through the concepts behind NoSQL databases, contrasts them with traditional SQL relational models, and provides a step‑by‑step Python implementation of a minimalist key‑value store, complete with command parsing, TCP/IP messaging, and code examples.

NoSQLPythonSQL
0 likes · 20 min read
Build a Simple NoSQL Database in Python: Hands‑On Tutorial
Qunar Tech Salon
Qunar Tech Salon
Jun 18, 2017 · Databases

Understanding and Applying Common Table Expressions (CTE) in SQL

This article introduces Common Table Expressions (CTE) in SQL, explains how they improve query readability and enable writable temporary tables, demonstrates multi‑table modifications, advanced CRUD scenarios, implements a ring‑buffer using CTE, and discusses performance benefits and potential pitfalls.

CTESQLdata modeling
0 likes · 12 min read
Understanding and Applying Common Table Expressions (CTE) in SQL
dbaplus Community
dbaplus Community
Jun 18, 2017 · Databases

How to Diagnose and Resolve DB2 Lock Timeouts in Production

This article walks through the step‑by‑step process of detecting, analyzing, and fixing DB2 lock‑timeout incidents in a production environment, covering configuration tweaks, script modifications, diagnostic file interpretation, and practical recommendations to prevent future deadlocks.

DB2IMPORT utilitySQL
0 likes · 9 min read
How to Diagnose and Resolve DB2 Lock Timeouts in Production
ITPUB
ITPUB
Jun 18, 2017 · Databases

Master MySQL: From Database Basics to Advanced Character Set & Collation Handling

This comprehensive guide explains what a database is, distinguishes relational and non‑relational types, walks through MySQL client‑server architecture, details SQL syntax for creating, querying, altering, and dropping databases, tables, and data, and resolves common Chinese character‑set and collation issues with practical commands and examples.

CRUDMySQLSQL
0 likes · 20 min read
Master MySQL: From Database Basics to Advanced Character Set & Collation Handling
21CTO
21CTO
Jun 14, 2017 · Big Data

How Apache Kylin Supercharges Big Data Analytics with Pre‑Computed Cubes

Apache Kylin is an open‑source, distributed OLAP engine built on Hadoop that uses pre‑computed cubes to deliver sub‑second, high‑concurrency SQL queries on massive datasets, integrates with popular BI tools, offers a modular architecture, recent 1.5.x enhancements, and extensive deployment options.

Apache KylinHadoopOLAP
0 likes · 17 min read
How Apache Kylin Supercharges Big Data Analytics with Pre‑Computed Cubes
ITPUB
ITPUB
Jun 9, 2017 · Databases

Master SQLite: From Installation to Advanced Queries in One Guide

This comprehensive SQLite tutorial walks beginners through what SQLite is, how to install it on Windows and Linux, essential syntax, CRUD operations, database objects, functions, and language-specific programming interfaces, providing step‑by‑step instructions and visual aids for practical mastery.

SQLSQLiteSyntax
0 likes · 10 min read
Master SQLite: From Installation to Advanced Queries in One Guide
21CTO
21CTO
Jun 6, 2017 · Information Security

How to Search Encrypted Database Fields Securely with Blind Indexes

This article explains why deterministic encryption like ECB is unsafe for sensitive data, introduces nondeterministic authenticated encryption, and provides a practical blind‑index technique with PHP and SQL examples for searchable encryption of fields such as Social Security numbers.

Database SecurityPHPSQL
0 likes · 14 min read
How to Search Encrypted Database Fields Securely with Blind Indexes
Qunar Tech Salon
Qunar Tech Salon
May 25, 2017 · Databases

PostgreSQL Best Practices Guide: Naming, Column, Constraints, Index, NULL Handling, Development and Management Recommendations

This guide provides comprehensive PostgreSQL best‑practice recommendations covering naming conventions, column design, constraints, index strategies, NULL handling, development standards, and administration tips to help users quickly adopt consistent and efficient database practices.

PostgreSQLSQLbest practices
0 likes · 13 min read
PostgreSQL Best Practices Guide: Naming, Column, Constraints, Index, NULL Handling, Development and Management Recommendations
Qunar Tech Salon
Qunar Tech Salon
May 24, 2017 · Databases

Common Scenarios Where SQL Fails to Use Indexes and How to Resolve Them

This article explains eight typical situations in which Oracle SQL statements cannot use indexes, illustrates each case with concrete examples and step‑by‑step rewrites, and offers practical solutions—including predicate adjustments, function indexes, and query‑transformation fixes—to improve database performance.

Index OptimizationOracleSQL
0 likes · 12 min read
Common Scenarios Where SQL Fails to Use Indexes and How to Resolve Them
dbaplus Community
dbaplus Community
May 22, 2017 · Databases

Why Your SQL Queries Skip Indexes and How to Make Them Use Indexes

This article explains eight common reasons why Oracle SQL statements fail to use indexes, provides concrete rewrite techniques, shows how optimizer bugs can block index usage, and outlines practical steps for enforcing SQL development standards through automated audit tools.

Index OptimizationOracleSQL
0 likes · 13 min read
Why Your SQL Queries Skip Indexes and How to Make Them Use Indexes
Qunar Tech Salon
Qunar Tech Salon
May 18, 2017 · Databases

Understanding Bind Variable Peeking and Its Impact on Oracle Execution Plans

This article explains how Oracle's bind variable peeking influences execution plan selection, demonstrates the performance differences between full table scans and index scans with skewed data distributions, and provides practical methods—including 10046 events, v$sql_bind_capture, and AWR views—to capture and analyze bind variable values for better SQL tuning.

AWRBind VariablesOracle
0 likes · 14 min read
Understanding Bind Variable Peeking and Its Impact on Oracle Execution Plans
ITPUB
ITPUB
May 17, 2017 · Databases

Build a Simple NoSQL Key‑Value Database in Python from Scratch

This article explains what NoSQL means, compares it with traditional SQL databases, and walks through creating a lightweight Python key‑value store with TCP/IP commands, illustrating schema design, indexing, query examples, and the full source code for a toy NoSQL system.

NoSQLSQLTutorial
0 likes · 18 min read
Build a Simple NoSQL Key‑Value Database in Python from Scratch
转转QA
转转QA
May 9, 2017 · Databases

MySQL Slow Query and Index Optimization

This article explains how to identify and analyze MySQL slow queries using tools like SHOW VARIABLES, EXPLAIN, mysqldumpslow, and profiling, and provides practical recommendations for configuring server variables, optimizing indexes, and improving query performance through systematic testing and best‑practice SQL design.

Index OptimizationMySQLSQL
0 likes · 18 min read
MySQL Slow Query and Index Optimization
ITPUB
ITPUB
May 2, 2017 · Databases

Understanding Oracle Lock Mechanisms: DML, DDL, and Row‑Level Locks Explained

This article explains how Oracle uses various lock types—including DML, DDL, and internal locks—to protect shared resources, details the lock manager workflow, describes the three lock components and lock modes, and shows practical SQL examples of transaction handling and blocking detection.

LocksOracleSQL
0 likes · 13 min read
Understanding Oracle Lock Mechanisms: DML, DDL, and Row‑Level Locks Explained
dbaplus Community
dbaplus Community
Mar 23, 2017 · Databases

How to Handle Data Conversion Errors in Oracle 12c with VALIDATE_CONVERSION and CAST

This article explains how to manage data conversion errors during Oracle data loading by using the new VALIDATE_CONVERSION function to identify problematic rows and the enhanced CAST (and TO_…) functions with ON CONVERSION ERROR defaults, providing step‑by‑step examples, SQL scripts, and practical tips for clean inserts.

CASTData ValidationDatabase 12c
0 likes · 8 min read
How to Handle Data Conversion Errors in Oracle 12c with VALIDATE_CONVERSION and CAST
ITPUB
ITPUB
Mar 23, 2017 · Databases

How to Slash Distributed Oracle Query Time with the driving_site Hint

This article explains how to use Oracle's driving_site hint to minimize network traffic in distributed DBLINK queries, demonstrates a banking case where execution time drops from over eight seconds to under one second, and provides step‑by‑step view‑based solutions for DML optimization.

Distributed QueryOracleSQL
0 likes · 8 min read
How to Slash Distributed Oracle Query Time with the driving_site Hint
dbaplus Community
dbaplus Community
Mar 22, 2017 · Databases

Mastering Oracle Dynamic Sampling for Accurate Cardinality Estimates

This article explains Oracle's dynamic sampling feature, outlines typical scenarios such as temporary tables and complex filters, presents real CRM case studies with misestimated cardinalities, demonstrates step‑by‑step solutions using DBMS_STATS commands, and shows how 12c enhancements dramatically improve estimation accuracy for complex queries.

12cDatabase StatisticsDynamic Sampling
0 likes · 8 min read
Mastering Oracle Dynamic Sampling for Accurate Cardinality Estimates
ITPUB
ITPUB
Mar 17, 2017 · Databases

Master SQL Query Execution Order and Performance Optimization Tips

This article explains the logical and physical execution order of SQL statements, offers practical tips for returning only needed data, reducing redundant work, using temporary tables wisely, optimizing subqueries and indexes, and provides concrete code examples to improve query performance.

Query OptimizationSQLdatabase
0 likes · 15 min read
Master SQL Query Execution Order and Performance Optimization Tips
ITPUB
ITPUB
Mar 16, 2017 · Databases

Why MySQL Shows Garbled Text and How to Fix It

This article explains the root causes of MySQL character‑set mojibake, illustrates the encoding/decoding steps during data insertion and retrieval, and provides reliable methods to prevent and repair corrupted text.

MySQLSQLcharset conversion
0 likes · 13 min read
Why MySQL Shows Garbled Text and How to Fix It
Meituan Technology Team
Meituan Technology Team
Mar 9, 2017 · Databases

SQLAdvisor: An Open-Source SQL Optimization Tool from Meituan-Dianping

SQLAdvisor, an open-source MySQL optimization utility from Meituan-Dianping, analyzes a given SQL statement—parsing its lexical structure, WHERE clauses, field selectivity, aggregations and multi-table joins—to automatically recommend missing indexes, supporting INSERT/DELETE/UPDATE/SELECT operations, filtering existing indexes, and inviting community contributions on GitHub.

DBAMySQLSQL
0 likes · 8 min read
SQLAdvisor: An Open-Source SQL Optimization Tool from Meituan-Dianping
ITPUB
ITPUB
Mar 8, 2017 · Databases

5 Ways to Upsert in Oracle vs MS SQL – Practical Code Examples

This article compares how to create tables and perform upsert (insert‑or‑update) operations in MS SQL and Oracle, presenting five distinct Oracle techniques—including implicit cursor, exception handling, dual table, no_data_found, and MERGE—each with complete PL/SQL code samples.

OraclePL/SQLSQL
0 likes · 8 min read
5 Ways to Upsert in Oracle vs MS SQL – Practical Code Examples
ITPUB
ITPUB
Feb 27, 2017 · Databases

Convert a Large Oracle Table to a Partitioned Table with DBMS_REDEFINITION

This guide explains how to transform an ordinary Oracle table larger than 2 GB into a partitioned table using the online redefinition method (DBMS_REDEFINITION), detailing each step from feasibility checks to final cleanup with example PL/SQL code.

DBMS_REDEFINITIONOraclePartitioning
0 likes · 5 min read
Convert a Large Oracle Table to a Partitioned Table with DBMS_REDEFINITION
ITPUB
ITPUB
Feb 26, 2017 · Databases

Optimizing Large‑Scale Oracle Queries with Temporary Tables: Strategies and Trade‑offs

The article examines a high‑volume Oracle query scenario, outlines its inefficiencies when using multiple IN clauses, and compares three optimization approaches—including a single‑SQL join, UNION ALL views, and temporary tables—while providing detailed SQL examples, performance considerations, and practical recommendations.

OracleSQLTemporary tables
0 likes · 10 min read
Optimizing Large‑Scale Oracle Queries with Temporary Tables: Strategies and Trade‑offs
ITPUB
ITPUB
Feb 24, 2017 · Databases

Why Adding NOT NULL Columns Can Still Store NULLs in Oracle?

This article examines the surprising behavior of Oracle when adding NOT NULL columns with default NULL values, explains how different Oracle versions handle the constraint, demonstrates test cases, and clarifies the underlying data‑dictionary mechanism that leads to unexpected query results.

ALTER TABLENOT NULLOracle
0 likes · 7 min read
Why Adding NOT NULL Columns Can Still Store NULLs in Oracle?
ITPUB
ITPUB
Feb 23, 2017 · Databases

Mastering SQL Joins: From CROSS to LATERAL and Beyond

This comprehensive guide explains every major SQL join type—including CROSS, INNER, OUTER, FULL, SEMI, ANTI, LATERAL, and MULTISET—detailing their logical behavior, practical use‑cases, alternative syntaxes, performance implications, and visual examples across PostgreSQL, Oracle, and SQL Server.

JOINOraclePostgreSQL
0 likes · 22 min read
Mastering SQL Joins: From CROSS to LATERAL and Beyond
ITPUB
ITPUB
Feb 22, 2017 · Databases

Unraveling a Mysterious MySQL Deadlock: Step‑by‑Step Log Analysis

This article walks through a puzzling MySQL InnoDB deadlock case, showing the table schema, the conflicting transactions, how to read the SHOW ENGINE INNODB STATUS output, and the reasoning that reveals why the deadlock occurs and how to diagnose similar issues.

InnoDBMySQLSQL
0 likes · 12 min read
Unraveling a Mysterious MySQL Deadlock: Step‑by‑Step Log Analysis
ITPUB
ITPUB
Feb 21, 2017 · Databases

How to Quickly Detect and Fix Common SQL Errors in PHP

This guide explains why production SQL errors appear despite successful local tests, shows how to proactively log and monitor PHP‑MySQL errors, and provides concrete solutions for frequent MySQL error codes with example code and step‑by‑step troubleshooting tips.

Error LoggingMySQLPHP
0 likes · 10 min read
How to Quickly Detect and Fix Common SQL Errors in PHP
ITPUB
ITPUB
Feb 15, 2017 · Databases

Master Oracle Flashback: Recover Data with Queries, Versions, and Transactions

This article explains Oracle Flashback technology—from basic flashback queries and version queries to transaction-level recovery—detailing required undo tablespace settings, essential parameters, SQL syntax, and step‑by‑step examples that demonstrate how to restore erroneous DML operations efficiently.

FlashbackOracleSQL
0 likes · 9 min read
Master Oracle Flashback: Recover Data with Queries, Versions, and Transactions
ITPUB
ITPUB
Feb 13, 2017 · Databases

Mastering SQL: Joins, Normal Forms, Indexes, and Optimization Techniques

This article explains SQL join types, the three normal forms, table creation and alteration commands, data integrity constraints, practical query‑optimization tips, the roles and differences of clustered and non‑clustered indexes, and the distinctions between stored procedures and functions.

JoinsQuery OptimizationSQL
0 likes · 7 min read
Mastering SQL: Joins, Normal Forms, Indexes, and Optimization Techniques
ITPUB
ITPUB
Jan 29, 2017 · Databases

Step-by-Step Oracle RMAN Disaster Recovery: Backup, Restore, and Validation

This guide walks through simulating a catastrophic Oracle database failure, performing incremental RMAN backups, verifying backup completeness, and executing a full restore and recovery—including spfile, controlfile, datafiles, and archived logs—so you can confidently recover a database after total data loss.

OracleRMANRestore
0 likes · 15 min read
Step-by-Step Oracle RMAN Disaster Recovery: Backup, Restore, and Validation
ITPUB
ITPUB
Jan 25, 2017 · Databases

Master Oracle Hit Ratios and Memory Tuning with Practical SQL Queries

This guide explains how to calculate and interpret key Oracle hit ratios—including library cache, shared pool, buffer cache, data buffer, sort memory, and PGA—provides exact SQL statements for each metric, and offers tuning thresholds and actions to improve database performance.

Hit RatioOracleSQL
0 likes · 7 min read
Master Oracle Hit Ratios and Memory Tuning with Practical SQL Queries
ITPUB
ITPUB
Jan 21, 2017 · Databases

Boost MySQL Bulk Inserts: Proven Techniques & Optimized Statements

This guide explains why MySQL INSERT operations can be slow, breaks down the time‑consuming factors, and provides a collection of practical techniques—such as multi‑row VALUES, LOAD DATA INFILE, table locking, and special modifiers like DELAYED, IGNORE, and ON DUPLICATE KEY UPDATE—to dramatically speed up bulk data insertion.

Bulk InsertINSERTMySQL
0 likes · 11 min read
Boost MySQL Bulk Inserts: Proven Techniques & Optimized Statements
Tencent Cloud Developer
Tencent Cloud Developer
Jan 19, 2017 · Databases

Understanding PostgreSQL TOAST (The Oversized-Attribute Storage Technique)

PostgreSQL's TOAST mechanism automatically compresses and, when necessary, moves oversized column values to an external toast table, using four storage strategies (plain, extended, external, main) that dictate compression and externalization behavior, with data exceeding roughly 2 KB triggering external storage regardless of strategy.

CompressionDatabase StorageExternal Storage
0 likes · 8 min read
Understanding PostgreSQL TOAST (The Oversized-Attribute Storage Technique)
ITPUB
ITPUB
Jan 18, 2017 · Databases

Essential Database Design and Query Optimization Tips for Faster SQL Performance

This article provides practical guidelines for designing efficient database schemas and optimizing SQL queries, covering row size limits, data type choices, index usage, common pitfalls in WHERE clauses, and best practices for temporary tables and transaction handling to improve overall database performance.

Query OptimizationSQLdatabase design
0 likes · 11 min read
Essential Database Design and Query Optimization Tips for Faster SQL Performance
ITPUB
ITPUB
Jan 10, 2017 · Databases

5 Practical SQL Query Tricks to Boost Database Readability and Performance

This article presents five useful Oracle SQL techniques—including string concatenation, DISTINCT, WHERE clauses, flexible COUNT usage, and selecting only necessary columns—to improve query readability, eliminate duplicate rows, and enhance overall database performance.

OracleQuery OptimizationSQL
0 likes · 9 min read
5 Practical SQL Query Tricks to Boost Database Readability and Performance