Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add option for partitioned COPY TO STDOUT #2227

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

olavloite
Copy link
Collaborator

Adds the setting 'spanner.copy_partition_query=true|false' to enable/disable the use of PartitionQuery for COPY TO STDOUT operations. Using PartitionQuery can improve the throughput when reading large amounts of data. However, the additional roundtrips and additional complexity of partitioning a query can be less efficient for smaller queries. This option allows the user to determine whether PGAdapter should try to use PartitionQuery or not.

The default is true.

Fixes #2224

Adds the setting 'spanner.copy_partition_query=true|false' to enable/disable the
use of PartitionQuery for COPY TO STDOUT operations. Using PartitionQuery can
improve the throughput when reading large amounts of data. However, the
additional roundtrips and additional complexity of partitioning a query can be
less efficient for smaller queries. This option allows the user to determine
whether PGAdapter should try to use PartitionQuery or not.

The default is true.

Fixes #2224
@olavloite olavloite merged commit b320eff into postgresql-dialect Aug 27, 2024
43 checks passed
@olavloite olavloite deleted the make-copy-partition-query-optional branch August 27, 2024 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make PartitionQuery optional for COPY TO STDOUT
1 participant