Global secondary indexes (GSIs) let you add sharding dimensions to PolarDB-X tables so that queries on non-shard-key columns don't require full cross-shard scans. Each GSI is backed by an index table that PolarDB-X keeps in sync with the primary table using XA transactions.