MscrmTools.Xrm.Connection icon indicating copy to clipboard operation
MscrmTools.Xrm.Connection copied to clipboard

Caching metadata takes tiiiime

Open rappen opened this issue 1 year ago • 3 comments

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

rappen avatar Jul 19 '24 11:07 rappen

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?

MarkMpn avatar Jul 19 '24 13:07 MarkMpn

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.

rappen avatar Jul 20 '24 06:07 rappen

Honestly, we have had to wait a longer time in the newest version than before, my gut feeling says. Anyway, I have now implemented four flavors on how to get the metadata in BDU: https://jonasr.app/bdu/releases/#1.2025.8.1 It's probably time to just close this issue unless you have any new ideas.

rappen avatar Aug 14 '25 07:08 rappen