mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Remove CommentParticipationByAccount.
It was a bad idea. I miscalculated which aspect of CommentPane was taking the try_cache time.
This commit is contained in:
@@ -735,8 +735,6 @@ class Comment(Thing, Printable):
|
||||
|
||||
c._commit()
|
||||
|
||||
CommentParticipationByAccount.register(author, link)
|
||||
|
||||
changed(link, True) # link's number of comments changed
|
||||
|
||||
inbox_rel = None
|
||||
@@ -1384,21 +1382,6 @@ class SaveHide(Relation(Account, Link)): pass
|
||||
class Click(Relation(Account, Link)): pass
|
||||
|
||||
|
||||
class CommentParticipationByAccount(tdb_cassandra.DenormalizedRelation):
|
||||
_use_db = True
|
||||
_last_modified_name = 'Commented'
|
||||
_write_last_modified = False
|
||||
_views = []
|
||||
|
||||
@classmethod
|
||||
def value_for(cls, thing1, thing2, opaque):
|
||||
return ''
|
||||
|
||||
@classmethod
|
||||
def register(cls, user, link):
|
||||
cls.create(user, [link])
|
||||
|
||||
|
||||
class GildedCommentsByAccount(tdb_cassandra.DenormalizedRelation):
|
||||
_use_db = True
|
||||
_last_modified_name = 'Gilding'
|
||||
|
||||
Reference in New Issue
Block a user