Tag

BIGINT

1 views collected around this technical thread.

Architect
Architect
May 17, 2025 · Databases

Storing 2 Billion Phone Numbers: Why VARCHAR(20) Is Preferable to INT/BIGINT

The article explains why using a VARCHAR(20) column to store billions of phone numbers is safer and more flexible than INT or BIGINT, covering range limits, data integrity, query convenience, interview expectations, and common pitfalls such as insufficient field length, charset issues, missing indexes, and lack of encryption.

BIGINTData IntegrityDatabase Design
0 likes · 10 min read
Storing 2 Billion Phone Numbers: Why VARCHAR(20) Is Preferable to INT/BIGINT
macrozheng
macrozheng
May 8, 2025 · Databases

Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT: Interview Insights

The article examines an interview question about storing 2 billion phone numbers, explains why int cannot hold 11‑digit numbers, advocates using VARCHAR(20) for flexibility and data integrity, and outlines common pitfalls and best practices for database design.

BIGINTDatabase DesignMySQL
0 likes · 8 min read
Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT: Interview Insights
Java Tech Enthusiast
Java Tech Enthusiast
Apr 30, 2025 · Databases

Storing 2 Billion Phone Numbers: Int vs String, Schema Design and Pitfalls

When designing a schema for two‑billion phone numbers, use a VARCHAR(20) column with utf8mb4 Unicode, a unique index, and proper validation/encryption rather than a 32‑bit INT, because strings preserve leading zeros, international prefixes, extensions, and support business extensibility, fault tolerance, and future changes.

BIGINTDatabase DesignInterview
1 likes · 7 min read
Storing 2 Billion Phone Numbers: Int vs String, Schema Design and Pitfalls
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Feb 5, 2024 · Frontend Development

Lesser‑Known but Useful ES6 Features and Techniques

This article introduces several relatively obscure yet practical ES6 features—including Object.entries/Object.fromEntries, Symbol, WeakMap/WeakSet, Promise.allSettled, BigInt, Array.of/Array.from, and the .at and flat methods—explaining their purpose and providing code examples for each.

BIGINTES6JavaScript
0 likes · 8 min read
Lesser‑Known but Useful ES6 Features and Techniques
Laravel Tech Community
Laravel Tech Community
Dec 20, 2022 · Databases

Performance Comparison of datetime, timestamp, and bigint for Storing Time in MySQL

This article evaluates how MySQL stores time using datetime, timestamp, and bigint fields by inserting 500,000 records and measuring query, grouping, and sorting speeds, concluding that bigint generally offers the best performance for time‑range operations while timestamp saves space when no manipulation is needed.

BIGINTDatabaseDateTime
0 likes · 5 min read
Performance Comparison of datetime, timestamp, and bigint for Storing Time in MySQL
Architecture Digest
Architecture Digest
Feb 6, 2022 · Databases

Performance Comparison of datetime, timestamp, and bigint for Storing Time in MySQL

This article evaluates how MySQL handles time data stored as datetime, timestamp, and bigint by inserting half a million records and measuring query, grouping, and sorting speeds, concluding that bigint generally offers the best performance for time‑range operations.

BIGINTDateTimeMySQL
0 likes · 6 min read
Performance Comparison of datetime, timestamp, and bigint for Storing Time in MySQL
Laravel Tech Community
Laravel Tech Community
Mar 8, 2021 · Databases

Understanding MySQL AUTO_INCREMENT Limits and Best Practices

This article explains MySQL AUTO_INCREMENT behavior, demonstrates creating tables with unsigned int primary keys, shows how to set and inspect the AUTO_INCREMENT value, discusses its maximum limits, and recommends using bigint or explicit primary keys to avoid overflow and duplicate‑key errors.

BIGINTDatabase DesignMySQL
0 likes · 4 min read
Understanding MySQL AUTO_INCREMENT Limits and Best Practices
macrozheng
macrozheng
Jan 27, 2021 · Databases

When MySQL Auto‑Increment IDs Hit Their Limit: Errors and Fixes

This article explains how MySQL integer auto‑increment primary keys can reach their maximum value, the resulting duplicate‑key errors, and how using BIGINT or understanding InnoDB's internal row_id behavior can prevent data loss or crashes.

BIGINTMySQLauto-increment
0 likes · 6 min read
When MySQL Auto‑Increment IDs Hit Their Limit: Errors and Fixes
Sohu Tech Products
Sohu Tech Products
Oct 21, 2020 · Frontend Development

Key New Features of ES2020 (ES11): Private Fields, Promise.allSettled, BigInt, Nullish Coalescing, Optional Chaining, Dynamic Import, matchAll, globalThis, and Module Namespace Exports

This article reviews the most useful ES2020 (ES11) JavaScript features—including private class fields, Promise.allSettled, the BigInt type, nullish coalescing (??), optional chaining (?.), dynamic import, String.prototype.matchAll, globalThis, and module namespace exports—explaining their syntax, behavior, and practical code examples.

BIGINTDynamicImportES2020
0 likes · 12 min read
Key New Features of ES2020 (ES11): Private Fields, Promise.allSettled, BigInt, Nullish Coalescing, Optional Chaining, Dynamic Import, matchAll, globalThis, and Module Namespace Exports
Qunar Tech Salon
Qunar Tech Salon
Dec 5, 2019 · Frontend Development

Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features

This article traces JavaScript’s evolution, covering the enrichment of prototype methods, standardization of classes and modules, the rise of asynchronous patterns like callbacks, promises, generators, async/await, and modern syntax features such as block scope, symbols, BigInt, reflection, and useful syntactic sugar.

BIGINTES6Generators
0 likes · 28 min read
Evolution of JavaScript: From Prototype Methods to Async/Await and Modern Features