discourse/app
Alan Guo Xiang Tan 97143efc52
PERF: Drop user_search_similar_results site setting (#28874)
In 14cf8eacf1, we added the
`user_search_similar_results` site setting which when enabled will use
trigram matching for similarity search in `UserSearch`. However, we
noted that adding the `index_users_on_username_lower_trgm` index is
causing the PG planner to not use the `index_users_on_username_lower`
index when the `=` operator is used against the `username_lower` column.

Based on the PG mailing list discussion where support for the `=`
operator in gist_trgm_ops was being considered, it stated that "I also have checked that btree_gist is preferred over pg_trgm gist
index for equality search." This is however quite different from reality
on our own PG clusters where the btree index is not preferred leading to
significantly slower queries when the `=` operator is used.

Since the pg_trgm gist index is only used for queries when the `user_search_similar_results` site setting
is enabled, we decided to drop the feature instead as it is hidden and
disabled by default. As such, we can consider it experiemental and drop
it without deprecation.

PG mailing list discussiong: https://www.postgresql.org/message-id/CAPpHfducQ0U8noyb2L3VChsyBMsc5V2Ej2whmEuxmAgHa2jVXg%40mail.gmail.com
2024-09-13 09:04:02 +08:00
..
assets DEV: Fix random typos (#28891) 2024-09-12 23:25:34 +02:00
controllers DEV: Refactor suspend/silence user services 2024-09-12 10:28:48 +02:00
helpers DEV: Drop WithServiceHelper 2024-09-05 09:58:20 +02:00
jobs DEV: Remove old problem check system - Part 1 (#28772) 2024-09-06 17:00:25 +08:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models PERF: Drop user_search_similar_results site setting (#28874) 2024-09-13 09:04:02 +08:00
policies DEV: Refactor suspend/silence user services 2024-09-12 10:28:48 +02:00
serializers FEATURE: Support designating multiple groups as mods on category (#28655) 2024-09-04 04:38:46 +03:00
services DEV: Refactor suspend/silence user services 2024-09-12 10:28:48 +02:00
views UX: Upgrade to fontawesome 6.6.0 (#28778) 2024-09-09 14:40:56 +01:00