How session parameters and functional options affect data access restrictions
Scope: managed applications, ordinary applications.
To increase the data access performance, 1C:Enterprise creates a cache with data access restriction queries. Data access restrictions can use session parameters and functional options. The cached queries contain the values of session parameters and functional options.
However, when a session parameter or functional option value is modified, the query cache is removed, which significantly affects the query runtime.
To avoid that, in the SessionParametersSetting handler, set session parameter values on demand. Also, make sure that functional option values are modified as rare as possible.
See also: