Loading...
Loading...
审计并优化Convex应用性能,涵盖热点路径读取、写入冲突、订阅成本以及函数限制。当Convex功能运行缓慢、读取数据过多、写入过于频繁、出现OCC冲突或需要进行性能排查时使用。
npx skill4agent add get-convex/agent-skills convex-performance-auditnpx convex insights --detailsnpx convex insights --details--prod--preview-name--deployment-nameinsightsnpx -y convex@latest insights --detailsconvex-doctor| 信号 | 参考文档 |
|---|---|
| 读取字节数或文档数过高、JS端过滤、不必要的关联查询 | |
| OCC冲突错误、写入冲突、突变重试 | |
| 订阅数量过高、UI更新缓慢、过度重渲染 | |
| 函数超时、事务大小错误、大负载 | |
| 仅反馈“运行缓慢”无具体信号 | 从 |
skills/convex-migration-helper/SKILL.mduseQueryusePaginatedQueryuseMutationctx.db.get()ctx.db.query()ctx.db.patch()ctx.db.replace()ctx.db.insert()references/hot-path-rules.mdreferences/occ-conflicts.mdreferences/subscription-cost.mdreferences/function-budget.md