Add throughputBucket support to Cosmos computation expressions#20
Draft
Copilot wants to merge 9 commits into
Draft
Add throughputBucket support to Cosmos computation expressions#20Copilot wants to merge 9 commits into
throughputBucket support to Cosmos computation expressions#20Copilot wants to merge 9 commits into
Conversation
* Added detailed project overview, solution structure, library list, and comprehensive F# coding guidelines. * Included language preferences, nullable reference type handling, class instantiation rules, extension member patterns, naming conventions, and testing requirements. * Replaced previous brief instructions with a thorough, structured guide.
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Azure.Cosmos/sessions/f67ab9f4-acc6-4bf1-a3e2-ee6632c48d33 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Agent-Logs-Url: https://github.com/fsprojects/FSharp.Azure.Cosmos/sessions/f67ab9f4-acc6-4bf1-a3e2-ee6632c48d33 Co-authored-by: xperiandri <2365592+xperiandri@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add throughput bucket operation on CEs
Add May 23, 2026
throughputBucket support to Cosmos computation expressions
4e9ebae to
0eef905
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Azure Cosmos DB throughput buckets can be set per request, but the library’s computation expressions did not expose that capability. This change adds
throughputBucketto the CE surface so request-level bucket selection can be composed the same way as the existing request options.CE surface
throughputBucketcustom operations to request-option-based builders:create/createAndReadreplace/replaceAndReadreplaceConcurrenly/replaceConcurrenlyAndReadupsert/upsertAndReadupsertConcurrenly/upsertConcurrenlyAndReaddeletereadreadManypatch/patchAndReadRequest option wiring
RequestOptions.ThroughputBucketvalue across the supported request option types.delete,read,readMany) now initialize options whenthroughputBucketis specified.Coverage
Example: