-
Notifications
You must be signed in to change notification settings - Fork 12
Optimizer hints v1 #19
Conversation
|
Cool! But why not make the base raise |
|
I went back and forth but ended up with this because the Also fixing the unit test issues now |
|
Sounds good. If you want to re-use this method, you can either use mixin inheritance, or just create a module function and call it from each class. |
6baa188 to
7457caa
Compare
|
I implemented it using a mixin as you suggested, but its not 100% clear to me what the |
|
Yeah, sorry, I accidentally mislead you. I meant a mixin as a concept (https://en.wikipedia.org/wiki/Mixin), not the specific AbstractMixin mechanism, which is a bit of an overkill for this feature. But it's not bad that you did it this way. Maybe it's even for the best! Here is how users can use mixins: https://sqeleton.readthedocs.io/en/latest/intro.html#dialect-mixins And in the future I plan to make that interface a little bit nicer too. |
|
TY, I'll leave this as is for now then. |
Tiny fix for PR #19 - Optimizer hints v1
|
Merged. Sorry for the delay, I was on vacation. Thank you for the contribution! |
Added support for inserting optimizer hints into Oracle and MySQL queries.
For example, with the following Oracle table
You can now create a select query with a PARALLEL optimization hint as follows