mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-04 05:53:43 +00:00 
			
		
		
		
	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:
		
				
					committed by
					
						
						Tim Abbott
					
				
			
			
				
	
			
			
			
						parent
						
							1abd356a91
						
					
				
				
					commit
					57ff573535
				
			@@ -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.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user