Add pagination by max_id instead of offset/limit
This commit is contained in:
parent
02e4fb2e06
commit
12559b01ea
7 changed files with 19 additions and 10 deletions
|
@ -14,7 +14,7 @@ class PrecomputeFeedService < BaseService
|
|||
private
|
||||
|
||||
def push(type, receiver_id, status)
|
||||
redis.zadd(key(type, receiver_id), status.created_at.to_i, status.id)
|
||||
redis.zadd(key(type, receiver_id), status.id, status.id)
|
||||
end
|
||||
|
||||
def home(account)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue