<< All versions
Skill v1.0.2
currentAutomated scan100/100ingvarconsulting/unica/db-performance
3 files
──Details
PublishedAugust 13, 2026 at 09:09 AM
Content Hashsha256:fcde8c1e80e29f79...
Git SHA503440b8e78f
Bump Typepatch
──Files
Files (1 file, 3.0 KB)
SKILL.md3.0 KBactive
SKILL.md · 44 lines · 3.0 KB
version: "1.0.2" name: db-performance description: "Производительность БД и запросов 1С. Используй когда нужно диагностировать slow query, SQL/DBMS trace, индексы, блокировки, deadlock, TEMPDB/WAL, размеры таблиц или СКД на больших данных."
DB Performance
MCP routing
- Preferred path: use MCP
unicatoolsunica.project.map,unica.code.search,unica.code.outline,unica.code.graph,unica.meta.info,unica.dcs.info,unica.code.diagnostics,unica.standards.search,unica.standards.explain, andunica.runtime.execute. - Use
unica.role.infowhen performance behavior depends on rights filters, RLS, or tenant boundaries. - Do not call internal analyzer, runtime, standards, or package adapters directly. They are hidden behind MCP
unica.
References
- Read
../../references/platform/db-performance.mdfor DB-aware workflow, indexes, virtual tables, locks, and DBMS evidence. - Read
../../references/platform/runtime-diagnostics.mdwhen performance evidence comes from ЖР/ТЖ, process ids, sessions, or runtime timeline. - Read
../../references/platform/transactions-locks.mdonce evidence points at contention; this skill keeps the evidence side, that document owns the lock and transaction rules.
Workflow
- Name the slow scenario first: user action, API call, report, background job, exchange step, or posting.
- Extract exact query/DCS text with
unica.code.searchorunica.dcs.info; inspect large candidate modules withunica.code.outlinebefore reading full bodies. - Use
unica.code.graphfor callers/callees when the performance issue depends on execution path, query-in-loop risk, or impact of moving logic. - Inspect
unica.meta.infofor both the local object structure and related modules, roles, subscriptions, functional options, or predefined items that can change the performance path. - 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.
- Separate causes: inefficient platform query, missing or harmful index, broad virtual table read, query-in-loop, lock contention, DBMS maintenance, or data growth.
- Propose one measurable change at a time and verify with
unica.runtime.executefor syntax/tests plus the same timing/DBMS evidence after the change.
Stop rules
- Do not recommend indexes without a concrete predicate, join, sort, grouping, and write-cost tradeoff.
- Do not remove rights filters, tenant filters, or
РАЗРЕШЕННЫЕfor performance without a named security decision. - Do not claim a DBMS root cause without DBMS evidence. State missing evidence or Unica MCP contract gap.
Output
- Scenario and evidence summary.
- Root cause ranked by likelihood.
- Minimal query/metadata/code change.
- Verification command or measurement.
- Residual risk for data volume, locks, or DBMS-specific behavior.