Search Results: Found 2
Optimizing Million-Scale PV Log Tables: The Elegant Shift from VARCHAR to TINYINT
2025-12-30 DP

This article documents the optimization process for a PV log table handling millions of daily records. By converting VARCHAR fields for OS and browser information to TINYINT enumerations, we significantly reduced storage space and improved query performance. The article explores the pros and cons, implementation steps, and further discusses how to elegantly handle version numbers, providing a practical guide for developers like those at wiki.lib00.com managing large-scale log data.

The Ultimate Guide to MySQL Partitioning: From Creation and Automation to Avoiding Pitfalls
2025-12-01 DP

Is database performance becoming a bottleneck with your ever-growing log or time-series data? This article provides a deep dive into MySQL's powerful monthly range partitioning. We cover initial table design with MAXVALUE, automated partition maintenance using MySQL Events, and seamless read/write operations with PHP. We also unveil the biggest operational advantage of partitioning—lightning-fast data cleanup—and rationally analyze its potential performance pitfalls and ideal use cases, helping you decide when you should (and shouldn't) use this powerful feature.