MONGOC_BULKWR...EOPTS_SET_HINT(3)

okay bestie, this little page is MONGOC_BULKWR...EOPTS_SET_HINT(3) from the libmongoc manual, and itโ€™s here to explain one very specific โ€œplease use THIS indexโ€ moment ๐Ÿ’…โœจ

๐Ÿ’– SYNOPSIS ๐Ÿ’–

void
mongoc_bulkwrite_updateoneopts_set_hint (mongoc_bulkwrite_updateoneopts_t *self, const bson_value_t *hint);

๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

So this function specifies the index to use ๐Ÿ”ฅ. You get to specify either the index name as a string or the index key pattern, bestie.

If itโ€™s specified, then the query system will only consider plans using the hinted index ๐Ÿ‘‘. Thatโ€™s the whole vibe: youโ€™re telling the query system โ€œuse this index, iykykโ€ and itโ€™s literally only gonna look at plans with that hinted index ๐ŸŽ€.

Youโ€™re working with:

  • self โ€” the mongoc_bulkwrite_updateoneopts_t * bestie in question ๐Ÿซถ
  • hint โ€” the const bson_value_t * carrying your index name as a string or your index key pattern โœจ

๐ŸŒธ AUTHOR ๐ŸŒธ

MongoDB, Inc ๐Ÿ’œ

2009-present, MongoDB, Inc. โญ


signing off from the libmongoc 2.5.6 manual, dated Oct 09, 2026 โ€” bye bestie, go hint that index slayfully ๐Ÿฆ‹๐Ÿ’–

๐Ÿ“ฆ where this page comes from