Defining a High-Performance Schema

Explain methods for defining and managing table statistics in InterSystems SQL.

Updated Feb 2, 2026
One-click install
npx skills add https://github.com/sorodriguezz/skills-objectscript --skill defining-a-high-performance-schema
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Defining a High-Performance Schema
Source: https://github.com/sorodriguezz/skills-objectscript/tree/main/skills/defining-a-high-performance-schema
Command: npx skills add https://github.com/sorodriguezz/skills-objectscript --skill defining-a-high-performance-schema

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the challenge of ensuring optimal query performance in InterSystems SQL tables by explaining and demonstrating the use of table statistics.

Core Features & Use Cases

  • Collected Statistics: Automatically gathered from data, refreshed periodically.
  • Fixed Statistics: Manually set by developers for predictable query plans.
  • Statistics Types: Covers Extent Size, Field Selectivity, Average Field Size, Outlier Selectivity, Map Size, and Histograms.
  • Use Case: A database administrator can use this Skill to understand how to tune table statistics to significantly speed up complex reporting queries.

Quick Start

Use the defining a high-performance schema skill to learn how to set fixed statistics for a table.

Frequently Asked Questions about Defining a High-Performance Schema

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

FAQPage Schema
How do I optimize SQL query performance using table statistics in InterSystems SQL?

You can optimize SQL query performance in InterSystems SQL by defining and managing table statistics. This involves configuring collected or fixed statistics like extent size and field selectivity to generate predictable query plans.

What is the difference between collected and fixed statistics in database performance tuning?

Collected statistics are automatically gathered from data and refreshed periodically, while fixed statistics are manually set by developers to enforce predictable query plans for complex reporting queries.

How do I manually set table statistics like field selectivity and extent size?

You can manually set fixed statistics such as field selectivity, extent size, and average field size to control query optimization. This Skill guides you through defining these statistical attributes for InterSystems SQL tables.

Can I import and export table statistics for InterSystems SQL databases?

Yes, you can import and export table statistics for InterSystems SQL databases. This functionality allows you to transfer statistical configurations like histograms and map sizes across different environments.

When should I use fixed statistics instead of automatic collection for query optimization?

You should use fixed statistics when you need predictable query plans for complex reporting queries, bypassing automatic collection. This ensures consistent performance by manually defining statistical attributes like outlier selectivity.