Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
MONGOC_READ_PREFS_SET_HEDGE(3)	    libmongoc	  MONGOC_READ_PREFS_SET_HEDGE(3)

SYNOPSIS
	void
	mongoc_read_prefs_set_hedge (mongoc_read_prefs_t *read_prefs,
				     const bson_t *hedge);

PARAMETERS
     * read_prefs: A mongoc_read_prefs_t.

     * hedge: A bson_t.

DESCRIPTION
     Sets  the	hedge document to be used for the read preference. Sharded clus-
     ters running MongoDB 4.4 or later can dispatch read operations in parallel,
     returning the result from the fastest host and  cancelling  the  unfinished
     operations.

     For example, this is a valid hedge document

	{
	   enabled: true
	}

     Appropriate values for the enabled key are true or false.

AUTHOR
     MongoDB, Inc

COPYRIGHT
     2009-present, MongoDB, Inc.

1.30.8				  Aug 27, 2026	  MONGOC_READ_PREFS_SET_HEDGE(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=mongoc_read_prefs_set_hedge&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help