mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
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:
committed by
bsimpson63
parent
9ed1f8cc0f
commit
6db4e82ac8
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user