Add documentation explaining what process_fts_updates does.

This commit is contained in:
Tim Abbott 2015-12-15 08:11:07 -08:00
parent 0162dc4bc0
commit 2b0394d807
1 changed files with 7 additions and 0 deletions

View File

@ -1,4 +1,11 @@
#!/usr/bin/env python2.7
# Processes updates to postgres Full Text Search for new/edited messages.
#
# Zulip manages its postgres full-text search as follows. When the
# content of a message is modified, a postgres trigger logs the
# message ID to the `fts_update_log` table. In the background, this
# program processes `fts_update_log`, updating the postgres full-text
# search column search_tsvector in the main zerver_message.
import psycopg2
import psycopg2.extensions
import select