Improving flowchart performance using in-database optimization
You can improve flowchart performance by turning in-database optimization on globally or for an individual flowchart. Best practice is to turn off the global setting, and set the option at the flowchart level. The flowchart-level option overrides the global setting.
*
In-database optimization is not supported for all databases. Your Campaign administrator can confirm whether this option is available for your data sources.
The in-database optimization option determines:
*
*
When In-DB optimization is on:
*
*
*
*
Some functions are still performed on the Campaign server, when necessary. For example, to calculate a derived field, Campaign first evaluates the derived field formula to see if any part of the calculation can be performed using SQL. If simple SQL statements can be used to perform the calculation, then the calculation is done "in-database". If not, then temporary tables are created on the Campaign server to handle the calculations and persist the results from process to process within a flowchart.
*
Custom macros consisting of raw SQL statements can be processed in-database, with the following limitations:
*
All raw SQL custom macros must begin with select and contain exactly one from in the rest of the text.
*
For databases that support only insert into <TempTable> syntax, you must map at least one base table to the same data source at the same audience level as the raw SQL custom macro. If the fields selected by the raw SQL custom macro are too large for the fields of the temp table, a runtime error will occur.
*
To improve flowchart performance using in-database optimization