Db performance

From IngvarConsulting/unica · View interactive version

Db performance is an AI agent skill from the GitHub repository IngvarConsulting/unica. Производительность БД и запросов 1С. Используй когда нужно диагностировать slow query, SQL/DBMS trace, индексы, блокировки, deadlock, TEMPDB/WAL, размеры таблиц или СКД на больших данных.

How to use this skill

Skill file

DB Performance

MCP routing

контракт каждой — argsSchema, execution, previewRequired,

dryRunRequired. Контракт вызова бери оттуда, а не из этого текста;

используй опубликованную argsSchema; при support.state: limited

разрешено только подмножество support.supportedArgs. Недоступной операции

в словаре нет. Для плановой операции сначала проверь результат

dryRun: true, затем исполняй запрос с dryRun: false. Preview

не фиксирует входы между вызовами. Не обходи контракт прямым runner-ом.

References

Workflow

  1. Name the slow scenario first: user action, API call, report, background job, exchange step, or posting.
  2. Extract exact query/DCS text with unica.search or unica.view on the schema node; inspect large candidate modules with unica.view on the module node (its Method branch lists the methods) before reading full bodies.
  3. Find callers with unica.view at <method>.Caller when the performance issue depends on execution path, query-in-loop risk, or impact of moving logic; unica.search by the method name adds literal mentions.
  4. Inspect unica.view on the object node for both the local object structure and related modules, roles, subscriptions, functional options, or predefined items that can change the performance path.
  5. Gather evidence: row counts, generated SQL, query plan, managed locks, lock order, lock/deadlock participants, long transaction boundaries, temp storage, TEMPDB or WAL pressure, and table/index names.
  6. Separate causes: inefficient platform query, missing or harmful index, broad virtual table read, query-in-loop, lock contention, DBMS maintenance, or data growth.
  7. Propose one measurable change at a time; check syntax with unica.check (test runs are outside the v0.13 surface), and require separate runtime plus timing/DBMS evidence before calling the change verified.

Stop rules

Output

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.