Tagged articles
59 articles
Page 1 of 1
Su San Talks Tech
Su San Talks Tech
May 17, 2026 · Databases

Why Leading Companies Avoid NULL Values in MySQL

The article explains why major tech companies discourage using NULL in MySQL, covering its meaning as an unknown state, three-valued logic pitfalls such as NOT IN subqueries, index inefficiencies, aggregate function quirks, storage overhead, Java handling issues, and offers practical alternatives like NOT NULL constraints with sensible defaults.

Database designIndex OptimizationNULL
0 likes · 11 min read
Why Leading Companies Avoid NULL Values in MySQL
ITPUB
ITPUB
Jan 19, 2026 · Databases

Why IN/NOT IN Slow Down Queries and How to Replace Them

The article explains how using IN and NOT IN in SQL can dramatically hurt performance and produce incorrect results, especially with large tables or NULL values, and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOIN with concrete code examples.

EXISTSINJOIN
0 likes · 6 min read
Why IN/NOT IN Slow Down Queries and How to Replace Them
Su San Talks Tech
Su San Talks Tech
Jan 7, 2026 · Databases

Why MySQL NULL Values Can Cause P0 Outages and How to Avoid Them

This article explains how improper use of NULL in MySQL columns can lead to serious production incidents, outlines official recommendations against NULL, demonstrates its impact on queries, indexes, and storage, and provides practical guidelines for when to use or avoid NULL values.

Database designNULLindexing
0 likes · 13 min read
Why MySQL NULL Values Can Cause P0 Outages and How to Avoid Them
ITPUB
ITPUB
Dec 8, 2025 · Databases

When Should You Store NULL vs Default Values in MySQL? A Deep Dive into Row Formats

This article examines MySQL’s handling of nullable columns, comparing the storage implications of saving NULL versus assigning default values, explains InnoDB row formats (REDUNDANT, COMPACT, DYNAMIC, COMPRESSED), and outlines the effects on storage space, indexing, and query behavior.

Database designInnoDBNULL
0 likes · 6 min read
When Should You Store NULL vs Default Values in MySQL? A Deep Dive into Row Formats
Top Architect
Top Architect
Nov 25, 2025 · Backend Development

Why a Username of "null" Can Crash Your System – and How to Prevent It

Using the literal string "null" as a username can silently bypass null checks, create phantom users, pollute databases, and cause debugging nightmares, so this article explains the pitfalls, shows real‑world examples, and provides concrete backend, frontend, and database validation techniques to avoid such bugs.

BackendNULLfrontend
0 likes · 6 min read
Why a Username of "null" Can Crash Your System – and How to Prevent It
Java Captain
Java Captain
Nov 1, 2025 · Databases

Why IN/NOT IN Slows Queries and How to Use EXISTS or JOIN Instead

The article explains why the SQL IN and NOT IN operators often cause poor performance and incorrect results—especially with large tables or NULL values—and demonstrates safer alternatives such as EXISTS, NOT EXISTS, and JOIN with clear code examples.

EXISTSINJOIN
0 likes · 5 min read
Why IN/NOT IN Slows Queries and How to Use EXISTS or JOIN Instead
Java Web Project
Java Web Project
Oct 14, 2025 · Databases

Why IN/NOT IN Can Destroy Query Performance and Return Wrong Results

The article explains how using IN and NOT IN in SQL can lead to full‑table scans, ignore indexes, produce incorrect results when columns mismatch or contain NULLs, and shows safer alternatives like EXISTS, NOT EXISTS, and JOIN with concrete code examples and benchmark timings.

EXISTSINNOT IN
0 likes · 6 min read
Why IN/NOT IN Can Destroy Query Performance and Return Wrong Results
Architect's Guide
Architect's Guide
Sep 21, 2025 · Backend Development

Why Using “null” as a Username Breaks Your App and How to Prevent It

This article explains how treating the string "null" as a valid username can cause user‑experience glitches, log‑debugging nightmares, database contamination, security risks, and automation failures, and provides concrete backend, frontend, and database validation techniques to avoid these pitfalls.

NULLusername
0 likes · 5 min read
Why Using “null” as a Username Breaks Your App and How to Prevent It
Java Captain
Java Captain
Sep 5, 2025 · Backend Development

When "null" Becomes a Real Username: Hidden Bugs and How to Prevent Them

Developers often mistake the string "null" for an actual null value, leading to unexpected bugs such as phantom users, logging chaos, database contamination, and security risks; this article explains why this happens and provides practical backend, frontend, and database validation strategies to avoid the pitfalls.

BackendNULLSecurity
0 likes · 5 min read
When "null" Becomes a Real Username: Hidden Bugs and How to Prevent Them
macrozheng
macrozheng
Aug 31, 2025 · Backend Development

Why Using "null" as a Username Breaks Systems and How to Fix It

The article explains the meaning of null in programming, why users registering with "null" can crash backend logic, and offers practical front‑end validation, back‑end safeguards, and logging strategies to prevent such human‑driven edge cases from breaking applications.

BackendNULLedge case
0 likes · 5 min read
Why Using "null" as a Username Breaks Systems and How to Fix It
ITPUB
ITPUB
Sep 1, 2024 · Databases

Why MySQL’s != on Nullable Indexed Columns Returns Unexpected Results

This article demonstrates how a non‑unique indexed column that allows NULL values behaves with the != operator in MySQL, showing why null rows are omitted from result sets, how index usage changes, and how to rewrite queries with OR or UNION to obtain correct results while preserving performance.

NULLSQLexplain
0 likes · 6 min read
Why MySQL’s != on Nullable Indexed Columns Returns Unexpected Results
Cognitive Technology Team
Cognitive Technology Team
Jun 8, 2024 · Fundamentals

Why ConcurrentHashMap Disallows Null Keys and Values in Java

ConcurrentHashMap forbids null keys and values because allowing nulls creates ambiguous results in concurrent environments, making it impossible to distinguish between a missing entry and an entry explicitly mapped to null, which could compromise thread safety, as explained by Doug Lea’s design rationale.

ConcurrentHashMapJavaNULL
0 likes · 4 min read
Why ConcurrentHashMap Disallows Null Keys and Values in Java
DevOps Cloud Academy
DevOps Cloud Academy
Jun 3, 2024 · Fundamentals

Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks

NULL, the ubiquitous placeholder for missing values, can silently introduce bugs, crashes, and data inconsistencies across languages and databases, but by understanding its pitfalls and applying strategies like optional types, default values, Null Object patterns, and proper database constraints, developers can significantly improve code reliability.

Error HandlingNULLbest practices
0 likes · 10 min read
Understanding NULL: The Silent Killer in Code and How to Mitigate Its Risks
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Dec 22, 2023 · Databases

Understanding NULL Values in MySQL

This article explains the nature of NULL in MySQL, demonstrates why comparisons with = or != fail, shows the correct IS NULL/IS NOT NULL syntax, and discusses how NULL behaves with DISTINCT, GROUP BY, ORDER BY, and aggregate functions.

NULLSQLaggregation
0 likes · 6 min read
Understanding NULL Values in MySQL
Java Architect Essentials
Java Architect Essentials
Sep 3, 2023 · Databases

Why Avoid NULL Columns in MySQL: Reasons and Implications

This article examines why MySQL columns are often defined as NULL, debunks common myths, and presents several technical reasons—including storage overhead, index complications, query pitfalls, and timestamp issues—that justify using NOT NULL with meaningful default values for better performance and data integrity.

NULLSQLmysql
0 likes · 9 min read
Why Avoid NULL Columns in MySQL: Reasons and Implications
Top Architect
Top Architect
Aug 15, 2023 · Databases

Why Avoid NULL Columns in MySQL: Performance and Indexing Considerations

The article examines the drawbacks of using NULL columns in MySQL, explaining how they increase storage space, complicate indexing and query optimization, and can cause performance issues, while providing examples and best practices for defining NOT NULL constraints and handling data correctly.

NULLindexesmysql
0 likes · 9 min read
Why Avoid NULL Columns in MySQL: Performance and Indexing Considerations
Liangxu Linux
Liangxu Linux
Aug 22, 2022 · Databases

Why MySQL Unique Indexes Fail with NULL and How to Fix Them

This article explains why a MySQL UNIQUE index does not prevent duplicate rows when indexed columns contain NULL, explores the complications of logical‑delete tables, and presents practical solutions such as incrementing delete status, adding timestamps, delete‑id keys, hash fields, and proper batch inserts.

Database designIndex OptimizationLogical Delete
0 likes · 15 min read
Why MySQL Unique Indexes Fail with NULL and How to Fix Them
Laravel Tech Community
Laravel Tech Community
Feb 13, 2022 · Databases

Understanding NULL Values and Their Impact on Indexes in MySQL

This article explains how MySQL treats NULL values, the behavior of IS NULL, IS NOT NULL, the spaceship operator, IFNULL, and demonstrates with practical examples how NULL affects indexing, query performance, aggregation functions, and sorting, while offering recommendations for schema design.

NULLSQLindexes
0 likes · 12 min read
Understanding NULL Values and Their Impact on Indexes in MySQL
ByteFE
ByteFE
Jan 12, 2022 · Fundamentals

Understanding the Differences Between null and undefined in JavaScript

This article explains the conceptual and practical differences between JavaScript's null and undefined values, covering their definitions, type checking methods, comparison behavior, arithmetic conversion, JSON serialization, and best practices for usage.

ComparisonJSONJavaScript
0 likes · 10 min read
Understanding the Differences Between null and undefined in JavaScript
Aikesheng Open Source Community
Aikesheng Open Source Community
Oct 26, 2021 · Databases

Understanding MySQL explicit_defaults_for_timestamp and Its Impact on TIMESTAMP Columns

This article explains how the MySQL system variable explicit_defaults_for_timestamp controls the default and NULL handling of TIMESTAMP columns, demonstrates the differences between OFF and ON settings with practical tests, and discusses why the parameter is being deprecated for stricter time‑data management.

NULLSQLdatabase migration
0 likes · 10 min read
Understanding MySQL explicit_defaults_for_timestamp and Its Impact on TIMESTAMP Columns
Programmer DD
Programmer DD
Aug 7, 2021 · Databases

Why MySQL NULL Can Still Use Indexes and How It Affects Query Performance

This article explains how MySQL treats NULL values, the operators and functions for handling them, demonstrates that IS NULL can still use indexes, shows the impact on aggregate functions, distinct, group by and order by, and recommends defining columns NOT NULL to avoid performance pitfalls.

NULLSQLindex
0 likes · 15 min read
Why MySQL NULL Can Still Use Indexes and How It Affects Query Performance
Laravel Tech Community
Laravel Tech Community
Jun 18, 2021 · Databases

Understanding NULL Values in Databases

This article explains the special nature of NULL in SQL, how to correctly test for NULL using IS NULL, the three‑valued logic of true/false/unknown, and the pitfalls of NOT, NOT IN, and Oracle’s handling of empty strings versus NULL.

IS NULLNULLSQL
0 likes · 6 min read
Understanding NULL Values in Databases
macrozheng
macrozheng
Apr 14, 2021 · Databases

Why You Should Avoid NULL Columns in MySQL: Performance, Storage, and Index Impacts

This article explains why setting MySQL columns to NOT NULL improves query optimization, reduces index complexity, saves storage space, and prevents unexpected behavior in calculations, while also detailing default values, handling of NULL in aggregates, and the internal row format differences between NULLable and NOT NULL columns.

Database designNOT NULLNULL
0 likes · 12 min read
Why You Should Avoid NULL Columns in MySQL: Performance, Storage, and Index Impacts
Laravel Tech Community
Laravel Tech Community
Feb 18, 2021 · Databases

Why NULL Columns Can Break MySQL Indexes and How to Avoid It

This article explains how MySQL treats NULL values, why columns defined with NULL can invalidate indexes, demonstrates the behavior of IS NULL, IS NOT NULL, the spaceship operator, IFNULL, COUNT, DISTINCT, GROUP BY and ORDER BY with NULLs, and offers practical recommendations for schema design.

Database designNULLSQL
0 likes · 13 min read
Why NULL Columns Can Break MySQL Indexes and How to Avoid It
Programmer DD
Programmer DD
May 15, 2020 · Backend Development

Avoid These Common Java Map Pitfalls: Nulls, Custom Keys, and Concurrency Issues

This article explains why some Map implementations reject null values, how using custom objects as keys can cause unexpected behavior, and why ConcurrentHashMap does not guarantee thread safety for compound operations, offering practical guidelines to prevent these frequent Java collection bugs.

ConcurrentHashMapHashMapJava
0 likes · 10 min read
Avoid These Common Java Map Pitfalls: Nulls, Custom Keys, and Concurrency Issues
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 29, 2020 · Databases

Understanding MySQL Field Attributes: NULL, NOT NULL, and AUTO_INCREMENT Performance Considerations

This article examines MySQL column attributes—especially NULL vs NOT NULL handling, the impact of NULL on concatenation, COUNT and indexing, as well as AUTO_INCREMENT behaviors, lock modes, step/offset settings, and overflow scenarios—to help developers write more efficient and reliable SQL.

Database PerformanceNULLauto_increment
0 likes · 10 min read
Understanding MySQL Field Attributes: NULL, NOT NULL, and AUTO_INCREMENT Performance Considerations
ITPUB
ITPUB
Jun 2, 2016 · Fundamentals

Why Do Languages Keep Null? Exploring the Design Trade‑offs Behind Null References

The article examines why major languages like Java and C# still include null references, presenting expert insights from Eric Lippert and others on the complex trade‑offs—such as orthogonality, compatibility, interop, performance, and semantic consistency—that influence language designers despite known pitfalls.

C#JavaNULL
0 likes · 7 min read
Why Do Languages Keep Null? Exploring the Design Trade‑offs Behind Null References
Qunar Tech Salon
Qunar Tech Salon
Mar 21, 2015 · Fundamentals

Understanding Null in Java: Causes, Behaviors, and Best Practices

This article explains the role of the null keyword in Java, its default value for reference types, common pitfalls such as NullPointerException caused by autoboxing, improper primitive assignments, instanceof checks, static method calls on null references, and safe handling techniques to write null‑safe code.

AutoboxingJavaNULL
0 likes · 12 min read
Understanding Null in Java: Causes, Behaviors, and Best Practices