Resources > Frequently Asked Questions > FAQ: SFM Delivery > Calculating SOQLs in SFM Wizards
Calculating SOQLs in SFM Wizards
Configuration of the SFM wizards consumes some amount of SOQLs when it is cloned or delivered in the Salesforce VF pages. The number of SOQLs completely depends on various factors including the complexity of the Wizards and steps, Expressions used, and so on. There is a generic formula that can be applied on SFM Wizards, to calculate the SOQLs consumed in various contexts considering various factors that drive the SOQL number.
Loading SFM Wizard (inline VF) on opening a record: When you load a Salesforce VF page that has the SFM Wizard VF component placed in it, some # of SOQLs is required to load the SFM Wizard and its step. Considering the number of active wizards assigned to the logged-in user's profile, all these are iterated to find out those wizards that meet the Qualification Criteria on the record and then load only those on the page. The following table describes the calculation to determine the number of SOQLs consume:
Number of Objects Used in the Search Configuration
#SOQLs (q)
# DMLs (p)
n
q = (n*5)+5
p = 5 + 3(n-1)
3
20
11
2
15
8
Was this helpful?