-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Open
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionEngineeringImprovementItem broken or needs improvement.Item broken or needs improvement.WeeklyKSv2KSv2
Description
Problem
The Onyx migration framework runs two migration scripts on every app startup that read from Onyx storage even when no migration is needed:
- RenameEmojiSkinTone: Reads
PREFERRED_EMOJI_SKIN_TONEto check its type - ConvertPolicyChatReportIDsToString: Reads the entire policy collection (
waitForCollectionCallback: true) to check if any policy has numericchatReportIDAdminsorchatReportIDAnnounce
These migrations are no longer needed — the backend now sends correct data for all users, and sufficient time has passed for existing client data to have been migrated. However, the read-then-check pattern still costs ~934ms at P90 on ManualAppStartup, primarily from loading the full policy collection.
Original discussion.
Solution
NOOP these functions to ovoid unnecessary policy iteration.
Reactions are currently unavailable
Metadata
Metadata
Labels
Awaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionEngineeringImprovementItem broken or needs improvement.Item broken or needs improvement.WeeklyKSv2KSv2