Delay in Configuration.Instance.GetItem() after successful login

Hi,

After a successful login to the XProtect system, the following line takes more than 5 seconds to execute:

VideoOS.Platform.Configuration.Instance.GetItem(serverID, cameraGuid, Kind.Camera);

This delay occurs only the first time immediately after login. Subsequent calls to GetItem() execute quickly.

This behavior is causing a noticeable delay in stream loading time, since the camera configuration must be retrieved before starting the stream.

Is this expected behavior after login, or is there any recommended way to avoid this initial delay?

@raficheriyadathil i don’t know the internals but I would assume that there happens a caching of all configuration items or so.

Yes, this is expected. At first use the Configuration is retrieved. The delay is bigger if the system is bigger and has more items; cameras and other devices.

Hi Bo,

Thanks for the clarification.