odbc icon indicating copy to clipboard operation
odbc copied to clipboard

Saving sql queries without collecting it into memory

Open hope-data-science opened this issue 3 years ago • 1 comments

I have used dplyr and odbc to generate a query, and I do not want to collect it into R memory, instead I want to write it back into the connection. However, the dbWriteTable could not work. Is there any way I can do it?

The question has also been stated in here.

Thanks.

hope-data-science avatar Dec 13 '21 11:12 hope-data-science

In addition, if db_save_query could work, is there any way to operate data from different connections?

hope-data-science avatar Dec 13 '21 11:12 hope-data-science

You can use dbplyr::compute to do this: https://dbplyr.tidyverse.org/reference/collapse.tbl_sql.html

hadley avatar Apr 24 '23 14:04 hadley