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
|
@ -31,7 +31,7 @@ class FanOutOnWriteService < BaseService
|
|||
end
|
||||
|
||||
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)
|
||||
trim(type, receiver_id)
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue