You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The reason will be displayed to describe this comment to others. Learn more.
Apparently not. GIN index only supports @> operator but not ->>. I used EXPLAIN and found that some event queries are linear searches, so I added the index and fixed the problem.
Another way to solve this is to rewrite our query with @> instead of adding a new index.
63a3777
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fomalhautb shouldn't this already be part of the GIN index?
63a3777
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apparently not. GIN index only supports
@>
operator but not->>
. I used EXPLAIN and found that some event queries are linear searches, so I added the index and fixed the problem.Another way to solve this is to rewrite our query with
@>
instead of adding a new index.