[−][src]Crate ultra_batch
Batch and cache database queries or other potentially expensive data lookups. The main motivation for this library is to solve the "N + 1" query problem seen in GraphQL and elsewhere. This library takes heavy influence from the GraphQL Foundation's DataLoader.
The most common entrypoints to this library are the Batcher
type (used to queue and load data in batches) and the Fetcher
trait (used by Batcher
s to actually retrieve
the data).
Structs
Batcher | Used to batch and cache loads from some datastore. A |
BatcherBuilder | Used to configure a new |
Cache | Holds the results of loading a batch of data from a |
Enums
LoadError | Error indicating that loading one or more values from a |
Traits
Fetcher | A trait for fetching values from some datastore in bulk. A |