Files
feba5aadef docs: Add pagination explanation to docs (#2134)
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>
2024-12-02 14:50:52 +05:30
..
2020-07-24 19:36:51 +05:30
2020-07-24 19:36:51 +05:30
2024-08-11 13:30:21 -04:00

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

  1. Download and install the latest patch of Hugo version v0.69.x from here.
  2. Run hugo server within the docs folder.
  3. Visit http://localhost:1313 to see the documentation site.

Contributing

If you're interested in contributing to Badger, please review our guidelines.

Contact