Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature request] 希望能够增加快速统计一个时序内部的数据数量的功能。 #14162

Open
1 of 2 tasks
jiayp opened this issue Nov 21, 2024 · 3 comments
Open
1 of 2 tasks

Comments

@jiayp
Copy link

jiayp commented Nov 21, 2024

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

想快速统计表里有多少条数据,用来展示给最终用户查看,或者用来给用户根据数量计费

Solution

如果内部有这个信息的话,希望能提供接口进行查询

Alternatives

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!
@CritasWang
Copy link
Collaborator

可以用 count_time 来精确统计。

@jiayp
Copy link
Author

jiayp commented Nov 28, 2024

可以用 count_time 来精确统计。

这个太慢了。我测了一下百万数据需要0.5秒。有没有更快速的,哪怕不准确。

@CritasWang
Copy link
Collaborator

也可以选一个测点 单独 count 会快一些,可以利用到 统计信息

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants