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

nanodbc: more frugal with calls to SQLDescribeParam #816

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

detule
Copy link
Collaborator

@detule detule commented Jun 11, 2024

Fixes #814

It seems the SIMBA/Professional MSSQL driver does not faithfully return correct data when invoking SQLDescribeParam multiple times for the same index.

That aside, the commit below should be considered a performance improvement when writing large data sets and with a batch_size a fraction of the total number of rows as the API call is called only once for each column ( previously once per-column-per-batch ).

Copy link
Member

@hadley hadley left a comment

Choose a reason for hiding this comment

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

Can we capture this problem/fix with a test?

@detule
Copy link
Collaborator Author

detule commented Jun 12, 2024

Can we capture this problem/fix with a test?

We can write an easy test but it will only be effective once we have a pipeline for the PRO drivers. I'll make sure to do that once we have that in place.

@detule detule merged commit 865df6e into r-dbi:main Jun 12, 2024
15 of 16 checks passed
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.

MSSQL Server dbWriteTable fails without batch_row = nrow(value)
2 participants