ActiveRecord: clever ways to round robin paginated query results by day

后端 未结 0 1573
名媛妹妹
名媛妹妹 2021-02-04 02:41

Suppose I have n database entries and want to display a subset of 10 that refreshes each day, cycling back to the beginning once it runs out of entries.

One method I came

相关标签:
回答
  • 消灭零回复
提交回复
热议问题