implementing-query-pagination

Community

Master cursor and offset pagination with Prisma.

Authordjankies
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Efficient pagination is essential for large datasets. This Skill teaches correct Prisma 6 pagination patterns, including cursor-based and offset-based approaches and the trade-offs.

Core Features & Use Cases

  • Cursor pagination: stable performance regardless of dataset size; ideal for infinite scroll.
  • Offset pagination: simple but degrades with large data; best for small, static datasets.
  • Indexing and ordering considerations to support pagination efficiently.

Quick Start

Start with cursor pagination by default, using take, cursor, and orderBy; reserve offset pagination for small admin tables or internal tooling when page jumps are required.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: implementing-query-pagination
Download link: https://github.com/djankies/claude-configs/archive/main.zip#implementing-query-pagination

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.