generated from hmcts/spring-boot-template
-
Notifications
You must be signed in to change notification settings - Fork 2
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
DMP-4550: Performance Testing - Automated Tasks - UnstructuredToArmDataStore - 28K Batch Size - SELECT darts taking 12.5 minutes #2495
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ben-Edwards-cgi
requested review from
davet1985,
jackmaloney,
hemantasharma1129,
narinder17,
dawidstrozak and
ConnorOKane-Kainos
and removed request for
a team
January 28, 2025 11:13
src/main/java/uk/gov/hmcts/darts/common/repository/ExternalObjectDirectoryRepository.java
Outdated
Show resolved
Hide resolved
src/main/java/uk/gov/hmcts/darts/common/repository/ExternalObjectDirectoryRepository.java
Outdated
Show resolved
Hide resolved
karen-hedges
approved these changes
Jan 28, 2025
hemantasharma1129
approved these changes
Jan 31, 2025
src/test/java/uk/gov/hmcts/darts/common/repository/ExternalObjectDirectoryRepositoryTest.java
Outdated
Show resolved
Hide resolved
Plan Result (stg)
Change Result (Click me) # module.postgresql_flexible.azurerm_log_analytics_workspace.pgsql_log_analytics_workspace[0] will be updated in-place
~ resource "azurerm_log_analytics_workspace" "pgsql_log_analytics_workspace" {
id = "/subscriptions/74dacd4f-a248-45bb-a2f0-af700dc4cf68/resourceGroups/darts-stg-rg/providers/Microsoft.OperationalInsights/workspaces/darts-api-stg-workspace"
name = "darts-api-stg-workspace"
~ tags = {
- "application" = "darts" -> null
- "builtFrom" = "https://github.com/HMCTS/darts-shared-infrastructure.git" -> null
- "businessArea" = "Cross-Cutting" -> null
- "environment" = "staging" -> null
}
# (15 unchanged attributes hidden)
}
# module.postgresql_flexible.azurerm_monitor_diagnostic_setting.pgsql_diag[0] will be updated in-place
~ resource "azurerm_monitor_diagnostic_setting" "pgsql_diag" {
id = "/subscriptions/74dacd4f-a248-45bb-a2f0-af700dc4cf68/resourceGroups/darts-stg-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/darts-api-stg|darts-api-stg-to-log-analytics"
name = "darts-api-stg-to-log-analytics"
# (5 unchanged attributes hidden)
- metric {
- category = "AllMetrics" -> null
- enabled = false -> null
- retention_policy {
- days = 0 -> null
- enabled = false -> null
}
}
# (6 unchanged blocks hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy. |
Plan Result (prod)
Change Result (Click me) # module.postgresql_flexible.azurerm_log_analytics_workspace.pgsql_log_analytics_workspace[0] will be updated in-place
~ resource "azurerm_log_analytics_workspace" "pgsql_log_analytics_workspace" {
id = "/subscriptions/5ca62022-6aa2-4cee-aaa7-e7536c8d566c/resourceGroups/darts-prod-rg/providers/Microsoft.OperationalInsights/workspaces/darts-api-prod-workspace"
name = "darts-api-prod-workspace"
~ tags = {
- "application" = "darts" -> null
- "builtFrom" = "https://github.com/HMCTS/darts-shared-infrastructure.git" -> null
- "businessArea" = "Cross-Cutting" -> null
- "environment" = "production" -> null
}
# (15 unchanged attributes hidden)
}
# module.postgresql_flexible.azurerm_monitor_diagnostic_setting.pgsql_diag[0] will be updated in-place
~ resource "azurerm_monitor_diagnostic_setting" "pgsql_diag" {
id = "/subscriptions/5ca62022-6aa2-4cee-aaa7-e7536c8d566c/resourceGroups/darts-prod-rg/providers/Microsoft.DBforPostgreSQL/flexibleServers/darts-api-prod|darts-api-prod-to-log-analytics"
name = "darts-api-prod-to-log-analytics"
# (5 unchanged attributes hidden)
- metric {
- category = "AllMetrics" -> null
- enabled = false -> null
- retention_policy {
- days = 0 -> null
- enabled = false -> null
}
}
# (6 unchanged blocks hidden)
}
Plan: 0 to add, 2 to change, 0 to destroy. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Links
Change description
Summary of Git Diff
This Git diff reflects changes made to the
ExternalObjectDirectoryRepository.java
file, focusing on the query definitions for retrieving external object directory entities and their IDs. The queries have been optimized and converted from JPQL to native SQL syntax, enhancing performance and readability.Highlights
Query Optimization:
Media Handling:
med_id
instead ofmedia
, improving clarity on what is being checked.Removed Redundant Code:
ORDER BY
clause in favor of usingfetch first :limitRecords rows only
, streamlining the logic.Consistent Naming:
elt_id
,med_id
,trd_id
,ado_id
,cad_id
).Overall Structure:
Does this PR introduce a breaking change? (check one with "x")