-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Add pagination explanation to docs (#2134)
Resolves [#2133](#2133). **Summary** This addition to the documentation provides a detailed explanation and implementation of pagination using prefix scans for lexicographically sorted keys. Introduces a practical method for implementing pagination using: - A limit on the number of results returned per query. - A cursor (last processed key) to track the stopping point of the current iteration and resume subsequent queries. Includes a clear example of using cursors to manage iteration over keys in BadgerDB. Provides a complete Go implementation, showcasing how to perform prefix scans, manage pagination, and retrieve key-value pairs sequentially. This addition enhances the documentation by offering both theoretical insights and practical guidance, making it easier for developers to implement efficient, scalable, and sorted data retrieval mechanisms in their applications. Co-authored-by: vadim <[email protected]>
- Loading branch information
1 parent
ec1a9f3
commit 28fb51d
Showing
1 changed file
with
83 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters