Skip to content

Commit

Permalink
CL ONE for ModAction lookups.
Browse files Browse the repository at this point in the history
  • Loading branch information
bsimpson63 committed Jul 10, 2012
1 parent 9b9db8f commit ba7e351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions r2/r2/models/modaction.py
Expand Up @@ -39,6 +39,7 @@ class ModAction(tdb_cassandra.UuidThing, Printable):
description - optional user
"""

_read_consistency_level = tdb_cassandra.CL.ONE
_use_db = True
_connection_pool = 'main'
_str_props = ('sr_id36', 'mod_id36', 'target_fullname', 'action', 'details',
Expand Down Expand Up @@ -315,6 +316,7 @@ class ModActionBySR(tdb_cassandra.View):
_compare_with = TIME_UUID_TYPE
_view_of = ModAction
_ttl = 60*60*24*30*3 # 3 month ttl
_read_consistency_level = tdb_cassandra.CL.ONE

@classmethod
def _rowkey(cls, ma):
Expand All @@ -326,6 +328,7 @@ class ModActionBySRMod(tdb_cassandra.View):
_compare_with = TIME_UUID_TYPE
_view_of = ModAction
_ttl = 60*60*24*30*3 # 3 month ttl
_read_consistency_level = tdb_cassandra.CL.ONE

@classmethod
def _rowkey(cls, ma):
Expand All @@ -337,6 +340,7 @@ class ModActionBySRAction(tdb_cassandra.View):
_compare_with = TIME_UUID_TYPE
_view_of = ModAction
_ttl = 60*60*24*30*3 # 3 month ttl
_read_consistency_level = tdb_cassandra.CL.ONE

@classmethod
def _rowkey(cls, ma):
Expand Down

0 comments on commit ba7e351

Please sign in to comment.