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.
This commit is contained in:
Neil Williams
2012-07-09 11:48:12 -07:00
committed by bsimpson63
parent 9ed1f8cc0f
commit 6db4e82ac8

View File

@@ -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):