Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copying a table from one redshift cluster to another redshift cluster(without using s3)

Can we directly copy a table from one redshift cluster to another redshift cluster?

I know table copying can be achieved using s3 as temp storage(i.e. unload to s3 from first cluster and then copy from s3 to another cluster).

like image 586
Prakash Avatar asked May 05 '15 08:05

Prakash


People also ask

How do I clone a Redshift database?

You can duplicate or "clone" a Redshift table's contents by executing a CREATE TABLE ... AS SELECT statement: CREATE TABLE new_table AS SELECT * FROM original_table; Please be careful when using this to clone big tables.

What is the most efficient and fastest way to load data into Redshift?

A COPY command is the most efficient way to load a table. You can also add data to your tables using INSERT commands, though it is much less efficient than using COPY. The COPY command is able to read from multiple data files or multiple data streams simultaneously.


1 Answers

Depending on your reason for wanting to copy the table, the best solution may now be to use Redshift data sharing: https://docs.aws.amazon.com/redshift/latest/dg/datashare-overview.html

Assuming the prerequisites are met, this will allow you to make a table available to read in another Redshift cluster.

like image 163
durkules Avatar answered Oct 12 '22 11:10

durkules