-
Notifications
You must be signed in to change notification settings - Fork 127
Add configurable query history recording via queryHistoryEnabled #800
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
base: main
Are you sure you want to change the base?
Add configurable query history recording via queryHistoryEnabled #800
Conversation
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
This seems more apt for DataStoreConfiguration rather than RoutingConfiguration. Especially since we already have the |
|
Can you also add the configuration to the docs? |
|
Sounds reasonable. |
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
yup done |
Yup.Agree. Done |
|
@cla-bot check |
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
The cla-bot has been summoned, and re-checked this pull request! |
|
@cla-bot check |
|
Thank you for your pull request and welcome to the Trino community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. Continue to work with us on the review and improvements in this PR, and submit the signed CLA to [email protected]. Photos, scans, or digitally-signed PDF files are all suitable. Processing may take a few days. The CLA needs to be on file before we merge your changes. For more information, see https://github.com/trinodb/cla |
|
The cla-bot has been summoned, and re-checked this pull request! |
Summary
This PR introduces a configurable option to enable/disable query history recording in Trino Gateway, addressing database performance bottlenecks and infrastructure cost concerns.
Problem
Currently, query history is always saved to the database, which creates several operational challenges:
Solution
Added a new configuration option queryHistoryEnabled in DataStoreConfiguration that allows operators to:
Configuration
Default behavior: Query history is enabled by default (true) to maintain backward compatibility.
Benefits
Implementation Details
Files Changed
Production Code (7 files)
Test Code (5 files)
All tests pass: 292 tests run, 0 failures, 0 errors
Backward Compatibility
✅ Fully backward compatible
Follow-up
After this PR is approved and merged, a follow-up PR will be submitted to the Trino Gateway Helm Charts repository to expose this configuration option in the Helm values, making it easier for Kubernetes deployments to configure this setting.