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

NAME

6       mongoc_read_prefs_set_hedge - mongoc_read_prefs_set_hedge()
7

SYNOPSIS

9          void
10          mongoc_read_prefs_set_hedge (mongoc_read_prefs_t *read_prefs,
11                                       const bson_t *hedge);
12

PARAMETERS

14read_prefs: A mongoc_read_prefs_t.
15
16hedge: A bson_t.
17

DESCRIPTION

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

AUTHOR

33       MongoDB, Inc
34
36       2017-present, MongoDB, Inc
37
38
39
40
411.17.6                           Jun 03, 2021   MONGOC_READ_PREFS_SET_HEDGE(3)
Impressum