azure-cosmosdb - is there any query profiler in cosmos db?
问题描述
I'm a newbie at cosmos db. and i'll be glad if someone help me to find how to catch queries that are going on local emulator. the reason why i'm asking is that now query string is appended in a few steps via linq and i need to be sure that query builder returns correct query string.
thanks in advance!
解决方案
为了查看应用程序和 Cosmos DB 数据库之间的交互,可以使用Cosmos DB Profiler工具。它显示了发送到 Cosmos DB 的查询以及生成它们的相关代码的堆栈跟踪。
分析器显示每个操作的统计信息,如持续时间、响应状态代码、查询执行指标等,以及对数据库的每个请求的请求单元,从而优化查询成本。
它还提醒用户注意使用 Cosmos DB 时的常见陷阱,并建议如何解决这些问题。
分析器提供的可用报告允许分析应用程序的 Cosmos DB 使用情况。
推荐阅读
- android - 我的应用与任何受支持的设备都不兼容
- lambda - 收集后在 java8 上获取索引
- c++ - C++Builder 使用 TCP 发送数组
- python - 如何在 Pandas 的 pivot_table 函数中给出条件语句?
- activerecord - 使用选择组合 ActiveRecord 范围
- swift - 使用 SearchBar 时,复选标记与 TableView 中的错误行相关联
- java - 在recyclerview中修改这些对象后创建对象的子列表
- powershell - Powershell 使用 psexec 和 oneliner 在远程计算机上通过排序获取文件夹大小
- visual-studio - 如何避免 Visual Studio 增量构建在外部文件时不运行
和 改变了吗? - architecture - DDD中的参考数据