Indexes, foreign keys, primary keys, and arrays are not supported in Redshift. The distribution key, which determines how your data is distributed across the cluster, is a very important part of the schema definition. Check all queries for the table and choose the column that gets joined most frequently for the distribution key to get the best performance. You can only specify one distribution key and if you are joining against multiple columns on a large scale, you might notice a performance degradation. Also, specify the columns your range queries use the most as sort key on your table (can be multi columns in sort key), as it will help with the performance.
Blog posts to help enterprises run applications in the cloud. Entries on cloud migrations as Fortune 1000 companies embark on migrating to the cloud.
Showing posts with label foreign. Show all posts
Showing posts with label foreign. Show all posts
Tuesday, July 23, 2013
Friday, May 17, 2013
Redshift key constraints
Primary keys are not enforce by Redshift. Must be enforced by the application:
Labels:
aws,
constraints,
duplicate,
foreign,
key,
primary key,
redshift,
unique key
Subscribe to:
Posts (Atom)