简体   繁体   中英

How big is too big size for table in AWS Redshift

当前,我们的表大小之一是5亿行(35列),并且我们正在尝试确定在影响该表上的查询性能之前,该表可以有多大?

Performance cannot be measured like rows*columns.

It depends on the data types, joins, aggregations, etc. Your query performance can be drastically improved, for example, by creating int keys (adding columns) instead of char/varchar keys if used in joins.

An important addition to @vtuhtan 's answer : enable compression. Create tables with compression enabled for various data types - lzo, runlength etc. Proper compression type is also suggested by Redshif on tables with ANALYZE COMPRESSION SQL command. This reduces the read throughput and drastically increases your query performance. This will also make the table consume less storage space.

Doc on analyzing compression enabled tables

Loading tables with compression.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM