Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Performance: Form with external Datasources and IAutofillProvider

Found in

EPiServer.Forms 4.15.1

Fixed in

EPiServer.Forms 4.16.0

(Or a related package)

Created

Aug 14, 2018

Updated

Sep 07, 2018

Area

Cooperate with other systems

State

Closed, Fixed and tested


Description

When a form is mapped to an external source, the Datasources property in IExternalSystem and GetSuggestedValues method in IAutofillProvider gets called 3 times for every field on the form, when it loads. Though we cache data we fetch from connectors, it adds a lot of overhead when there is a large number of datasources and/or large number of fields on a form.

To address this, we reduced calls to the Datasources property in IExternalSystem and GetSuggestedValues method in IAutofillProvider to only one time for each field, instead of 3 times as is done currently.

We also improved the performance of the IAutofillProvider implementation by getting all suggested values of all fields at the first call then caching them for late use.