<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pagination on Debimate</title><link>https://debimate.jp/tags/pagination/</link><description>Recent content in Pagination on Debimate</description><image><title>Debimate</title><url>https://debimate.jp/images/default-ogp.webp</url><link>https://debimate.jp/images/default-ogp.webp</link></image><generator>Hugo -- 0.166.0</generator><language>ja-JP</language><lastBuildDate>Thu, 12 Nov 2026 15:28:03 +0900</lastBuildDate><atom:link href="https://debimate.jp/tags/pagination/index.xml" rel="self" type="application/rss+xml"/><item><title>Keyset Pagination - OFFSET が後ろのページほど遅くなる理由と、前のページの続きから読む方法</title><link>https://debimate.jp/notes/database-systems/keyset-pagination/</link><pubDate>Wed, 11 Nov 2026 00:00:00 +0000</pubDate><guid>https://debimate.jp/notes/database-systems/keyset-pagination/</guid><description>&lt;p&gt;ページング（pagination）は、一覧の結果を 20 件ずつのように区切って返す仕組みです。SNS のタイムライン、管理画面の一覧、API の一覧取得など、件数が多い一覧のほとんどで使われます。SQL で書く方法は大きく 2 つあり、1 つは &lt;code&gt;LIMIT 20 OFFSET 40&lt;/code&gt; のように先頭から何件を飛ばすかを指定する OFFSET、もう 1 つは前のページの最後のレコードの値を覚えておき、その続きから読むキーセット（keyset pagination、&lt;a href="https://use-the-index-luke.com/no-offset"&gt;seek method&lt;/a&gt; とも呼ばれる）です。&lt;/p&gt;</description></item></channel></rss>