Tagged articles
14 articles
Page 1 of 1
Senior Tony
Senior Tony
Dec 6, 2024 · Databases

Why MySQL COUNT(*) Can Be Milliseconds Fast: Engine Tricks & Optimization Strategies

This article explains why COUNT(*) on a large InnoDB table can take seconds while MyISAM returns instantly, explores the underlying storage‑engine differences, and presents six practical techniques—including Redis counters, counting tables with transactions or triggers, parallel read threads, secondary indexes, and SHOW TABLE STATUS—to dramatically speed up row counting in MySQL.

InnoDBParallel ReadPerformance Optimization
0 likes · 9 min read
Why MySQL COUNT(*) Can Be Milliseconds Fast: Engine Tricks & Optimization Strategies
ITPUB
ITPUB
Feb 26, 2023 · Databases

Why InnoDB Stores Primary Keys in Secondary Index Leaves – A Deep Dive

This article explains InnoDB’s clustered and secondary index structures, why secondary index leaf nodes store primary key values, how lookups trigger “row‑lookup” (回表) operations, and how covering indexes can eliminate those extra scans, illustrated with MySQL examples.

Clustered IndexInnoDBcovering index
0 likes · 7 min read
Why InnoDB Stores Primary Keys in Secondary Index Leaves – A Deep Dive
Big Data Technology & Architecture
Big Data Technology & Architecture
Nov 7, 2021 · Databases

Understanding Secondary Indexes and Coprocessor Solutions in HBase

This article explains the concept of secondary indexes in HBase, describes how coprocessors (including observers and endpoints) enable server‑side processing, compares coprocessor‑based solutions such as Apache Phoenix with non‑coprocessor approaches using Elasticsearch or Solr, and outlines their advantages and trade‑offs.

Big DataCoprocessorHBase
0 likes · 11 min read
Understanding Secondary Indexes and Coprocessor Solutions in HBase
dbaplus Community
dbaplus Community
Apr 7, 2020 · Databases

How Pharos Accelerates HBase Multi‑Condition Queries with Low‑Latency Indexing

This article examines Pharos, Everbright Bank's home‑grown HBase indexing middleware, detailing why existing secondary‑index solutions fall short, the design goals of low latency, simple architecture and non‑intrusiveness, and the concrete storage, pagination, and transaction‑consistency techniques that enable fast complex queries on massive data.

HBaseLow latencyPharos
0 likes · 14 min read
How Pharos Accelerates HBase Multi‑Condition Queries with Low‑Latency Indexing
Big Data Technology Architecture
Big Data Technology Architecture
Feb 4, 2020 · Big Data

Using Apache Phoenix on CDH HBase: Installation, Configuration, and Secondary Index Creation

This article explains how to integrate Apache Phoenix with CDH‑based HBase, covering Phoenix overview, version selection, parcel installation, HBase configuration, command‑line usage, mapping existing tables, creating schemas and views, building secondary indexes, and comparing different index types for performance optimization.

Apache PhoenixCDHHBase
0 likes · 15 min read
Using Apache Phoenix on CDH HBase: Installation, Configuration, and Secondary Index Creation
NetEase Game Operations Platform
NetEase Game Operations Platform
Jul 27, 2019 · Databases

Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation

The article examines the risks of using the dangerous FLUSHDB command in Redis, explores common alternatives like SCAN, async deletion, and expiration, and proposes a secondary‑index solution using sets and sorted sets to efficiently invalidate only the affected cache entries without blocking the service.

Data StructuresFLUSHDBcache invalidation
0 likes · 11 min read
Using Redis Secondary Indexes to Replace FLUSHDB for Targeted Cache Invalidation
ITPUB
ITPUB
Oct 18, 2016 · Databases

How to Verify B+Tree Index Order in InnoDB Using bcview and Custom Tools

This article demonstrates a step‑by‑step method to confirm that InnoDB secondary index leaf pages store rows sorted first by the secondary key and then by the primary key, using bcview, mysqlblock, and a small C utility to read raw .ibd pages.

B+TreeInnoDBbcview
0 likes · 12 min read
How to Verify B+Tree Index Order in InnoDB Using bcview and Custom Tools

Non‑Intrusive High‑Performance Complex Query Engine for HBase Using Secondary Multi‑Column Indexes

This article presents a non‑intrusive, high‑performance engine that adds secondary multi‑column indexes to Apache HBase, enabling efficient complex condition queries while preserving HBase's scalability, and details its principles, architecture, query API, index configuration, and practical trade‑offs.

CoprocessorHBaseNoSQL
0 likes · 18 min read
Non‑Intrusive High‑Performance Complex Query Engine for HBase Using Secondary Multi‑Column Indexes