Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Content type saving performance improvements. #377

Closed
KevinJump opened this issue Mar 29, 2022 · 0 comments
Closed

Content type saving performance improvements. #377

KevinJump opened this issue Mar 29, 2022 · 0 comments
Labels
Performance Issues that effect performance v9/9.3.0

Comments

@KevinJump
Copy link
Owner

v9.2 contains some more performance improvements for saving of content and content types.

  • Don't save items when the internal serializer returns saved as part of the action (reduces save count in some syncing instances)
  • Sort content/media by both level and sort order before importing - reduces the need for a second pass on content/media
  • New option flag to not save/publish content at all if we don't think its changed after a 'full import'

OnlyPublishDirty

When you perform a full import, uSync runs through the whole import process regardless of detecting changes, this isn't really required but can be used to 'force' a sync of something if uSync isn't detecting the change (it is far more likely that uSync would detects a change that isn;'t there then there being a change in the file not detected by uSync,)

at the end of this process content will be published, even if it hasn't changed, - the "OnlyPublishDirty" flag lets you change this behaviour, and only publish content if Umbraco thinks it is dirty (so less DB/File/Cache hits).

"uSync": {
  "Sets": {
    "Default": {
      "HandlerDefaults": {
        "OnlyPublishDirty": true
      }
    }
  }
}

in 9.x this value will be false by default (so no behaviour change) if this value is usefull and has no side effects we might flip this to true for v10.

@KevinJump KevinJump added Performance Issues that effect performance v9/9.3.0 labels Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Performance Issues that effect performance v9/9.3.0
Projects
None yet
Development

No branches or pull requests

1 participant