mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-05 13:16:14 +01:00
aa550189c7
Summary: Ref T7707. Caches availability on users to reduce the cost of loading handles. This cache is very slightly tricky to dirty properly. Test Plan: - Use DarkConsole to examine queries; saw cache hits, miss+fill, dirty. - Saw availability change correctly after canceling, joining, declining events. - Saw no queries to Calendar for pages with only availability data. Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T7707 Differential Revision: https://secure.phabricator.com/D12838
5 lines
174 B
SQL
5 lines
174 B
SQL
ALTER TABLE {$NAMESPACE}_user.user
|
|
ADD availabilityCache VARCHAR(255) COLLATE {$COLLATE_TEXT};
|
|
|
|
ALTER TABLE {$NAMESPACE}_user.user
|
|
ADD availabilityCacheTTL INT UNSIGNED;
|