MscrmTools / MscrmTools.Xrm.Connection

Provides Winforms control to connect to Microsoft Dynamics CRM deployments
GNU Lesser General Public License v3.0
23 stars 38 forks source link

Caching metadata takes tiiiime #164

Open rappen opened 1 month ago

rappen commented 1 month ago

Not sure where the annoying issue should be submitted, but I'll start here since this is where it is cached.

It takes 10-120 seconds (edited) every time I open FetchXML Builder, which uses the cached metadata by default settings. It is tucked with this panel:

image

This is the code that calls it:

plugin.ConnectionDetail.MetadataCacheLoader.ConfigureAwait(false).GetAwaiter().GetResult()?.EntityMetadata;

Any clues?

Ping @MarkMpn

MarkMpn commented 1 month ago

Any time into the minutes songs like something has gone wrong, especially 120 minutes! In my testing it would normally take more like 20 seconds to refresh the cache.

It should normally be possible to have this loading in the background rather than blocking the user while it’s loading - is it possible to get FXB to only try to use the cache once it has loaded rather than wait for it?

rappen commented 1 month ago

Oups, I meant seconds... 😬

It is possible by unchecking this: image

By default, it is checked, since it's nice to have everything loaded when we start working.