-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Switch back from GIST to GIN #2753
Comments
Very useful intel about this over at #freenode_postgresql:matrix.org from @RhodiumToad - thanks! https://riot.im/develop/#/room/#freenode_#postgresql:matrix.org/$15150804542648117JqeFr:matrix.org
|
we just did this on matrix.org and it sped up search from 200,000ms to 6.71ms for a rare item (an eth account which appeared in 3 different msgs). so i think we should back out the bg conversion job and restore everyone's synapses to GINs... |
We're seeing some massive (>1 minute) pauses every N hours with GIN, as predicted above:
Looks like we need to set work_mem to a small value at the point of doing the |
Currently we create FTS indexes as GIN in the schema but then convert to GIST as a background job in the main search storage (why isn't this a schema delta script?). We want to try GIN again on matrix.org however, as with faster IO perhaps it will perform better for inserts. If it doesn't, there are some tricks we can try short of upgrading postgres to 9.6 or later
The text was updated successfully, but these errors were encountered: