Does TiKV support count for a key?

Note that this question was originally posted on the Chinese TiDB Forum. We copied it here to help new users solve their problems quickly.

Application environment:

Test environment

TiDB version:

TiDB v6.4.0. I only use TiKV, not TiDB.

Problem:

Does TiKV support count for a key? I stored my data in TiKV and I want to do a paging query on the data. Can anyone tell me how to do it?

You can refer to the two APIs implemented by TiKV Client:

  • RawAPI
  • TxnAPI

Reference docs: TiKV | Java Client