mirror of
https://github.com/luxfi/zapdb.git
synced 2026-07-27 06:54:45 +00:00
Resolves [#2133](https://github.com/dgraph-io/badger/issues/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 <filinvadim@pm.me>
Badger Docs
If you are looking for Badger's documentation, you might find https://dgraph.io/docs/badger much more readable.
Getting Started
We use Hugo for our documentation.
Running locally
- Download and install the latest patch of Hugo version v0.69.x from here.
- Run
hugo serverwithin thedocsfolder. - Visit http://localhost:1313 to see the documentation site.
Contributing
If you're interested in contributing to Badger, please review our guidelines.
Contact
- Please use discuss.dgraph.io for questions, feature requests, and discussions.
- Follow us on Twitter @dgraphlabs.