-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Allow dates beyond 2038 #130
Conversation
The max value I calculated is of by ~7 years from what I intended it to be...
|
Hi, thank you for your contribution. Please confirm this code is submitted under the terms of the OCA (Oracle's Contribution Agreement) you have previously signed by cutting and pasting the following text as a comment: |
I confirm the code being submitted is offered under the terms of the OCA, and that I am authorized to contribute it. |
253202544000 = (9999 - 1970) * 365 * 24 * 60 * 60 |
Hi, thank you for your contribution. Your code has been assigned to an internal queue. Please follow |
Summary: This diff optionally enables to skip calling rocksdb::GetApproximateSize() when FORCE INDEX is used. rocksdb::GetApproximateSize() is relatively expensive. Existing rocksdb_records_in_range variable also skips calling GetApproximateSize(), but this applies to all queries so possibilities to choose wrong index is quite high. rocksdb_force_index_records_in_range reduces the possibility. Default is 0 -- not skipping GetApproximateSize(). There are cases where accurate estimate is needed -- i.e. to decide proper join ordering or how many prefix columns to be used. So it is not possible to always skip calling GetApproximateSize(). rocksdb_force_index_records_in_range is useful when users understand their queries with FORCE INDEX don't need accurate estimated rows. Test Plan: mtr Reviewers: hermanlee4, spetrunia, jkedgar Reviewed By: jkedgar Subscribers: webscalesql-eng Differential Revision: https://reviews.facebook.net/D52977
Summary: This diff optionally enables to skip calling rocksdb::GetApproximateSize() when FORCE INDEX is used. rocksdb::GetApproximateSize() is relatively expensive. Existing rocksdb_records_in_range variable also skips calling GetApproximateSize(), but this applies to all queries so possibilities to choose wrong index is quite high. rocksdb_force_index_records_in_range reduces the possibility. Default is 0 -- not skipping GetApproximateSize(). There are cases where accurate estimate is needed -- i.e. to decide proper join ordering or how many prefix columns to be used. So it is not possible to always skip calling GetApproximateSize(). rocksdb_force_index_records_in_range is useful when users understand their queries with FORCE INDEX don't need accurate estimated rows. Test Plan: mtr Reviewers: hermanlee4, spetrunia, jkedgar Reviewed By: jkedgar Subscribers: webscalesql-eng Differential Revision: https://reviews.facebook.net/D52977
My first go at fixing https://bugs.mysql.com/bug.php?id=12654