HomePhabricator

Optimize filtering private threads when querying Conpherence

Description

Optimize filtering private threads when querying Conpherence

Summary:
Because most threads are private, this query can overheat the policy filter (today, probably only on this install).

Improve the common case by skipping "Visible To: Room Participants" threads if the viewer isn't a participant. This means they don't hit the application and don't count toward overheating the filter.

Test Plan: Viewed Conpherence threads.

Reviewers: chad

Reviewed By: chad

Differential Revision: https://secure.phabricator.com/D16740

Details

Provenance
epriestleyAuthored on Oct 20 2016, 8:28 PM
epriestleyPushed on Oct 20 2016, 8:40 PM
Reviewer
chad
Differential Revision
D16740: Optimize filtering private threads when querying Conpherence
Parents
rP7678f412be22: Hold a lock while collecting garbage
Branches
Unknown
Tags
Unknown
Build Status
Buildable 14206
Build 18464: Run Core Tests