Change lookup of blobs to not use a subquery, which is murder on MySQL

This commit is contained in:
Joseph Schorr 2019-01-03 14:59:24 -05:00
parent cdb49dbfd3
commit e309508776
4 changed files with 31 additions and 40 deletions

View file

@ -50,7 +50,7 @@ def test_blob_caching(method, endpoint, client, app):
with patch('endpoints.v2.blob.model_cache', InMemoryDataModelCache()):
# First request should make a DB query to retrieve the blob.
with assert_query_count(3):
with assert_query_count(4):
conduct_call(client, 'v2.' + endpoint, url_for, method, params, expected_code=200,
headers=headers)