有趣的 SQL 数据库使用查询

发布于 2024-10-03 00:06:47 字数 367 浏览 1 评论 0原文

我正在尝试生成一些有关我的数据库的全面信息,并编译一系列有关数据库使用的有趣查询。

有一个日志表

date  
username  
servertime  
clienttime  
user query

以及其他实际保存可查询信息的表。

编辑(为了建设性的主观性):所提供信息的最有趣的使用统计查询是什么?

到目前为止我拥有的一些示例:

  • 每天的用户数,
  • 每日查询次数
  • 每个用户的平均查询时间

请为每个答案提供一个建议;如果您需要更多信息,请告诉我。

谢谢!

I am trying to generate some comprehensive information about my databases compile a list of interesting queries for database usage.

There is a log table with

date  
username  
servertime  
clienttime  
user query

as well as other tables that actually hold the query-able information.

Edit (for constructive subjectivity): What is the most interesting usage stats query for the provided information?

Some examples I have so far:

  • Users per day,
  • Queries per day
  • Average query time per user

One suggestion per answer please; let me know if you want more information to work with.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

酷到爆炸 2024-10-10 00:06:47

就我个人而言,我对前十个最慢的查询最感兴趣。

Personally I'd be most interested in the top ten slowest queries.

泪意 2024-10-10 00:06:47

使用最多 CPU 时间和/或运行最密集查询的用户。

Users that use the most CPU time and/or run the most intensive queries.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文