WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Conversation

@qingyang-hu
Copy link
Collaborator

GODRIVER-3540

Summary

Support Prefix/Suffix/Substring Indexes.

Background & Motivation

@mongodb-drivers-pr-bot
Copy link
Contributor

mongodb-drivers-pr-bot bot commented Dec 10, 2025

🧪 Performance Results

Commit SHA: 745bce1

The following benchmark tests for version 693cb73662d77f0007a23074 had statistically significant changes (i.e., |z-score| > 1.96):

Benchmark Measurement % Change Patch Value Stable Region H-Score Z-Score
BenchmarkBSONFlatDocumentDecoding ops_per_second_min -45.2537 1184.3851 Avg: 2163.4048
Med: 2283.7568
Stdev: 465.7905
0.7841 -2.1018
BenchmarkBSONDeepDocumentEncoding ops_per_second_min -43.8614 1910.1759 Avg: 3402.6082
Med: 3422.4306
Stdev: 509.7794
0.8193 -2.9276
BenchmarkMultiInsertSmallDocument total_mem_allocs 11.1619 2629051.0000 Avg: 2365063.9000
Med: 2335262.5000
Stdev: 78354.4446
0.8481 3.3691
BenchmarkMultiInsertSmallDocument total_time_seconds 11.0186 1.1768 Avg: 1.0600
Med: 1.0464
Stdev: 0.0458
0.8105 2.5489
BenchmarkMultiInsertSmallDocument total_bytes_allocated 9.4519 497844112.0000 Avg: 454851882.4762
Med: 453022868.0000
Stdev: 15828018.8365
0.7965 2.7162
BenchmarkBSONDeepDocumentEncoding total_time_seconds -3.1724 1.1562 Avg: 1.1941
Med: 1.1944
Stdev: 0.0092
0.8776 -4.1393

For a comprehensive view of all microbenchmark results for this PR's commit, please check out the Evergreen perf task for this patch.

@mongodb-drivers-pr-bot
Copy link
Contributor

API Change Report

./v2/mongo/options

compatible changes

(*EncryptOptionsBuilder).SetTextOptions: added
EncryptOptions.TextOptions: added
PrefixOptions: added
SubstringOptions: added
SuffixOptions: added
Text: added
TextOptions: added
TextOptionsBuilder: added

./v2/x/mongo/driver/mongocrypt/options

compatible changes

(*ExplicitEncryptionOptions).SetTextOptions: added
ExplicitEncryptionOptions.TextOptions: added
ExplicitTextOptions: added
PrefixOptions: added
SubstringOptions: added
SuffixOptions: added

@github-actions github-actions bot added the review-priority-normal Medium Priority PR for Review: within 1 business day label Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-priority-normal Medium Priority PR for Review: within 1 business day

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant