Speed up daily reindex: skip empty JSON rewrites and upsert only changed posts.

Keep channel mtime stable when merge finds no new posts, and rebuild FTS only
for new/changed content so large daily channels stay cheap. Drop --reindex-all
from renew.sh for incremental runs.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Сергей Маринкевич
2026-08-04 18:31:15 +07:00
parent 0b87a1b339
commit 4820fb884b
3 changed files with 175 additions and 58 deletions
+3 -1
View File
@@ -1,2 +1,4 @@
cd /home/grayhook/Documents/mattermost-dl && .venv/bin/python mattermost-dl.py --team esr-daily --channel all
cd /home/grayhook/Documents/mattermost-dl && .venv/bin/python mm_index.py --reindex-all
cd /home/grayhook/Documents/mattermost-dl && .venv/bin/python mattermost-dl.py --team esr-dev-and-qa --channel QoSd
cd /home/grayhook/Documents/mattermost-dl && .venv/bin/python mattermost-dl.py --team esr-dev-and-qa --channel VSAT
cd /home/grayhook/Documents/mattermost-dl && .venv/bin/python mm_index.py