skill-performance

Identify and fix AL performance bottlenecks in Business Central data-heavy workflows.

99|28|Updated Oct 15, 2025
One-click install
npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-performance
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: skill-performance
Source: https://github.com/javiarmesto/ALDC-AL-Development-Collection/tree/main/claude-plugin/skills/skill-performance
Command: npx skills add https://github.com/javiarmesto/ALDC-AL-Development-Collection --skill skill-performance

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

AL performance optimization in Business Central often requires identifying bottlenecks, reducing expensive DB calls, and stabilizing response times in data-heavy workflows.

Core Features & Use Cases

  • Pattern-guided optimization: Apply SetLoadFields, CalcSums, and temporary structures to minimize DB hits.
  • FlowField risk mitigation: Detect and resolve circular or expensive FlowField computations.
  • Use Case: When a feature processes large datasets or exhibits slow performance, use this skill to triage and optimize.

Quick Start

Analyze a slow data load path and implement a first-pass optimization to reduce DB calls.

Frequently Asked Questions about skill-performance

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

FAQPage Schema
How do I optimize AL code performance in Business Central for large data volumes?

To optimize AL performance in Business Central, you must identify bottlenecks and reduce expensive database calls. Apply pattern-guided techniques like SetLoadFields and CalcSums to stabilize response times in data-heavy workflows.

Why does my Business Central page run slow when using FlowFields and CalcFields?

Slow Business Central pages often result from circular or expensive FlowField computations. Resolving these performance bottlenecks requires detecting inefficient calculations and restructuring AL code to minimize database hits.

How do I reduce database calls in AL codeunits and reports?

To reduce database calls in AL codeunits and reports, apply SetLoadFields ordering and use temporary structures. This pattern-guided optimization minimizes database hits and improves query efficiency during data processing.

What is the best way to triage slow data load paths in Business Central?

The best way to triage slow Business Central data loads is analyzing the path and implementing a first-pass optimization. Focus on avoiding nested database calls and applying SetLoadFields to reduce runtime overhead.

When should I use SetLoadFields instead of CalcSums for AL optimization?

Use SetLoadFields to specify exact fields needed and reduce data transfer, while CalcSums aggregates values without retrieving full records. Both optimize AL performance by minimizing database calls, depending on whether you need field data or totals.

Does this AL performance optimization apply to codeunits, pages, and reports?

Yes, this AL performance optimization applies to profiling codeunits, pages, and reports. It is specifically designed for data-heavy workflows where reducing expensive database calls and stabilizing response times are critical.