Z.Q.K
open-menu closeme
Blog
About
🌐
English
github
  • MySQL中索引哪些场景下能避免排序

    calendar Mar 6, 2025 · 1 min read · mysql

    在MySQL中,索引在以下场景中可以避免排序操作:

    1. ORDER BY顺序与索引最左前缀匹配

    • 当ORDER BY的列顺序与索引的最左前缀完全一致时,MySQL可以直接利用索引的有序性返回结果,无需额外排序。
    • 示例:
      1CREATE INDEX idx_a_b ON table(a, b);
      2SELECT * FROM table ORDER BY a, b; -- 避免排序
      

    Read More
  • inode 基础

    calendar Mar 5, 2025 · 1 min read · linux
    在 Linux 和其他类 Unix 文件系统中,inode(索引节点,Index Node)是一个核心数据结构,用于存储文件或目录的元数据(metadata)。你可以将 inode 理解为文件的“身份证”,它记录了文件的基础信息和存储位置,但不包含文件名和文件内容本身。
    Read More
  • Reactor 模式

    calendar Mar 5, 2025 · 1 min read · linux
    Reactor 模式是一种广泛应用于高并发网络编程的事件驱动设计模式,核心思想是用少量线程处理大量I/O事件,通过非阻塞I/O和事件分发机制实现高效资源管理。
    Read More
  • 如何计算TCP的payload数据大小

    calendar Mar 31, 2021 · 1 min read · TCP


    Read More
  • 记一次redis攻击排查

    calendar Oct 15, 2020 · 1 min read


    Read More
  • Go中复制map可能遇到坑

    calendar Nov 2, 2019 · 1 min read · go


    Read More
  • Go Module本地依赖的两种玩法

    calendar Jun 23, 2019 · 1 min read · go


    Read More
  • slice底层struct的数据结构

    calendar Jun 13, 2019 · 1 min read · go

    通过slice成员的地址观察其底层struct的数据结构


    Read More
  • 折腾hugo

    calendar Jun 9, 2019 · 2 min read · hugo

    hugo折腾过程的一些记录


    Read More
  • 索引与缓存的坑

    calendar Jun 9, 2019 · 2 min read · mysql cache


    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • 4
    • 5
    • »
    • »»

张乾坤 photo

张乾坤

一个贡献者。
Read More

Featured Posts

  • Redis 分片机制
  • 脏页
  • index.md 与 _index.md 文件
  • LRU 算法原理
  • DIRECT I/O 文件
  • 页在 InnoDB 与操作系统的区别
  • 叶子节点与叶子页
  • B+Tree

Recent Posts

  • 位图 Bitmap
  • Mutex 和 RWMutex 场景选择
  • eq_ref 访问类型
  • Redis Slot
  • Gin 中间件
  • goim 核心组件
  • Gin Engine
  • Gin 路由组

Tags

GO 15 MYSQL 5 GIN 4 LINUX 4 性能优化 3 程序设计 3 GO-MICRO 2 HUGO 2 INNODB 2 NETWORK 2 REDIS 2 数据结构 2 CACHE 1 C语言 1
All Tags
CACHE1 C语言1 GIN4 GO15 GO-MICRO2 GOIM1 HUGO2 INNODB2 LINUX4 MYSQL5 NETWORK2 PHP1 REDIS2 TCP1 容错1 性能优化3 数据结构2 架构1 磁盘读写1 程序设计3 算法1 高可用1
[A~Z][0~9]
Copyright © Z.Q.K

Copyright  COPYRIGHT © Z.Q.K. All Rights Reserved

to-top