1MONGOC_READ_PREFS_SET_HEDGE(3)     libmongoc    MONGOC_READ_PREFS_SET_HEDGE(3)
2
3
4

SYNOPSIS

6          void
7          mongoc_read_prefs_set_hedge (mongoc_read_prefs_t *read_prefs,
8                                       const bson_t *hedge);
9

PARAMETERS

11read_prefs: A mongoc_read_prefs_t.
12
13hedge: A bson_t.
14

DESCRIPTION

16       Sets  the  hedge  document  to be used for the read preference. Sharded
17       clusters running MongoDB 4.4 or later can dispatch read  operations  in
18       parallel, returning the result from the fastest host and cancelling the
19       unfinished operations.
20
21       For example, this is a valid hedge document
22
23          {
24             enabled: true
25          }
26
27       Appropriate values for the enabled key are true or false.
28

AUTHOR

30       MongoDB, Inc
31
33       2017-present, MongoDB, Inc
34
35
36
37
381.25.1                           Nov 08, 2023   MONGOC_READ_PREFS_SET_HEDGE(3)
Impressum