Homec4science

Optimize filtering private threads when querying Conpherence

Authored by epriestley <git@epriestley.com> on Oct 20 2016, 22:28.

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

Committed
epriestley <git@epriestley.com>Oct 20 2016, 22:40
Pushed
aubortJan 31 2017, 17:16
Parents
rPH7678f412be22: Hold a lock while collecting garbage
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH4058726b3a13: Optimize filtering private threads when querying Conpherence (authored by epriestley <git@epriestley.com>).Oct 20 2016, 22:40