Tag

foreign key

1 views collected around this technical thread.

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.

MySQLShardingdatabase performance
0 likes · 6 min read
Why Enterprises Shun Foreign Keys: Performance Risks and Alternatives
Selected Java Interview Questions
Selected Java Interview Questions
Oct 25, 2024 · Databases

Understanding Foreign Keys: Syntax, Operations, Advantages, Disadvantages, and Usage Scenarios

This article explains foreign key concepts in relational databases, showing how to create, modify, and drop foreign key constraints with SQL code, provides hands‑on exercises, discusses the pros and cons of using foreign keys, and outlines when they are appropriate or should be avoided.

DDLDMLData Integrity
0 likes · 6 min read
Understanding Foreign Keys: Syntax, Operations, Advantages, Disadvantages, and Usage Scenarios
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.

Lock ContentionMySQLSharding
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.

Data RedundancyDatabase Designentity-relationship
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.

Database DesignER diagramforeign key
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
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.

Data RedundancyDatabase DesignER diagram
0 likes · 14 min read
Key Principles of Database Design: Primary/Foreign Keys, Normalization, and Table Types
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.

IndexesMySQLSQL
0 likes · 11 min read
MySQL Indexes, Primary Keys, Foreign Keys, and Storage Engine Configuration Guide