Skip to content

Commit

Permalink
Revert "fix: set databoost false (googleapis#928)"
Browse files Browse the repository at this point in the history
This reverts commit c9ed9d2.
  • Loading branch information
gauravpurohit06 authored Jul 20, 2023
1 parent a973a3a commit 02e8aca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion samples/samples/batch_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def run_batch_query(instance_id, database_id):
# A Partition object is serializable and can be used from a different process.
# DataBoost option is an optional parameter which can also be used for partition read
# and query to execute the request via spanner independent compute resources.
data_boost_enabled=False,
data_boost_enabled=True,
)

# Create a pool of workers for the tasks
Expand Down
4 changes: 2 additions & 2 deletions tests/system/test_session_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1890,7 +1890,7 @@ def test_partition_read_w_index(sessions_database, not_emulator):
columns,
spanner_v1.KeySet(all_=True),
index="name",
data_boost_enabled=False,
data_boost_enabled=True,
)
for batch in batches:
p_results_iter = batch_txn.process(batch)
Expand Down Expand Up @@ -2507,7 +2507,7 @@ def test_partition_query(sessions_database, not_emulator):
all_data_rows = set(_row_data(row_count))
union = set()
batch_txn = sessions_database.batch_snapshot(read_timestamp=committed)
for batch in batch_txn.generate_query_batches(sql, data_boost_enabled=False):
for batch in batch_txn.generate_query_batches(sql, data_boost_enabled=True):
p_results_iter = batch_txn.process(batch)
# Lists aren't hashable so the results need to be converted
rows = [tuple(result) for result in p_results_iter]
Expand Down

0 comments on commit 02e8aca

Please sign in to comment.