Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Migrations for indexes on batch tables#5700

Merged
corneil merged 2 commits intospring-attic:mainfrom
corneil:corneil/batch-index-migrations
Feb 23, 2024
Merged

Migrations for indexes on batch tables#5700
corneil merged 2 commits intospring-attic:mainfrom
corneil:corneil/batch-index-migrations

Conversation

@corneil
Copy link
Contributor

@corneil corneil commented Feb 22, 2024

Migrations for indexes on batch tables to improve aggregate view page queries.

Fixes #5695

Also added fix for SimpleJobServiceMariadbTests and SimpleJobServicePostgresTests

DO NOT SQUASH Use Rebase & Merge

@corneil corneil requested review from cppwfs and onobc February 22, 2024 13:15
Copy link
Contributor

@cppwfs cppwfs left a comment

Choose a reason for hiding this comment

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

Can you provide the reason why we need the optimizations?

@corneil corneil force-pushed the corneil/batch-index-migrations branch 3 times, most recently from 1edac4f to 1157469 Compare February 22, 2024 17:10
@corneil corneil requested a review from cppwfs February 22, 2024 17:10
@corneil
Copy link
Contributor Author

corneil commented Feb 22, 2024

Can you provide the reason why we need the optimizations?

Customer experienced queries so long that their ingress requests timed out at 120 or 180s.
After adding indexes the queries came in below 1s.

Corneil du Plessis added 2 commits February 22, 2024 19:54
… queries when customer has large number of job executions in history. They experienced queries exceeding 180s.

Fixes spring-attic#5695
Resolve "cannot get connection" in SimpleJobServicePostgresTests, SimpleJobServiceMariadbTests.
@corneil corneil force-pushed the corneil/batch-index-migrations branch from 1157469 to d10b086 Compare February 22, 2024 17:55
Copy link
Contributor

@onobc onobc left a comment

Choose a reason for hiding this comment

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

Thanks for the fixes @corneil - LGTM !

@klopfdreh
Copy link
Contributor

That was fast. Thanks a lot! 👍

Copy link
Contributor

@klopfdreh klopfdreh left a comment

Choose a reason for hiding this comment

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

Looks good!

@corneil corneil merged commit 5debcf4 into spring-attic:main Feb 23, 2024
@corneil corneil deleted the corneil/batch-index-migrations branch February 23, 2024 13:59
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Further performance improvements for job executions (for oracle, other dbs might vary)

4 participants