Tagged articles
18 articles
Page 1 of 1
macrozheng
macrozheng
Apr 16, 2025 · Databases

Why Enterprises Shun Foreign Keys: Performance Risks and Alternatives

Although foreign keys enforce referential integrity, many enterprises avoid them because they can slow inserts, cause blocking cascade updates, trigger database update storms in high‑concurrency environments, and complicate sharding, leading developers to prefer redundant fields and handle relationships at the application layer.

Database PerformanceForeign Keymysql
0 likes · 6 min read
Why Enterprises Shun Foreign Keys: Performance Risks and Alternatives
Programmer DD
Programmer DD
Dec 5, 2023 · Databases

Master the Basics of SQL: Understanding Tables, Keys, and Queries

This article introduces SQL as the standard language for relational databases, explains how data is organized into tables with primary and foreign keys, and walks through essential keywords like SELECT, WHERE, and JOIN to query and relate data effectively.

Foreign KeyJOINRelational Databases
0 likes · 5 min read
Master the Basics of SQL: Understanding Tables, Keys, and Queries
IT Services Circle
IT Services Circle
Nov 12, 2023 · Databases

Why Many Large Internet Companies Avoid Using MySQL Foreign Keys

The article explains that while MySQL foreign keys ensure data consistency and integrity, they introduce performance overhead, lock contention, and scalability issues—especially in high‑concurrency and sharded environments—leading many large internet firms to forego them in favor of application‑level solutions.

Database PerformanceForeign KeyScalability
0 likes · 5 min read
Why Many Large Internet Companies Avoid Using MySQL Foreign Keys
Laravel Tech Community
Laravel Tech Community
Nov 19, 2020 · Databases

Fundamental Principles of Database Design: Entities, Keys, Normalization, and Optimization

This article outlines essential database design concepts, covering the relationship between source documents and entities, primary‑foreign key design, basic table characteristics, normalization standards, handling many‑to‑many relationships, primary key strategies, data redundancy, ER‑diagram considerations, view usage, and performance‑boosting techniques.

Database designForeign KeyPerformance Optimization
0 likes · 12 min read
Fundamental Principles of Database Design: Entities, Keys, Normalization, and Optimization
Architecture Digest
Architecture Digest
Nov 12, 2020 · Databases

Key Principles of Database Design: From Entity Relationships to Performance Optimization

This article outlines essential database design principles, covering entity‑document relationships, primary and foreign keys, basic table characteristics, normalization versus denormalization, handling many‑to‑many relations, view usage, integrity constraints, and performance‑boosting techniques such as the “Three‑Less” rule and partitioning.

ER DiagramForeign Keynormalization
0 likes · 13 min read
Key Principles of Database Design: From Entity Relationships to Performance Optimization
Selected Java Interview Questions
Selected Java Interview Questions
Aug 4, 2020 · Databases

Fundamental Concepts and Best Practices for Database Design

This article presents a comprehensive guide to database design, covering the relationship between source documents and entities, primary and foreign keys, table properties, normalization standards, handling many‑to‑many relationships, key selection, data redundancy, ER diagram considerations, view usage, intermediate and temporary tables, integrity constraints, the "Three‑Few" principle, and practical techniques for improving database performance.

Database designER DiagramForeign Key
0 likes · 14 min read
Fundamental Concepts and Best Practices for Database Design
ITPUB
ITPUB
Jun 10, 2020 · Databases

When Should You Use Foreign Keys? Benefits, Risks, and Performance Impact

This article explains what foreign keys are, how they enforce referential integrity in relational databases, the different actions (RESTRICT, CASCADE, SET NULL), their performance overhead demonstrated by benchmarks, and practical guidelines for simulating or using foreign keys in high‑concurrency applications.

CascadingDatabase designForeign Key
0 likes · 14 min read
When Should You Use Foreign Keys? Benefits, Risks, and Performance Impact
Java Captain
Java Captain
Nov 1, 2019 · Databases

Key Principles of Database Design: Primary/Foreign Keys, Normalization, and Table Types

This article explains the relationships between source documents and entities, the role of primary and foreign keys, the characteristics of base tables, normalization standards, handling many‑to‑many relationships, primary‑key generation methods, data redundancy concepts, ER‑diagram best practices, view usage, and performance‑optimizing techniques for relational databases.

Database designER DiagramForeign Key
0 likes · 14 min read
Key Principles of Database Design: Primary/Foreign Keys, Normalization, and Table Types
ITFLY8 Architecture Home
ITFLY8 Architecture Home
May 31, 2018 · Databases

Master Relational Database Design: From Basics to Normalization

This article walks through choosing a web framework and database, introduces relational databases, explains design steps such as requirement analysis, table creation, primary key selection, relationship modeling (one‑to‑many, many‑to‑many, one‑to‑one) with SQL examples, and covers normalization forms, integrity rules, and indexing strategies.

Database designForeign KeyRelational Database
0 likes · 19 min read
Master Relational Database Design: From Basics to Normalization
MaGe Linux Operations
MaGe Linux Operations
Jun 25, 2017 · Databases

Master Database Normalization: 1NF, 2NF, 3NF & Key Constraints Explained

An overview of relational database normalization explains the three normal forms—1NF, 2NF, and 3NF—and details the five essential constraints (primary key, unique, default, foreign key, not null), including practical examples, rules, and foreign‑key syntax for proper schema design.

Database NormalizationForeign KeySQL constraints
0 likes · 6 min read
Master Database Normalization: 1NF, 2NF, 3NF & Key Constraints Explained
Practical DevOps Architecture
Practical DevOps Architecture
Jun 30, 2016 · Databases

MySQL Indexes, Primary Keys, Foreign Keys, and Storage Engine Configuration Guide

This article provides a step-by-step guide on creating and managing MySQL indexes (including INDEX and UNIQUE), defining primary keys with AUTO_INCREMENT, establishing foreign key relationships with cascade updates/deletes, and configuring the default storage engine, illustrated with practical SQL commands and examples.

Foreign KeySQLStorage Engine
0 likes · 11 min read
MySQL Indexes, Primary Keys, Foreign Keys, and Storage Engine Configuration Guide
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 KeySQLdatabases
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 KeySQL
0 likes · 6 min read
Why Physical Primary Keys and Optimistic Locks Are Essential for Reliable DB Design