Skip to content

USync Sets Having Their Own Folders #756

@fbpenalosa

Description

@fbpenalosa

Umbraco Version: 12.3.6
USync Version: 12.2.3

Problem Description:

We have a site that has around 7000+ config files under \uSync\v9\Content\ folder and about 17000+ config files under uSync\v9\Media\ folder
Then we have a setup for USync sets that only imports a few targeted config files (3-5 Content Files, around 20-30 media files).
However, even when just importing 1 set, it gets stuck and timesout at the portion where it says "Calculating Import Order". My guess is it gets stuck at this line:

https://github.com/KevinJump/uSync/blob/v12/main/uSync.BackOffice/SyncHandlers/SyncHandlerLevelBase.cs#L60

Image

...because it's scanning the entire folder of \Content or \Media and it's timing out because of the sheer amount of config files. (Please correct me if I'm wrong.). Anyway, reducing the amount of config files significantly increases the speed of this.

Potential Solution:

What we're thinking is perhaps there is a way to make our USync Sets pull from specific folders so that it would only calculate the items on those folders instead of the entire \Content and \Media folder. Something like:

\Content
---> \Set1
------> page1.config
------> page2.config
------> page3.config
---> \Set2
------> page2.config
------> page3.config
------> page4.config

and then in the set config we add something like this

Image

Is there a way we can achieve this? Perhaps via a config or extending a notification handler?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions