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

Optimize tracked references #16996

Merged
merged 7 commits into from
Nov 6, 2024
Merged

Conversation

Migaroez
Copy link
Contributor

@Migaroez Migaroez commented Sep 3, 2024

Description

This PR aims to reduce both the sql complexity and the data transfered from DB trough all the layers out to the api to improve performance.

A performance increase of about 25% percent has been noted across 2 different computers with the same test method: peak load testing with postman collections.

Testing

You can ask me for a DB or connection to it that has a decent set of data (30k+ nodes). From this DB you should pick a random amount of node Ids and run them trough the altered document and media endpoints to see if you get the same results back as in the unmodified versions.

endpoints in question

  • /umbraco/management/api/v1/document/are-referenced
  • /umbraco/management/api/v1/media/are-referenced

Copy link
Member

@bergmania bergmania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Breaking changes and functionality 🙈

Migaroez and others added 3 commits October 29, 2024 10:20
…ed-references

# Conflicts:
#	src/Umbraco.Infrastructure/Persistence/Repositories/Implement/TrackedReferencesRepository.cs
#	src/Umbraco.Infrastructure/Persistence/SqlContextExtensions.cs
@bergmania bergmania changed the base branch from v14/dev to v15/dev November 6, 2024 07:56
@bergmania
Copy link
Member

I retargeted for 15.1

@bergmania bergmania merged commit 24ec0ee into v15/dev Nov 6, 2024
12 of 17 checks passed
@bergmania bergmania deleted the v14/optimize/tracked-references branch November 6, 2024 09:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants