-
Notifications
You must be signed in to change notification settings - Fork 24
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
Save query without loading the data into R environment #630
Comments
Thanks, we need to document this better, and/or provide utilities. For now, you could use data_sql <- "..."
output_sql <- paste0("COPY (", data_sql, ") TO 'out.parquet' (FORMAT PARQUET, ...)")
dbExecute(con, output_sql) Upstream docs: https://duckdb.org/docs/sql/statements/copy#copy--to |
FYI, currently I am using:
I wonder if DBI package has some shortcuts for these functions. |
Thanks. This is out of scope for DBI, could be in scope for duckdb of for a utility package on top of duckdb. |
Another practice is:
I think we really need this sort of functions to implement out-of-memory computation. Thanks. |
I have a pretty large duckdb file and I use a query to generate a larger-than-memory data. How can I save this results elegantly without using
compute
to load the data into R environment (which might not be possible)?The text was updated successfully, but these errors were encountered: