Skip to content

Optimize tracked references#16996

Merged
bergmania merged 7 commits intov15/devfrom
v14/optimize/tracked-references
Nov 6, 2024
Merged

Optimize tracked references#16996
bergmania merged 7 commits intov15/devfrom
v14/optimize/tracked-references

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
@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