-
Notifications
You must be signed in to change notification settings - Fork 470
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 sql query causing slowness on high-traffic sites #29501
Comments
Here are some results using a customer DB: Original:
After doing a couple of optimizations on the query (only pull the identifier and the variant and filter by structure_inode):
It can be optimized even more by adding a new index but don't know if is worth it?
|
What does it look like with the index on the field? I am asking because the
|
@wezell with the index the execution time stays under
|
This is better though if we are going to write a startup task we need to test how long it takes it against a customer with a large dataset as creating an index locks the table. |
we need some work here:
|
Fixed tested doing an upgrade from 24.10_LTS to main. |
Parent Issue
No response
Problem Statement
@wezell Identified this query which causes slow application responses and strains database server resources on a high-traffic site.
TemplateFactoryImpl.java#L738-L746
Steps to Reproduce
unknown
Acceptance Criteria
Improve query time to run.
Let's QA editing a page layout to check that:
dotCMS Version
all current versions
Proposed Objective
Application Performance
Proposed Priority
Priority 2 - Important
External Links... Slack Conversations, Support Tickets, Figma Designs, etc.
https://dotcms.slack.com/archives/C06TM536N9J/p1723045162451829
Assumptions & Initiation Needs
No response
Quality Assurance Notes & Workarounds
No response
Sub-Tasks & Estimates
No response
The text was updated successfully, but these errors were encountered: