From 6db4e82ac8f6268da9b6d3b862ff12458afc67e2 Mon Sep 17 00:00:00 2001 From: Neil Williams Date: Mon, 9 Jul 2012 11:48:12 -0700 Subject: [PATCH] Use CL ONE for Cassandra Save/Hide lookups. Looking up saves and hides generally results in a big multi-get that'll end up hitting most of the ring. During load spikes this is a big issue. Let's try reducing the CL to reduce load. --- r2/r2/models/link.py | 1 + 1 file changed, 1 insertion(+) diff --git a/r2/r2/models/link.py b/r2/r2/models/link.py index 10e4a2c84..edf84b588 100755 --- a/r2/r2/models/link.py +++ b/r2/r2/models/link.py @@ -1247,6 +1247,7 @@ class Click(Relation(Account, Link)): pass class SimpleRelation(tdb_cassandra.Relation): _use_db = False + _read_consistency_level = tdb_cassandra.CL.ONE @classmethod def _create(cls, user, link, write_consistency_level = None):