r - dplyr sql -- reading from multiple schemas without copy == TRUE -


i have large tables in 2 different schemas inside same greenplum postgresql database want join using dplyr. cannot provide reproducible example because involves proprietary data, can provide code (with names suitably changed).

in sql

select column_name(s) schema1.table1 inner join schema2.table2 on schema1.table1.column_name=schema2.table2.column_name; 

using dplyr,

my_db <- src_postgres(host = "s.net", user = "id",password = "xxx",dbname="db1",  options="-c search_path=schema1")  my_db_src <- src_postgres(host = "s", user = "id", password = "xxx", dbname="db1",  options="-c search_path=schema2")   tbl1 <- tbl(my_db, "table1") tbl1 <- tbl(my_db_src, "table2") cc_compare <- inner_join(tbl1 ,tbl2,by="customerid",copy=true) 

i'd join them in dplyr without using copy == true, takes long time. can dplyr accomplish , if how?


Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -