Skip to content
Snippets Groups Projects

Draft: refactor follows and update_nofications indexing

Open Dan Notestein requested to merge 267-update-notification-cache into develop
1 file
+ 0
7
Compare changes
  • Side-by-side
  • Inline
+ 0
7
@@ -23,11 +23,6 @@ log = logging.getLogger(__name__)
class Posts(DbAdapterHolder):
"""Handles critical/core post ops and data."""
# LRU cache for (author-permlink -> id) lookup (~400mb per 1M entries)
CACHE_SIZE = 2000000
_hits = 0
_miss = 0
comment_payout_ops = {}
_comment_payout_ops = []
@@ -194,8 +189,6 @@ class Posts(DbAdapterHolder):
@classmethod
def comment_payout_op(cls):
values_limit = 1000
""" Process comment payment operations """
for k, v in cls.comment_payout_ops.items():
author = None
Loading