From e844fbda73e19f38d45711f373f8b374ffb31353 Mon Sep 17 00:00:00 2001 From: Brian Simpson Date: Tue, 9 Aug 2016 08:44:14 -0700 Subject: [PATCH] Relation: Reduce _cache_ttl to 1 hour --- r2/r2/lib/db/thing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/r2/r2/lib/db/thing.py b/r2/r2/lib/db/thing.py index f4b8dec16..b96dc7659 100644 --- a/r2/r2/lib/db/thing.py +++ b/r2/r2/lib/db/thing.py @@ -785,6 +785,8 @@ def Relation(type1, type2): _base_props = ('_thing1_id', '_thing2_id', '_name', '_date') _type_prefix = Relation._type_prefix + _cache_ttl = int(timedelta(hours=1).total_seconds()) + _enable_fast_query = True _rel_cache = g.relcache _rel_cache_ttl = int(timedelta(hours=1).total_seconds()) -- 2.11.4.GIT