How to Query Data in a TiKV Cluster

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: tikv集群如何查询数据

| username: tikv-lu

TiKV cluster v5.0.1
How can I use pd-ctl or tikv-ctl to query the value of a key in the cluster and the number of keys in the cluster?
The content output by the print command is a bit difficult to understand.

| username: redgame | Original post link

Yes, this is a bit difficult to understand. Try using the region scan or scan command to get more readable results.

| username: tikv-lu | Original post link

Does the approximate_keys in the region scan mean the number of keys in this region?

| username: WalterWj | Original post link

Yes, but it’s an estimated value.

| username: system | Original post link

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.