Tagged articles
321 articles
Page 1 of 4
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
SpringMeng
SpringMeng
Apr 26, 2026 · Backend Development

A 3‑Year‑Proven, Universal Multi‑Account Login Architecture

The article analyzes a company’s three‑year‑old multi‑account unified login system, detailing its original phone‑code design, an optimized password‑optional flow, third‑party OAuth integration, a split user‑basic and user‑auth table schema, and the benefits and trade‑offs of one‑click mobile number authentication.

AuthenticationDatabase designOAuth
0 likes · 13 min read
A 3‑Year‑Proven, Universal Multi‑Account Login Architecture
macrozheng
macrozheng
Apr 25, 2026 · Backend Development

A 3‑Year‑Proven Universal Multi‑Account Login Architecture

The article details a comprehensive multi‑account unified login design—including phone‑number registration, optional password login, third‑party integrations, a split user‑basic and user‑auth data model, its pros and cons, and a one‑click mobile number authentication flow—offering practical insights from three years of production use.

AuthenticationDatabase designlogin
0 likes · 14 min read
A 3‑Year‑Proven Universal Multi‑Account Login Architecture
Coder Trainee
Coder Trainee
Apr 12, 2026 · Backend Development

Integrating WeChat Pay for Education Mini‑Programs: Automated Deposit and Final‑Payment Settlement

This article walks through the complete WeChat Pay integration for an education‑focused mini‑program, covering the business flow, database schema, Java backend implementation for order creation, callback handling, automatic refunds, scheduled tasks, common pitfalls, and practical tips for reliable payment processing.

Database designJavaMini Program
0 likes · 21 min read
Integrating WeChat Pay for Education Mini‑Programs: Automated Deposit and Final‑Payment Settlement
dbaplus Community
dbaplus Community
Apr 9, 2026 · Information Security

Designing Practical Encrypted Storage for Sensitive User Data

This article explains why encrypting sensitive fields like passwords, phone numbers, and ID numbers is essential, details a balanced approach using AES‑GCM encryption, HMAC indexes, and masked fields, and shares real‑world lessons from implementing the solution in a production system.

AES-GCMDatabase designHMAC
0 likes · 21 min read
Designing Practical Encrypted Storage for Sensitive User Data
Ray's Galactic Tech
Ray's Galactic Tech
Mar 26, 2026 · Backend Development

Why Go + PostgreSQL + sqlc Is the Secret to High‑Concurrency Backend Architecture

This article explains how combining Go, PostgreSQL, and sqlc creates a Zero‑ORM architecture that restores SQL to the center of high‑performance, highly controllable, and maintainable backend services, covering design principles, layer responsibilities, schema and query patterns, connection‑pool tuning, transaction handling, observability, and practical best‑practice checklists.

Backend ArchitectureDatabase designGo
0 likes · 36 min read
Why Go + PostgreSQL + sqlc Is the Secret to High‑Concurrency Backend Architecture
Architect
Architect
Mar 7, 2026 · Databases

Why an LLM‑Rewritten SQLite Is 20,000× Slower: Hidden Path Errors and Lessons

A Rust rewrite of SQLite generated largely by an LLM runs a simple primary‑key lookup 20,171 times slower than native SQLite, exposing how seemingly correct code can miss critical system constraints, and illustrating the need for explicit acceptance criteria, benchmark baselines, and governance when using AI‑generated software.

BenchmarkDatabase designLLM
0 likes · 19 min read
Why an LLM‑Rewritten SQLite Is 20,000× Slower: Hidden Path Errors and Lessons
Coder Trainee
Coder Trainee
Mar 5, 2026 · Backend Development

A Veteran Programmer’s Simple RBAC Permission System Design

This article walks through a straightforward back‑office permission system, defining permissions as resource collections, presenting a five‑table database schema, and explaining how classic Role‑Based Access Control (RBAC) simplifies permission management for multiple users.

BackendDatabase designPermission System
0 likes · 3 min read
A Veteran Programmer’s Simple RBAC Permission System Design
Big Data Tech Team
Big Data Tech Team
Jan 25, 2026 · Databases

Unlocking Data Consistency: The Essential Guide to Data Modeling Stages

This article explains why many enterprises suffer from mismatched "Customer ID" fields, clarifies the distinction between data modeling (the process) and a data model (the result), and walks through conceptual, logical, and physical modeling as well as three common modeling approaches—normative, dimensional, and entity—highlighting their purposes, steps, and trade‑offs.

Database designconceptual modelingdimensional modeling
0 likes · 12 min read
Unlocking Data Consistency: The Essential Guide to Data Modeling Stages
ITPUB
ITPUB
Jan 20, 2026 · Databases

Boost Data Warehouse Efficiency with Proven Naming Conventions

A well‑defined naming convention for data‑warehouse tables reduces chaos, improves maintainability, speeds up queries, and cuts cross‑team collaboration costs, turning raw data into a strategic asset for modern enterprises.

Data GovernanceData WarehouseDatabase design
0 likes · 8 min read
Boost Data Warehouse Efficiency with Proven Naming Conventions
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Jan 13, 2026 · Backend Development

Designing Scalable Comment Systems: From Nested Trees to Flat Floors

This article examines how to design a high‑performance comment system by comparing nested and flat (cover‑floor) database models, evaluating adjacency list, path enumeration, and closure table approaches, and outlining write‑asynchronous, cache‑first read strategies for millions of users.

BackendComment SystemDatabase design
0 likes · 5 min read
Designing Scalable Comment Systems: From Nested Trees to Flat Floors
Java Architect Handbook
Java Architect Handbook
Jan 13, 2026 · Databases

When to Normalize or Denormalize? A Deep Dive for Java Interview Prep

This article breaks down the interview expectations around database normalization, explains the theory and trade‑offs of normalization versus denormalization, provides SQL code examples, compares design impacts, offers best‑practice guidelines, and warns against common misconceptions.

Database designDenormalizationInterview Preparation
0 likes · 11 min read
When to Normalize or Denormalize? A Deep Dive for Java Interview Prep
Ray's Galactic Tech
Ray's Galactic Tech
Jan 12, 2026 · Databases

Master MySQL: Production-Ready Database Design & Operations Handbook

An experienced MySQL practitioner shares a comprehensive production‑grade design and operations guide, covering primary key selection, normalization, indexing, data types, sharding, foreign key trade‑offs, naming conventions, transaction handling, NULL usage, type safety, read/write splitting, caching, triggers, logging, monitoring, partitioning, security, and a three‑layer summary.

Database designSecuritymysql
0 likes · 9 min read
Master MySQL: Production-Ready Database Design & Operations Handbook
Java Architect Handbook
Java Architect Handbook
Jan 9, 2026 · Databases

What Happens When MySQL AUTO_INCREMENT Runs Out? Prevention and Recovery Strategies

This article analyzes the interview focus on MySQL auto‑increment primary key exhaustion, explains the underlying mechanism, outlines preventive design choices and monitoring, and provides detailed emergency response options, best‑practice recommendations, and common pitfalls for robust database management.

Database designScalabilityauto_increment
0 likes · 9 min read
What Happens When MySQL AUTO_INCREMENT Runs Out? Prevention and Recovery Strategies
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
Ray's Galactic Tech
Ray's Galactic Tech
Dec 15, 2025 · Databases

Mastering Database Design: From Core Principles to Modern Distributed Practices

This comprehensive guide walks you through fundamental database design goals, a step‑by‑step lifecycle, nine essential strategies—including normalization, indexing, and security—plus modern distributed and NoSQL considerations, performance tuning, high‑availability tactics, and practical tools for robust data governance.

Data GovernanceDatabase designNoSQL
0 likes · 11 min read
Mastering Database Design: From Core Principles to Modern Distributed Practices
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
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 30, 2025 · Backend Development

Designing a Resumable Large‑File Upload API for Private Enterprise

An in‑depth guide walks through the challenges of enterprise‑grade large file uploads—covering chunked transfer, resumable uploads, security, audit trails, and a complete set of RESTful endpoints with database schema, state‑machine handling, and both local and cloud storage integration for AI‑driven document processing.

Backend APIDatabase designEnterprise
0 likes · 33 min read
Designing a Resumable Large‑File Upload API for Private Enterprise
Java Companion
Java Companion
Nov 21, 2025 · Databases

How to Query Phone Number Suffix in Milliseconds on 50 Million Records

When faced with 50 million user rows, using LIKE '%1234' triggers a full table scan, but adding a suffix column, reversing the phone number, leveraging function indexes, or integrating Elasticsearch can reduce query time from minutes to a few milliseconds, each with its own trade‑offs.

Database designElasticsearchindexing
0 likes · 12 min read
How to Query Phone Number Suffix in Milliseconds on 50 Million Records
Su San Talks Tech
Su San Talks Tech
Nov 13, 2025 · Information Security

Designing Scalable Permission Systems: From Basic RBAC to Advanced Role Hierarchies

This article explains why permission management is essential, outlines basic and advanced permission models—including RBAC, role inheritance, constraints, user groups, organizations, and positions—and provides detailed table designs for both standard and ideal RBAC implementations, helping developers build scalable, secure access control systems.

Database designPermission DesignRBAC
0 likes · 18 min read
Designing Scalable Permission Systems: From Basic RBAC to Advanced Role Hierarchies
Big Data Tech Team
Big Data Tech Team
Oct 29, 2025 · Fundamentals

Why Unified Data Modeling Matters: From Conceptual Design to Physical Implementation

The article explains how inconsistent "customer ID" fields across systems stem from a lack of unified data models, defines the difference between data modeling and data models, outlines three modeling stages, and compares three major modeling approaches—normative, dimensional, and entity—highlighting their purposes, processes, and trade‑offs.

Data GovernanceDatabase designconceptual modeling
0 likes · 12 min read
Why Unified Data Modeling Matters: From Conceptual Design to Physical Implementation
Lin is Dream
Lin is Dream
Oct 22, 2025 · Backend Development

Designing High‑Performance Coupon Codes with Bit‑Level Encoding

This article explains how to design scalable, collision‑free coupon codes by using a custom binary layout, bit‑field allocation, checksum validation, obfuscation, Base62 encoding, and provides complete Java‑style algorithms and database schema for production use.

Code GenerationCouponDatabase design
0 likes · 15 min read
Designing High‑Performance Coupon Codes with Bit‑Level Encoding
Architect
Architect
Oct 19, 2025 · Databases

Generating Short Sequential Numeric IDs in MySQL Without Snowflake Overhead

This article explores how to replace long UUIDs with short, sequential numeric IDs by evaluating Snowflake, MySQL auto‑increment tables, REPLACE INTO deadlock issues, batch allocation strategies, and a final free‑ID table design that balances performance, simplicity, and low ID waste.

Database designID generationauto_increment
0 likes · 14 min read
Generating Short Sequential Numeric IDs in MySQL Without Snowflake Overhead
Ray's Galactic Tech
Ray's Galactic Tech
Oct 14, 2025 · Databases

Master Redis Key Naming: Best Practices for Scalable and Maintainable Data

Effective Redis key naming is essential for building robust, scalable applications; this guide outlines clear conventions—meaningful names, colon-separated namespaces, concise keys, proper ordering, TTL usage—and provides concrete examples across data types, common pitfalls, and a universal key template to improve readability, maintenance, and performance.

Database designKey NamingScalability
0 likes · 6 min read
Master Redis Key Naming: Best Practices for Scalable and Maintainable Data
Lin is Dream
Lin is Dream
Oct 14, 2025 · Backend Development

Designing a Scalable Short‑Link System: From Base62 Encoding to Security

This article explains how to build a production‑grade short‑link service, covering the background of SMS short URLs, Base62 encoding principles, database schema design, request routing, security measures such as custom alphabets, rate limiting, and signed links, and additional management features for operation and monitoring.

Backend ArchitectureDatabase designSecurity
0 likes · 16 min read
Designing a Scalable Short‑Link System: From Base62 Encoding to Security
dbaplus Community
dbaplus Community
Oct 8, 2025 · Databases

How to Name Database Tables and Fields for Clear, Maintainable Schemas

This article shares practical guidelines for designing database schemas with meaningful table and column names, covering prefixes, English naming, boolean and timestamp conventions, foreign‑key suffixes, appropriate redundancy, and concrete examples of good and bad designs to help teams build readable and maintainable databases.

Database designLogical Deletecolumn naming
0 likes · 13 min read
How to Name Database Tables and Fields for Clear, Maintainable Schemas
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Sep 22, 2025 · Databases

Master Database Table Naming: Clear, Consistent, and Meaningful Designs

This guide explains how to design clear and maintainable database schemas by using meaningful prefixes, full English names, consistent suffixes for booleans, timestamps, and foreign keys, and by applying best‑practice naming conventions, redundancy strategies, and relationship modeling to improve readability and performance.

Database designSQLbest practices
0 likes · 14 min read
Master Database Table Naming: Clear, Consistent, and Meaningful Designs
Architect's Journey
Architect's Journey
Sep 10, 2025 · Databases

Why Taobao Order IDs End with the Same Six Digits: Inside the Gene Method

The article explains why the last six digits of Taobao order numbers are constant, revealing the “gene” method that embeds a hashed user identifier to bind orders to specific shards, thereby improving query performance, ensuring balanced data distribution, and supporting scalability in large e‑commerce systems.

Database designTaobaodistributed databases
0 likes · 8 min read
Why Taobao Order IDs End with the Same Six Digits: Inside the Gene Method
Alibaba Cloud Native
Alibaba Cloud Native
Sep 2, 2025 · Artificial Intelligence

How AI Can Design Your SQLite Database and Perform Data Analysis

This guide demonstrates using the Tongyi Lingma AI agent to automatically design an SQLite database schema, generate SQL, insert sample data, and conduct data analysis with visual charts, covering all required installations, configurations, prompts, and code snippets.

AIDatabase designMCP
0 likes · 6 min read
How AI Can Design Your SQLite Database and Perform Data Analysis
ITPUB
ITPUB
Aug 18, 2025 · Databases

Generating Ultra‑Short Numeric IDs in MySQL: From Snowflake to Custom Schemes

This article explores how to replace long Snowflake IDs with concise numeric account IDs by leveraging MySQL auto‑increment tables, addressing deadlock pitfalls of REPLACE INTO, and evaluating alternative batch‑allocation and sharding strategies before presenting a final free‑ID table design.

Database designID generationauto_increment
0 likes · 15 min read
Generating Ultra‑Short Numeric IDs in MySQL: From Snowflake to Custom Schemes
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Aug 13, 2025 · Databases

Mastering Data Sharding: Vertical & Horizontal Splitting Strategies for Scalable Systems

This article explains essential data sharding techniques for large-scale architectures, emphasizing the priority of vertical splitting by business modules, followed by horizontal partitioning of hot tables, and outlines stable sharding rules, hotspot avoidance, and minimizing cross‑shard transactions to ensure optimal performance.

Database designdata shardinghorizontal partitioning
0 likes · 4 min read
Mastering Data Sharding: Vertical & Horizontal Splitting Strategies for Scalable Systems
Huawei Cloud Developer Alliance
Huawei Cloud Developer Alliance
Aug 8, 2025 · Databases

GaussDB-Powered Database Textbook: Transforming Teaching & Practice

Facing gaps in database education, Beijing Information Technology University launched a GaussDB‑based textbook project to blend theory with hands‑on practice, producing a four‑part, thirteen‑chapter resource that covers fundamentals, SQL, design, and management, while supporting curriculum reform and industry collaboration.

Curriculum ReformDatabase EducationDatabase Management
0 likes · 10 min read
GaussDB-Powered Database Textbook: Transforming Teaching & Practice
Java Baker
Java Baker
Jul 7, 2025 · Databases

Choosing the Right Database Schema for Dynamic Business Field Expansion

This article compares five common database extension strategies—from simple MySQL column additions to a hybrid MySQL‑HBase solution—detailing their implementation, advantages, drawbacks, and ideal scenarios, helping architects select the most scalable and maintainable design for evolving business data requirements.

Database designDynamic FieldsHBase
0 likes · 8 min read
Choosing the Right Database Schema for Dynamic Business Field Expansion
ITPUB
ITPUB
May 23, 2025 · Databases

Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT/BIGINT

When designing a database for billions of phone numbers, using INT or BIGINT leads to overflow, data‑integrity loss, and inefficient queries, while VARCHAR(20) preserves formatting, supports international extensions, simplifies validation, and avoids common development pitfalls.

Database designSQLdata integrity
0 likes · 10 min read
Why Storing 2 Billion Phone Numbers Requires VARCHAR(20) Over INT/BIGINT
Architect
Architect
May 21, 2025 · Databases

Designing Short Numeric ID Generation Using MySQL Auto‑Increment and Segment Allocation

The article examines the challenges of generating short, user‑friendly numeric account IDs, evaluates Snowflake and MySQL auto‑increment approaches, discusses deadlock issues with REPLACE INTO, and presents a final segment‑based solution that allocates ID blocks per login server while avoiding waste and concurrency problems.

Database designDistributed Systemsauto_increment
0 likes · 12 min read
Designing Short Numeric ID Generation Using MySQL Auto‑Increment and Segment Allocation
Big Data Tech Team
Big Data Tech Team
May 19, 2025 · Fundamentals

Why Unified Data Modeling Matters: From Concepts to Physical Design

The article explains why establishing a unified data model is essential, differentiates data modeling from data models, outlines three modeling stages, compares normative, dimensional, and entity modeling methods, and provides practical steps and diagrams to help organizations build robust, business‑driven data architectures.

Data GovernanceDatabase designdimensional modeling
0 likes · 12 min read
Why Unified Data Modeling Matters: From Concepts to Physical Design
Zhuanzhuan Tech
Zhuanzhuan Tech
May 15, 2025 · Databases

Dynamic Extension of Fields in Billion‑Row Tables: Challenges and Practical Solutions

This article examines the difficulties of adding new fields to a core billion‑row MySQL table—including locking, page splitting, and index degradation—and presents a configuration‑driven, three‑layer architecture that uses JSON extension fields, extension tables, and Elasticsearch to achieve safe, scalable dynamic schema evolution.

Database designDynamic SchemaJSON field
0 likes · 8 min read
Dynamic Extension of Fields in Billion‑Row Tables: Challenges and Practical Solutions
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 designSQL
1 likes · 7 min read
Storing 2 Billion Phone Numbers: Int vs String, Schema Design and Pitfalls
Architect's Guide
Architect's Guide
Apr 25, 2025 · Databases

Solutions for MySQL Auto Increment ID Exhaustion

This article discusses the problem of MySQL auto‑increment ID exhaustion and presents six practical solutions—including changing column type to BIGINT, using UUIDs, segmenting ID generation, composite keys, adjusting auto‑increment steps, and database sharding—to ensure scalability and uniqueness.

Database designID Exhaustionauto_increment
0 likes · 6 min read
Solutions for MySQL Auto Increment ID Exhaustion
dbaplus Community
dbaplus Community
Apr 20, 2025 · Databases

Why Wide Tables Fail and How to Design Them Efficiently

This article explains what wide tables are, why they are controversial, outlines three common design pitfalls with practical avoidance tips, and introduces three key technologies—ClickHouse, Cassandra, and Hudi/Iceberg—to help engineers build performant, maintainable wide‑table solutions in data warehouses.

Big DataClickHouseDatabase design
0 likes · 7 min read
Why Wide Tables Fail and How to Design Them Efficiently
Architecture Digest
Architecture Digest
Apr 11, 2025 · Databases

Performance Issues of Using UUID as Primary Key in MySQL and Optimization Strategies

The article explains why using UUIDs as primary keys in MySQL large tables leads to poor index efficiency, slower inserts and queries, and costly index refreshes on updates, and then presents practical optimization techniques such as ordered UUIDs, binary storage, hybrid auto‑increment keys, and table partitioning.

Database designindex performancemysql
0 likes · 7 min read
Performance Issues of Using UUID as Primary Key in MySQL and Optimization Strategies
macrozheng
macrozheng
Mar 25, 2025 · Databases

Why Auto‑Increment Beats UUID in MySQL: Performance & Index Insights

This article investigates MySQL’s recommendation against UUIDs, comparing auto‑increment, UUID, and random snowflake keys through insertion speed tests and index structure analysis, revealing why auto‑increment keys outperform others, while also discussing the drawbacks of each approach.

Database designIndex structurePerformance Testing
0 likes · 10 min read
Why Auto‑Increment Beats UUID in MySQL: Performance & Index Insights
Java Architect Essentials
Java Architect Essentials
Mar 24, 2025 · Databases

Why MySQL Discourages UUID as Primary Key: Performance Comparison with Auto‑Increment and Random Keys

This article investigates MySQL's recommendation against using UUIDs or non‑sequential keys as primary keys by creating three tables, benchmarking insert and query speeds with Spring Boot/JdbcTemplate, analyzing index structures, and discussing the trade‑offs of auto‑increment, UUID, and random long keys.

Database designauto_incrementindexing
0 likes · 11 min read
Why MySQL Discourages UUID as Primary Key: Performance Comparison with Auto‑Increment and Random Keys
dbaplus Community
dbaplus Community
Mar 20, 2025 · Databases

15 Essential Tips for Designing Robust Database Tables

This guide covers practical best‑practice tips for database table design, including clear naming conventions, appropriate field types and lengths, primary‑key strategies, index usage, storage‑engine choices, NOT NULL handling, foreign‑key considerations, charset and collation settings, and handling of large fields.

Database designfield typesindexes
0 likes · 17 min read
15 Essential Tips for Designing Robust Database Tables
Su San Talks Tech
Su San Talks Tech
Mar 8, 2025 · Databases

Quickly Design Databases with the Open‑Source DrawDB Tool

This guide introduces the open‑source DrawDB tool, walks through Docker‑based installation, demonstrates designing tables and relationships using a mall e‑commerce permission module example, and covers SQL import/export, theme switching, and template customization, helping developers efficiently create database schemas.

Database designDockerDrawDB
0 likes · 6 min read
Quickly Design Databases with the Open‑Source DrawDB Tool
Code Ape Tech Column
Code Ape Tech Column
Feb 13, 2025 · Databases

Using SQL‑92 Row‑by‑Row Comparison in MySQL to Query Multi‑Agency Product Sales

The article explains how to design a MySQL table for product sales statistics and compares several query strategies—including loop queries, OR concatenation, mixed filtering, and finally SQL‑92 row‑by‑row comparison—to efficiently retrieve sales data for multiple business units and their dynamic product lists while respecting development constraints.

Database designRow ComparisonSQL
0 likes · 7 min read
Using SQL‑92 Row‑by‑Row Comparison in MySQL to Query Multi‑Agency Product Sales
macrozheng
macrozheng
Jan 22, 2025 · Databases

Do Varchar Lengths Really Impact MySQL Storage and Query Performance?

This article experimentally investigates whether the length of VARCHAR columns (e.g., 50 vs 500) affects MySQL storage size and query performance, covering table creation, bulk data insertion, storage queries, index and full‑table scans, and explains the underlying reasons for any differences observed.

Database designindexmysql
0 likes · 10 min read
Do Varchar Lengths Really Impact MySQL Storage and Query Performance?
Selected Java Interview Questions
Selected Java Interview Questions
Dec 13, 2024 · Backend Development

Implementing Multi‑Tenant Architecture with Spring Boot and Spring Cloud

This article explains the concept, advantages, and technical choices of multi‑tenant architecture, then details a design using Spring Boot and Spring Cloud, covering database strategies, deployment isolation, tenant management, code examples, and step‑by‑step implementation for SaaS applications.

Database designMicroservicesSpring Cloud
0 likes · 13 min read
Implementing Multi‑Tenant Architecture with Spring Boot and Spring Cloud
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 21, 2024 · Databases

Common MySQL Data Types and Selection Guidelines

This article explains MySQL's various numeric, date/time, and string data types, discusses their characteristics such as signed/unsigned integers, floating‑point precision, fixed‑point accuracy, and provides practical best‑practice recommendations for choosing optimal types in database design.

Data TypesDatabase designSQL
0 likes · 6 min read
Common MySQL Data Types and Selection Guidelines
Java Tech Enthusiast
Java Tech Enthusiast
Nov 14, 2024 · Databases

Activiti Workflow Engine Database Design

Activiti is a BPMN workflow engine that provides components such as Process, Repository, Runtime, Task, and History services, stores definitions, runtime data, and history in a relational database schema, and is used by deploying BPMN diagrams, starting instances, and managing tasks via its Java API.

ActivitiBPMNDatabase design
0 likes · 21 min read
Activiti Workflow Engine Database Design
IT Services Circle
IT Services Circle
Nov 11, 2024 · Databases

Handling Case Sensitivity in MySQL Brand Table to Prevent Duplicate Entries

This article examines why a MySQL table with a case‑insensitive collation returns uppercase brand names when searching for lowercase input, analyzes the underlying charset and collation settings, and proposes backend pagination with a case‑insensitive fuzzy search and a unique index to reliably prevent duplicate brand records.

Brand ManagementCase InsensitivityDatabase design
0 likes · 8 min read
Handling Case Sensitivity in MySQL Brand Table to Prevent Duplicate Entries
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 29, 2024 · Backend Development

Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers

This tutorial explains how to design a MySQL table for hot‑search records, generate Java entity and mapper classes using MyBatis Generator, create unique IDs for each entry, and implement scheduled Java crawlers for Douyin and Baidu hot‑search data that persist the results via Spring‑Boot services.

BackendDatabase designJava
0 likes · 19 min read
Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers
Java Architect Essentials
Java Architect Essentials
Oct 23, 2024 · Databases

Does Varchar Length Really Affect MySQL Storage and Performance?

This article investigates whether MySQL varchar column length influences storage size and query performance by creating two tables with varchar(50) and varchar(500), inserting one million rows, measuring disk usage, and benchmarking various queries, ultimately revealing that storage is identical while longer columns can degrade performance during sorted scans due to increased temporary file usage.

Database designindexmysql
0 likes · 10 min read
Does Varchar Length Really Affect MySQL Storage and Performance?
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 24, 2024 · Backend Development

Applying MVEL Expression Engine for Business Indicator Calculations: Design, Performance Comparison, and Migration Strategy

This article examines the challenges of scaling store settlement calculations, evaluates several Java expression engines, selects MVEL for its performance and community support, and details the architectural redesign, database schema, caching strategy, and step‑by‑step migration process for integrating the engine into a backend system.

CacheDatabase designExpression Engine
0 likes · 14 min read
Applying MVEL Expression Engine for Business Indicator Calculations: Design, Performance Comparison, and Migration Strategy
Programmer DD
Programmer DD
Jul 24, 2024 · Databases

Designing a Google Calendar Clone: Step‑by‑Step Database Modeling Tutorial

This tutorial walks through designing a complete logical and physical database model for a Google Calendar clone, covering entities, attributes, relationships, handling all‑day and time events, recurrence rules, slots, and SQL table creation, while illustrating minimal‑modeling techniques.

Database designSQLcalendar app
0 likes · 41 min read
Designing a Google Calendar Clone: Step‑by‑Step Database Modeling Tutorial
IT Services Circle
IT Services Circle
Jul 20, 2024 · Databases

Differences Between TINYINT(1) and BIT(1) in MySQL

Both TINYINT(1) and BIT(1) are common MySQL data types for storing Boolean values, but they differ in storage size, range, syntax, compatibility, and ideal use cases, with TINYINT offering broader integer support and portability, while BIT provides true single‑bit storage for strict Boolean fields.

BitCompatibilityData Types
0 likes · 6 min read
Differences Between TINYINT(1) and BIT(1) in MySQL
Efficient Ops
Efficient Ops
Jul 14, 2024 · Databases

10 Essential MySQL Table Naming Rules Every Engineer Should Follow

This article presents Alibaba's concise 10‑point MySQL schema standard, covering boolean field naming, lowercase identifiers, singular table names, reserved word avoidance, index naming conventions, decimal usage, fixed‑length char, variable‑length varchar/text, mandatory audit fields, and the prohibition of physical deletions, offering practical guidance for clean database design.

Database designSchema Guidelinesbest practices
0 likes · 5 min read
10 Essential MySQL Table Naming Rules Every Engineer Should Follow
Top Architect
Top Architect
Jun 13, 2024 · Databases

Why MySQL Discourages UUIDs and Random IDs: Performance Comparison with Auto‑Increment Primary Keys

This article analyzes MySQL's recommendation to avoid UUID or non‑sequential random primary keys by benchmarking insert performance across three tables—auto_increment, UUID, and random key—explaining the underlying index structures, observed speed differences, and the trade‑offs of each approach.

Database designauto_incrementindexing
0 likes · 12 min read
Why MySQL Discourages UUIDs and Random IDs: Performance Comparison with Auto‑Increment Primary Keys
dbaplus Community
dbaplus Community
May 20, 2024 · Backend Development

When Architects Overdesign: Tales of Microservices, MQ, Caches, and Database Chaos

The article humorously chronicles a series of real‑world over‑design incidents—excessive microservice splitting, needless multi‑database sharding, ubiquitous message‑queue usage, over‑engineered caching, design‑pattern abuse, and bloated database schemas—highlighting why simplicity (KISS) remains the best practice for backend systems.

Database designKISSMicroservices
0 likes · 11 min read
When Architects Overdesign: Tales of Microservices, MQ, Caches, and Database Chaos
Liangxu Linux
Liangxu Linux
May 19, 2024 · Databases

Master MySQL Performance: Proven SQL, Index, and Hardware Optimization Techniques

This guide presents comprehensive MySQL performance‑tuning methods, covering SQL pagination tricks, proper index creation and usage, join and UNION optimizations, slow‑query logging, schema design choices, and hardware recommendations to dramatically improve query speed and resource efficiency.

Database designHardware Optimizationindexing
0 likes · 16 min read
Master MySQL Performance: Proven SQL, Index, and Hardware Optimization Techniques
Architect's Guide
Architect's Guide
May 6, 2024 · Information Security

Designing Permission Management and RBAC Models

This article explains why permission management is essential for data security, describes various permission models including basic RBAC, role inheritance, constrained RBAC, and how to combine them with user groups, organizations, and positions, and provides database table designs for both standard and ideal RBAC implementations.

Database designRBACRole Inheritance
0 likes · 15 min read
Designing Permission Management and RBAC Models
Architect's Journey
Architect's Journey
Apr 24, 2024 · Databases

A Graceful Approach to Multi‑Table Queries: Embrace Aggregation, Avoid Stitching

The article compares redundant and normalized storage, explains their trade‑offs, and introduces an in‑memory aggregation technique implemented via a repository "fill" method in Java, showing how to replace costly SQL joins with flexible, code‑driven data merging while preserving consistency and performance.

Database designDenormalizationIn-Memory Join
0 likes · 11 min read
A Graceful Approach to Multi‑Table Queries: Embrace Aggregation, Avoid Stitching
Su San Talks Tech
Su San Talks Tech
Apr 2, 2024 · Databases

18 Essential Tips for Designing Robust Database Tables

This article presents 18 practical guidelines for backend developers on naming conventions, field types, lengths, primary keys, indexes, storage engines, null constraints, foreign keys, character sets, collations, large fields, redundant fields, and comments to help create efficient, maintainable MySQL tables.

Database designSQL Best Practicesindexing
0 likes · 22 min read
18 Essential Tips for Designing Robust Database Tables
Java Architect Essentials
Java Architect Essentials
Feb 29, 2024 · Backend Development

Building a Real‑Time Chat System with Netty, SpringBoot, and JavaFX

This article walks through the design and implementation of a three‑tier instant‑messaging platform—including a Netty‑based chat server, a JavaFX client, and a SpringBoot web admin console—covering architecture, protocol design, database schema, key Netty handlers, threading, and authentication details.

Database designInstant MessagingJavaFX
0 likes · 30 min read
Building a Real‑Time Chat System with Netty, SpringBoot, and JavaFX
php Courses
php Courses
Feb 8, 2024 · Backend Development

Implementing a Membership Level System in a PHP E‑commerce Platform

This article explains how to design and implement a PHP-based membership level system for e‑commerce sites, covering strategy selection, database schema, calculation rules, benefits management, front‑end display, and data‑driven analysis to improve customer loyalty and operational effectiveness.

Backend DevelopmentDatabase designE‑commerce
0 likes · 6 min read
Implementing a Membership Level System in a PHP E‑commerce Platform
Java Captain
Java Captain
Feb 1, 2024 · Databases

Best Practices for MySQL Table Design

This article outlines ten essential MySQL table design best practices, covering requirement analysis, data type selection, normalization, indexing, keys, character sets, storage engines, partitioning, backup, and performance monitoring to improve scalability, maintainability, and efficiency.

Database designStorage Enginebest practices
0 likes · 5 min read
Best Practices for MySQL Table Design
ITPUB
ITPUB
Jan 27, 2024 · Databases

How Many Rows Can a Single MySQL Table Really Hold? Detailed B+‑Tree Calculations

This article consolidates theory and real‑world examples to show how MySQL’s B+‑tree structure, page layout, and row format determine the maximum number of records a single table can store, providing step‑by‑step calculations for both int and bigint primary keys.

B+TreeData CapacityDatabase design
0 likes · 12 min read
How Many Rows Can a Single MySQL Table Really Hold? Detailed B+‑Tree Calculations
php Courses
php Courses
Jan 26, 2024 · Backend Development

Implementing Coupon Activity Rule Management in a PHP E‑Commerce System

This article explains how to design database tables and develop a PHP‑based backend for managing e‑commerce coupon activity rules, covering creation, editing, deletion, and logical controls such as usage limits, with step‑by‑step guidance on forms, POST handling, validation, and database operations.

CouponDatabase designPHP
0 likes · 4 min read
Implementing Coupon Activity Rule Management in a PHP E‑Commerce System
Architect
Architect
Jan 16, 2024 · Information Security

Designing Scalable Permission Models: From Basic RBAC to Advanced Role Inheritance

The article explains why strict permission management is essential, walks through classic RBAC, role inheritance, constraint handling, user groups, organization and position mapping, and presents both standard and ideal database schemas for building maintainable access‑control systems in complex enterprises.

Database designRBACRole Inheritance
0 likes · 19 min read
Designing Scalable Permission Models: From Basic RBAC to Advanced Role Inheritance
Top Architect
Top Architect
Jan 11, 2024 · Backend Development

Design and Implementation of an Approval Workflow System with Database Schema and Backend Code

This article provides a detailed technical guide on building an approval workflow system, covering process analysis (serial, parallel, conditional, mixed), UI mockups, comprehensive database table designs, and Java backend implementations for approval actions, decision handling, and permission merging.

Backend DevelopmentDatabase designapproval workflow
0 likes · 21 min read
Design and Implementation of an Approval Workflow System with Database Schema and Backend Code
21CTO
21CTO
Jan 3, 2024 · Databases

How Redis Founder Salvatore Sanfilippo Defied Database Conventions

Salvatore Sanfilippo, a self‑taught hobbyist who launched Redis in 2009, broke traditional database rules by building an in‑memory NoSQL system, sharing his open‑source philosophy, and shaping a thriving community that powers companies like Uber, Slack, and Twitter.

Database designNoSQLSalvatore Sanfilippo
0 likes · 8 min read
How Redis Founder Salvatore Sanfilippo Defied Database Conventions
dbaplus Community
dbaplus Community
Dec 30, 2023 · Databases

Essential MySQL Best Practices for High‑Performance, Scalable Architecture

This guide presents a comprehensive set of MySQL conventions—including engine choice, character set, naming, table and column design, indexing, and SQL usage—tailored for high‑concurrency, large‑scale internet services, explaining the rationale behind each rule to boost performance and maintainability.

Database designbest practicesmysql
0 likes · 8 min read
Essential MySQL Best Practices for High‑Performance, Scalable Architecture