mirror of https://github.com/zulip/zulip.git
298e008cc2
Apply this commit after hours! To apply this commit, first run the migration and then run the following as the zulip user on staging: $ echo 'VACUUM zerver_message' | python manage.py dbshell The above VACUUM is needed to clean out the existing fast update pending list. It might take a long time and block new message inserts! See discussion near Zulip message 18377486 for why we're turning off the fast update mechanism for zephyr_message_search_tsvector. The high level overview is: As a consequence of the high work_mem setting on our postgres server, the fastupdate pending list for zephyr_message_search_tsvector can grow very large. This leads to the occasional INSERT or UPDATE taking inordinately long (many minutes) as the pending list is flushed, blocking other inserts. One other possible solution for preventing the list from growing too large is to set the autovacuum storage parameters on the table such that the autovacuum process will run after a reasonable number of INSERTs or UPDATEs. However, the table is mostly INSERT-only. Therefore, only the autovacuum_analyze_* parameters will actually do anything to affect when the autovacuumer will run, but when it does, it will do a VACUUM ANALYZE instead of a plain VACUUM. We don't particularly need the table to be re-analyzed that often. Turning off fast update will eventually cause the index to become less efficient, but we can always rebuild it later if we notice it starting to get too slow. (imported from commit f280c193c3bc0a3f312960510c5a7dcf97f30c3d) |
||
---|---|---|
.. | ||
0001_initial.py | ||
0017_auto__add_field_subscription_color.py | ||
0018_auto__add_unique_userprofile_email.py | ||
0019_auto__add_field_userprofile_tutorial_status.py | ||
0020_set_tutorial_finished.py | ||
0021_auto__add_field_subscription_notifications.py | ||
0022_create_humbug_search_config.py | ||
0023_rebuild_search_tsvector.py | ||
0024_create_escape_html_function.py | ||
0025_auto__add_field_userprofile_enable_sounds.py | ||
0026_auto__add_field_userprofile_enable_offline_email_notifications__add_fi.py | ||
0027_auto__add_field_userprofile_is_bot__add_field_userprofile_bot_owner.py | ||
0028_auto__add_field_userprofile_onboarding_steps.py | ||
0029_auto__add_field_message_last_edit_time__add_field_message_edit_history.py | ||
0030_auto__chg_field_userprofile_last_reminder.py | ||
0031_auto__add_field_userprofile_rate_limits.py | ||
0032_auto__add_field_userprofile_avatar_source.py | ||
0033_remove_postgres_zephyr_message_full_text_idx.py | ||
0034_change_search_stopwords.py | ||
0035_auto__add_field_userprofile_is_superuser.py | ||
0036_async_fts_update.py | ||
0037_auto__add_field_preregistrationuser_realm.py | ||
0038_auto__add_referral__add_field_userprofile_invites_granted__add_field_u.py | ||
0039_rename_database_tables.py | ||
0040_auto__add_field_stream_email_token.py | ||
0041_auto__chg_field_stream_email_token.py | ||
0042_auto__add_realmemoji__add_unique_realmemoji_realm_name.py | ||
0043_auto__add_field_userprofile_alert_words.py | ||
0044_auto__add_useractivityinterval.py | ||
0045_auto__add_field_userprofile_muted_topics.py | ||
0046_auto__add_field_realm_date_created.py | ||
0047_auto__add_field_stream_date_created.py | ||
0048_auto__add_field_realm_notifications_stream.py | ||
0049_auto__chg_field_stream_name.py | ||
0050_auto__add_appledevicetoken.py | ||
0051_auto__add_field_realm_name.py | ||
0052_subject_case_index.py | ||
0053_stream_name_case_index.py | ||
0054_auto__add_field_userprofile_enable_offline_push_notifications.py | ||
0055_auto__add_field_appledevicetoken_last_updated.py | ||
0056_auto__del_field_usermessage_archived.py | ||
0057_auto__add_realmalias.py | ||
0058_auto__add_scheduledjob.py | ||
0059_auto__add_field_userprofile_enable_digest_emails.py | ||
0060_auto__add_realmfilter__add_unique_realmfilter_realm_pattern.py | ||
0061_auto__add_pushdevicetoken.py | ||
0062_auto__add_field_userprofile_autoscroll_forever.py | ||
0063_auto__add_field_realm_deactivated.py | ||
0064_auto__add_field_userprofile_is_mirror_dummy.py | ||
0065_auto__add_field_userprofile_default_desktop_notifications.py | ||
0066_auto__add_field_stream_description.py | ||
0067_auto__add_field_stream_deactivated.py | ||
0068_auto__add_field_message_has_attachment__add_field_message_has_image__a.py | ||
0069_create_zerver_message_indices.py | ||
0070_auto__add_field_userprofile_enable_stream_desktop_notifications__add_f.py | ||
0071_auto__add_field_subscription_desktop_notifications__add_field_subscrip.py | ||
0072_auto__add_field_userprofile_default_sending_stream.py | ||
0073_auto__add_field_userprofile_default_events_register_stream__add_field_.py | ||
0074_turn_off_gin_fast_update_for_zephyr_message_search_tsvector.py | ||
__init__.py |