Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove CommentParticipationByAccount.

It was a bad idea. I miscalculated which aspect of CommentPane was
taking the try_cache time.
  • Loading branch information...
commit d0babbd109229732c8602adf5aa2dc10cafb0e31 1 parent 7850a4b
@spladug spladug authored
Showing with 0 additions and 17 deletions.
  1. +0 −17 r2/r2/models/link.py
View
17 r2/r2/models/link.py
@@ -735,8 +735,6 @@ def _new(cls, author, link, parent, body, ip):
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'
Please sign in to comment.
Something went wrong with that request. Please try again.