Skip to content

Fix #2429: Replaced slow UNION query with optimized all_objects query #2467

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

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

Conversation

LohithaNadimpalli
Copy link

Summary:

Replaced the slow UNION-based SQL query in connection.rb with a single query using all_objects to improve performance, as discussed in #2429.

Details:

  • Reduced 4 UNION ALL queries into one optimized query using all_objects.
  • Suggested by Oracle DBAs due to 2-second delay in production.
  • I'm a beginner contributor and wasn’t able to run tests locally.
    Kindly review and let me know if further changes are needed.

Closes #2429

@LohithaNadimpalli
Copy link
Author

Hi maintainers! I'm a beginner contributor and excited to make my first PR to this project. Please let me know if anything needs improvement. 🙏

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.

Slow query, can it be replaced?
2 participants