Use Cases for Enhanced Compile Cart

Some scenarios that use variable chunking logic to optimize performance across different data volumes and complexities. By adjusting the configuration parameters, you can balance memory usage and throughput to prevent Governor Limit errors or heap pressure during compilation.

Required Editions

Available in: Lightning Experience
Available in: Enterprise, Unlimited, Performance, and Developer Edition.

The compilation explains multiple parameters values ‌based on which you can select the chunk size.

Note
Note The chunk size values are approximate estimations, as the actual value can vary depending on the customer's dataset.

Compile PCP Parameter

This table defines the variable chunking logic for multiple values of PCP.

PCP Count Description Chunk Size
Less than or equals 5000 Low memory footprint, maximize throughput 2000
5000–10000 Moderate memory, balanced jobs 1000
Greater than 10000 High volumes require smaller chunks to avoid heap pressure 500

Compile Product Hierarchy Parameter

This table defines the variable chunking logic for multiple combinations of Products, and Hierarchy Complexity.

In addition to the previous configurations, the additional factor that contributes to chunk size is the attribute coverage. In general, these numbers are considering each product bundle has half of the PCIs assigned with the attributes, a mix of normal and picklist attributes.

For example, each product carries 10 attributes: five standard (normal) attributes and five picklist-type attributes.

Product Hierarchy Complexity Chunk Size
Less than 5000 Simple (10 PCIs per Bundle) 100
Less than 5000 Moderate (20 PCIs per Bundle) 75
5000–10000 Simple (10 PCIs per Bundle) 75
5000–10000 Moderate (20 PCIs per Bundle) 50
Greater than 10000 Moderate+ (30+ PCIs per Bundle) 30–50

Compile Context Rules Parameter

This table defines the variable chunking logic for different values and descriptions for Context Rules.

Rules Count Description Chunk Size
Less than or equals 5000 Simple rule evaluation, low memory 2000
5000–10000 Moderate rule set, balanced processing 1000
Greater than 10000 Large rule sets need smaller chunks 500

Compile Price List To PBE Ranges

This table defines the variable chunking logic for multiple combinations of Products and PLEs.

Products PLEs Chunk Size
Less than 5000 Less than 20000 50
5000–10000 Less than 30000 40
10000–25000 Less than 50000 30
25000–50000 Less than 100000 20

Compile Pricing

This table defines the variable chunking logic for different set of PLEs.

PLEs Chunk Size
Less than 20000 50
20000–50000 40
50000–100000 30
Greater than 100000 20

Compile Promo Items

This table defines a variable chunking logic for processing promotion items.

Promotion Items Chunk Size
Less than 10000 100
10000–50000 70
50000–100000 50
Greater than 100000 30

Here’s the representation of a configuration script:

Chunking Script

Also, with an invalid JSON script, the system throws an error but still gives output based on the default values for the configuration parameters.