Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私のモルフィアコードにこのようなコードがある場合
query.offset((ページ番号 - 1) * ページサイズ);
クエリに「のみ」一致する行の数、またはコレクションの最初の(pageNo - 1)*pageSize行をスキップしますか? ありがとう。
モルヒネoffsetはモンゴと同じskipです; いずれの場合も、結果行を返す前にスキップするクエリ結果の行数を指定します。したがって、質問に関しては、offset()クエリ固有です。
offset
skip
offset()