MONGOC_CLIENT_...S_SET_SPARSITY(3)
π MONGOC_CLIENT_...S_SET_SPARSITY(3) π
Okay bestie, welcome to the libmongoc corner π This one is all about setting sparsity on your range encryption opts, and yes, the vibes are very βniche but important.β Letβs get into it.
β¨ SYNOPSIS β¨
void
mongoc_client_encryption_encrypt_range_opts_set_sparsity (
mongoc_client_encryption_encrypt_range_opts_t *range_opts, int64_t sparsity);
β¨ New in version 1.24.0. β¨
This function sets sparsity for explicit encryption. It only applies when the algorithm set by mongoc_client_encryption_encrypt_opts_set_algorithm() is "Range". It is an error to set sparsity when the algorithm is not "Range".
π¨ Bestie, read that again: setting sparsity when the algorithm is not "Range" is an error. Not a vibe. Not a warning. An error.
Sparsity may be used to tune performance. When omitted, a default value is used.
Sparsity must match the value set in the encryptedFields of the destination collection. It is an error to set a different value.
π So yes, it has to match. This is not a βclose enoughβ situation. A different value is an error.
πΈ PARAMETERS πΈ
range_optsβ amongoc_client_encryption_encrypt_range_opts_tsparsityβ a non-negative sparsity.
π«Ά SEE ALSO π«Ά
mongoc_client_encryption_encrypt_range_opts_t
β¨ AUTHOR β¨
MongoDB, Inc
π COPYRIGHT π
2009-present, MongoDB, Inc.
Bye bestie π this libmongoc page is version 2.5.6, dated Oct 09, 202 (the footer literally cuts off there, no cap π). Mwah! π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms