|
@@ -66,7 +66,7 @@ class FeedManager
|
|
|
timeline_key = key(:home, into_account.id)
|
|
|
oldest_home_score = redis.zrange(timeline_key, 0, 0, with_scores: true)&.first&.last&.to_i || 0
|
|
|
|
|
|
- from_account.statuses.select('id').where('id > ?', oldest_home_score).find_in_batches do |statuses|
|
|
|
+ from_account.statuses.select('id').where('id > ?', oldest_home_score).reorder(nil).find_in_batches do |statuses|
|
|
|
redis.pipelined do
|
|
|
statuses.each do |status|
|
|
|
redis.zrem(timeline_key, status.id)
|