Skip to content

feat(spanner): add option for DataBoost#5447

Open
olavloite wants to merge 1 commit intogoogleapis:mainfrom
olavloite:spanner-data-boost
Open

feat(spanner): add option for DataBoost#5447
olavloite wants to merge 1 commit intogoogleapis:mainfrom
olavloite:spanner-data-boost

Conversation

@olavloite
Copy link
Copy Markdown
Contributor

Adds an option to use DataBoost with partitioned queries and partitioned reads.

@olavloite olavloite requested review from a team as code owners April 17, 2026 10:09
@product-auto-label product-auto-label bot added the api: spanner Issues related to the Spanner API. label Apr 17, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 17, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.74%. Comparing base (5b31877) to head (992138e).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5447   +/-   ##
=======================================
  Coverage   97.74%   97.74%           
=======================================
  Files         216      216           
  Lines       47572    47636   +64     
=======================================
+ Hits        46501    46564   +63     
- Misses       1071     1072    +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Adds an option to use DataBoost with partitioned queries and partitioned reads.
@olavloite olavloite force-pushed the spanner-data-boost branch from 890f875 to 992138e Compare April 17, 2026 10:21
/// // On a worker receiving a partition, execute it with Data Boost:
/// let options = PartitionExecuteOptions::default()
/// .with_data_boost(true);
/// let mut result_set = partitions[0].execute(&db_client, options).await?;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We tend to use builders so applications don't have to supply default options everywhere.

Maybe like p.execute(&db_client).set_data_boost(true).send().await

Thoughts?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: spanner Issues related to the Spanner API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants