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

[#4024]Refactor: Reduce unnecessary queries in catalog JDBC implementation #6540

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zzzk1
Copy link
Contributor

@zzzk1 zzzk1 commented Feb 26, 2025

What changes were proposed in this pull request?

For queries involving more related tables, use a JOIN operation instead of executing separate queries to retrieve the results.

Why are the changes needed?

There are many unnecessary query operations, and the two tables can be directly associated to reduce these operations.

Part of: #4024

Does this PR introduce any user-facing change?

no

How was this patch tested?

unit tests & backend intergation tests

zzzk1

This comment was marked as resolved.

@zzzk1

This comment was marked as resolved.

@zzzk1 zzzk1 changed the title [#4024]refactor: Catalog storage queries using JOIN for JDBC [#4024]Refactor: Reduce unnecessary queries in catalog JDBC implementation Feb 27, 2025
@zzzk1 zzzk1 force-pushed the refactor-join-query-cm branch from 08f5d42 to 5a624d2 Compare February 27, 2025 06:42
@zzzk1 zzzk1 force-pushed the refactor-join-query-cm branch from 5a624d2 to 72a9039 Compare March 2, 2025 12:25
@zzzk1 zzzk1 marked this pull request as draft March 3, 2025 01:38
@zzzk1 zzzk1 force-pushed the refactor-join-query-cm branch from 72a9039 to 581134d Compare March 3, 2025 03:28
@zzzk1 zzzk1 marked this pull request as ready for review March 3, 2025 03:29
@zzzk1
Copy link
Contributor Author

zzzk1 commented Mar 3, 2025

@yuqi1129, is our test infrastructure broken? I also encountered failures while testing locally. I think they are caused by TestContainers.

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