on-internet
← Community

Physical storage implementation of Global Secondary Indexes (GSI) on partitioned tables in PolarDB-MySQL

Stack Overflow ·

I am investigating the internal architecture of Global Secondary Indexes (GSI) in Alibaba Cloud PolarDB-MySQL (Server version: 8.0.18). Specifically, I am trying to understand how GSIs are physically stored when applied to a RANGE partitioned table over shared storage (PolarStore). 1. The Setup I created a partitioned table and added a GSI on a non-partition key: CREATE TABLE orders ( order_id BIGINT, user_id BIGINT, status INT, create_time DATETIME, PRIMARY KEY (order_id, create_time), INDEX k1(user_id) GLOBAL, INDEX k2(status) GLOBAL ) ENGINE=InnoDB PARTITION BY RANGE (YEAR(create_time)) ( P

Comments

Sign in or sign up to comment and upvote.

No comments yet.