-
Notifications
You must be signed in to change notification settings - Fork 458
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
Consider adding section on guardrails to avoid full scan #18279
Comments
Shannon Bradshaw (shannonbradshaw) commented: |
Rupert Harwood (rupertharwood-crl) commented: |
Richard Loveland (rmloveland) commented: h3. Disallow full table scans with the {{disallow_full_table_scans}} setting To prevent overloading production clusters with full table scans, you have several options: At the cluster level, configure the {{disallow_full_table_scans}} session setting for some or all users/roles using the {{ALTER ROLE}} statement.{noformat}ALTER ROLE ALL SET disallow_full_table_scans = true; At the application level, add the {{disallow_full_table_scans}} session setting to the connection string using the {{options}} parameter. |
Ryan Kuo (taroface) commented: |
Rebecca Taft (rytaft) commented:
In a recent support ticket, I provided information about ways to prevent the optimizer from planning a full scan. Currently this information is scattered in different places in the docs. It would be helpful to have a single page that covers all the different types of guardrails available to avoid expensive queries. I would suggest including at least the following:
disallow_full_table_scans
and optionallylarge_full_scan_rows
settings to disallow full scans or large full scans.transaction_rows_read_err
and/ortransaction_rows_written_err
to disallow transactions reading and/or writing a certain number of rows.transaction_rows_read_log
andtransaction_rows_written_log
just log transactions that read or write the specified number of rows and can be used to assess the impact of enabling the "err" versions of the settings.cc @taroface
Jira Issue: DOC-9629
The text was updated successfully, but these errors were encountered: