-
Type:
Spec Change
-
Resolution: Unresolved
-
Priority:
Unknown
-
None
-
Component/s: Client Side Encryption
-
Needed
Summary
- Document the purpose of trimFactor and sparsity.
- Make trimFactor and sparsity optional. Apply defaults chosen in SERVER-91077 in libmongocrypt.
- Verify server default min/max values added in
SERVER-91075are applied client-side in libmongocrypt.
Motivation
trimFactor and sparsity are currently specified as required arguments in RangeOpts. trimFactor and sparsity are expected to be advanced configuration that most users would not know how to meaningfully change (see slack thread). Making them optional may ease usage. Documentation may help clarify that most users can leave these unset.
trimFactor is documented here:
- https://github.com/10gen/mongo/blob/master/src/mongo/db/modules/enterprise/docs/fle/fle_range.md#trim-factor
- https://docs.google.com/document/d/1099gEXs93NFtP6hNh_h5cIuKA05013Ll1hxPclVYyXo/edit#bookmark=id.lpqi4ys9xg3y
Is this issue urgent?
Yes. Should be done before Range GA (DRIVERS-2776).
- depends on
-
MONGOCRYPT-698 Make trimFactor and sparsity optional
-
- Blocked
-