回答編集履歴

1

訂正

2020/06/12 03:23

投稿

sazi
sazi

スコア25197

test CHANGED
@@ -8,4 +8,4 @@
8
8
 
9
9
  Aなら、単なるソートには意味が無い(最大に対するソートなどが必要)
10
10
 
11
- Bなら、 (post_date desc, ID)のインデックスが有ればよい
11
+ Bなら、group by post_date, id とし、(post_date desc, ID)のインデックスが有ればよい