Fetch bundle and self repair endpoints should make no DB queries in the common case

RESOLVED FIXED

Status

Shield
General
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: mythmon, Assigned: mythmon)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Assignee)

Description

2 years ago
The fetch bundle endpoint and the self repair endpoints are going to take the brunt of our traffic. To achieve the throughput we need, we'll probably need to enforce that these views perform no DB queries in most cases. In memory caching can be used for this, and it is fine for the cache to need a few requests to warm up.

This should be enforced with the test suite. This blocks going live because we probably need this optimization to handle full load with a reasonable amount of hardware.
(Assignee)

Updated

2 years ago
Depends on: 1257263
(Assignee)

Updated

2 years ago
Assignee: nobody → mcooper

Comment 1

2 years ago
Commit pushed to master at https://github.com/mozilla/normandy

https://github.com/mozilla/normandy/commit/3ed37ec31df3b1399caeed36e75764660ef15cb1
Reduce number of db queries to zero for fetch_bundle

Fixes bug 1257658.

Updated

2 years ago
Status: NEW → RESOLVED
Last Resolved: 2 years ago
Resolution: --- → FIXED
Component: SHIELD → General
Product: Websites → Normandy
You need to log in before you can comment on or make changes to this bug.