Does TIKV support count

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

Original topic: TIKV是否支持count

| username: TiDBer_59ZckvWa

[Test Environment for TiDB]
[TiDB Version] 6.4.0
[Encountered Issue: Issue Description and Impact]
Does TIKV support counting a key? Currently, the data exists in TIKV, and I want to implement a pagination query function on the data in TIKV. How can this be achieved?

| username: xfworld | Original post link

You can refer to the official documentation:

| username: 裤衩儿飞上天 | Original post link

How to paginate in MySQL is how to paginate here.

| username: TiDBer_59ZckvWa | Original post link

Not using TiDB, just using TiKV.

| username: TiDBer_59ZckvWa | Original post link

Not using TiDB, just using TiKV.

| username: xfworld | Original post link

Then just refer to the two APIs implemented by the TiKV Client and implement them yourself:

  • RawAPI
  • TxnAPI

There are no other good solutions.

| username: TiDBer_59ZckvWa | Original post link

Are there any examples that can be referenced?

| username: xfworld | Original post link

Just refer to the official TiKV Test or Sample cases.

| username: system | Original post link

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