1c-query-optimization

Optimize complex 1C queries using joins, virtual tables, and ITS type dereferencing.

9|4|Updated Feb 6, 2026
One-click install
npx skills add https://github.com/Diversus23/1c-feature-dev --skill 1c-query-optimization
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 1c-query-optimization
Source: https://github.com/Diversus23/1c-feature-dev/tree/main/skills/1c-query-optimization
Command: npx skills add https://github.com/Diversus23/1c-feature-dev --skill 1c-query-optimization

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Optimizes complex 1C queries by applying advanced patterns for better performance.

Core Features & Use Cases

  • Advanced Joins and Subqueries: prefer joins over subqueries to reduce N+1 queries and improve retrieval efficiency.
  • Virtual Tables and DCS: leverage virtual tables and DCS patterns to limit data early and simplify data composition.
  • ITS-based Type Dereferencing: apply ITS standards to dereference specific types for faster, safer queries.
  • Use Case: optimizing a multi-table 1C report involving registers and catalogs to minimize data fetches and execution time.

Quick Start

Rewrite a complex 1C query to use joins and virtual table parameters to improve performance.

Frequently Asked Questions about 1c-query-optimization

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize complex 1C queries for large datasets?

Optimize 1C queries by replacing subqueries with joins, leveraging virtual table parameters to filter data early, and applying temporary tables. This approach reduces data fetches and improves execution time for large datasets.

What is the best way to improve 1C DCS performance for multi-table reports?

Improve 1C DCS performance by leveraging virtual tables and DCS patterns to limit data early and simplify data composition. This prevents traditional queries from underperforming on multi-table joins involving registers and catalogs.

Why should I prefer joins over subqueries in 1C query optimization?

Preferring joins over subqueries in 1C query optimization reduces N+1 query issues and improves retrieval efficiency. This ensures scalable results when processing complex multi-table joins for large reports.

When do I need ITS-based type dereferencing in 1C queries?

You need ITS-based type dereferencing in 1C queries to dereference specific types for faster, safer queries. It ensures optimized performance when handling complex data structures across catalogs and registers.

Can I use virtual tables to limit data early in 1C data composition systems?

Yes, you can use virtual tables to limit data early in 1C DCS. Leveraging virtual table parameters simplifies data composition and prevents traditional queries from underperforming under heavy loads.