Created
May 23, 2016 11:50
-
-
Save eliank/8c362cc1fe4816a7a40067c6268779ea to your computer and use it in GitHub Desktop.
CREATE INDEX
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE INDEX some_table_some_index ON some_table USING btree (some_variable, some_date) WHERE some_variable IN ('some_value', 'another_value', 'yet_another_value') AND DATE_TRUNC('day', updated_at) <= some_date; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment