topic: Move sqlalchemy methods into their own file.

Loading sqlalchemy can take a significant amount of time, so splitting
these into these own file can be a significant startup-time savings.
This commit is contained in:
Alex Vandiver
2024-04-15 19:40:37 +00:00
committed by Tim Abbott
parent 1abd356a91
commit 57ff573535
6 changed files with 26 additions and 23 deletions

View File

@@ -13,6 +13,7 @@ from zulint.custom_rules import Rule, RuleList
FILES_WITH_LEGACY_SUBJECT = {
# This basically requires a big DB migration:
"zerver/lib/topic.py",
"zerver/lib/topic_sqlalchemy.py",
# This is for backward compatibility.
"zerver/tests/test_legacy_subject.py",
# Other migration-related changes require extreme care.