Page MenuHomePhabricator

Cache user notification and message counts
ClosedPublic

Authored by epriestley on Jun 5 2016, 1:54 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 7:57 AM
Unknown Object (File)
Fri, May 3, 4:56 AM
Unknown Object (File)
Thu, Apr 25, 1:55 AM
Unknown Object (File)
Fri, Apr 19, 4:49 PM
Unknown Object (File)
Wed, Apr 17, 10:13 PM
Unknown Object (File)
Thu, Apr 11, 9:34 AM
Unknown Object (File)
Sun, Apr 7, 8:37 AM
Unknown Object (File)
Apr 2 2024, 2:35 AM
Subscribers
None

Details

Summary

Ref T4103. Ref T10078. This puts a user cache in front of notification and message counts.

This reduces the number of queries issued on every page by 4 (2x building the menu, 2x building Quicksand data).

Also fixes some minor issues:

  • Daemons could choke on sending mail in the user's translation.
  • No-op object updates could fail in the daemons.
  • Questionable data access pattern in the file query coming out of the profile file cache.
Test Plan
  • Sent myself notifications. Saw count go up.
  • Cleared them by visiting objects and clearing all notifications. Saw count go down.
  • Sent myself messages. Saw count go up.
  • Cleared them by visiting threads. Saw count go down.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Cache user notification and message counts.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 5 2016, 2:54 PM
This revision was automatically updated to reflect the committed changes.