简体   繁体   English

AWS Redshift对于PostgreSQL与AWS Aurora到MySQL是一样的吗?

[英]Is AWS Redshift to PostgreSQL the same as AWS Aurora to MySQL?

I struggle to understand if it would be a good idea to switch from PostgreSQL to Redshift with the same light heartedness one would shift from MySQL to Aurora. 我很难理解从PostgreSQL切换到Redshift是否是一个好主意,同样的轻松心态会从MySQL转移到Aurora。

Similarly to what AWS advertises about Aurora, people reported ~5x performance and more linear scalability as the datasets grow. 与AWS宣传的有关Aurora的内容类似,随着数据集的增长, 人们报告了大约5倍的性能和更多的线性可扩展性。

I could go and migrate my primary, latency sensitive PostgreSQL to Redshift and test it myself, but I thought I'd ask because I can't believe I'm the only one having thought of this. 我可以将我的主要,延迟敏感的PostgreSQL迁移到Redshift并自己测试,但我想我会问,因为我无法相信我是唯一一个想到这一点的人。

So, what's the gotcha? 那么,有什么问题?

Redshift is not PostgreSQL. Redshift 不是 PostgreSQL。 It is a column store engine that uses a very heavily modified part of a very old PostgreSQL version as its front-end. 它是一个列存储引擎,它使用非常古老的PostgreSQL版本中经过大量修改的部分作为其前端。 Under the hood it's powered by ParAccel , a very heavily modified fork of PostgreSQL 8.0.2. 在引擎盖下,它由ParAccel提供支持, ParAccel是PostgreSQL 8.0.2的一个经过大量修改的分支。

Imagine someone took MySQL 4.1 or something from that era, deleted InnoDB and MyISAM, added their own hardwired storage engine, removed a whole bunch of features and added a bunch of different ones - changing the supported SQL dialect in the process. 想象一下有人从那个时代开始使用MySQL 4.1或其他东西,删除了InnoDB和MyISAM,添加了他们自己的硬连线存储引擎,删除了一大堆功能并添加了许多不同的功能 - 在此过程中更改了支持的SQL方言。 That gives you some idea. 这给了你一些想法。

It's a dramatically different product for different needs. 对于不同的需求,它是一个截然不同的产品。 It's heavily optimised for OLAP workloads and pays a heavy price for OLTP workloads. 它针对OLAP工作负载进行了大量优化,并为OLTP工作负载付出了沉重的代价。

In general you should use PostgreSQL (on AWS RDS, or elsewhere) for your day to day transaction processing. 通常,您应该使用PostgreSQL(在AWS RDS或其他地方)进行日常事务处理。 If you want data warehousing and analytics and have outgrown PostgreSQL for that then you might consider Redshift as one of your options... though it's likely you haven't really outgrown PostgreSQL, just AWS RDS. 如果您想要数据仓库和分析并且已经超出了PostgreSQL,那么您可能会认为Redshift是您的选择之一......尽管您可能还没有真正超越PostgreSQL,只有AWS RDS。

Maybe you're looking for something more like Postgres-XL ? 也许您正在寻找更像Postgres-XL的东西?

The other answer is accurate regarding Redshift not being the PostgreSQL equivalent of Aurora. 另一个答案是准确的,关于Redshift不是PostgreSQL相当于Aurora。 Generally you'd use Redshift when you needed to run some very heavy queries on a large dataset (the stuff that might take hours or more to finish running). 通常,当您需要对大型数据集(可能需要数小时或更长时间才能完成运行)运行一些非常繁重的查询时,您将使用Redshift。 Redshift is a columnar datastore that essentially auto-normalizes every piece of data that comes in and can execute queries that would otherwise take days in seconds. Redshift是一个柱状数据存储区,它基本上可以自动规范化每个进入的数据,并且可以执行查询,否则这些查询将花费数天时间。 When you're done, you delete it and then repeat the process when you need it again. 完成后,将其删除,然后在需要时重复此过程。

In terms of getting an Aurora equivalent for PostgreSQL, I don't know how far off that is but I'm pretty sure an enterprising person could build their own with AWS EFS ( https://aws.amazon.com/efs/ ). 在获得PostgreSQL的Aurora等价物方面,我不知道这有多远,但我很确定一个有进取心的人可以使用AWS EFS构建自己的( https://aws.amazon.com/efs/ ) 。 I'm fairly certain that's a big part of the Aurora formula. 我很确定这是Aurora公式的重要组成部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 AWS PostgreSQL `找不到极光的版本 X` - AWS PostgreSQL `Cannot find version X for aurora` 从AWS Lake Formation连接Aurora PostgreSQL - Connect Aurora PostgreSQL from AWS Lake Formation 如何将数据从 AWS Aurora Postgres DB 导出到 Redshift? - How to export data from AWS Aurora Postgres DB to Redshift? 在AWS Redshift中将Pandas数据框保存到PostgreSQL服务器 - Saving a Pandas Dataframe to a PostgreSQL Server in AWS Redshift ca-central-1区域中不存在适用于PostgreSQL的AWS Aurora吗? - Is AWS Aurora for PostgreSQL not available in ca-central-1 region? AWS RDS Aurora PostgreSQL无服务器:如何将公共可访问性设置为是 - AWS RDS Aurora PostgreSQL serverless: How to set public accessibility to Yes AWS Aurora PostgreSQL - x509:由未知机构签署的证书 - AWS Aurora PostgreSQL - x509: certificate signed by unknown authority postgresql(aws redshift)错误1204字符串长度超过DDL长度 - postgresql(aws redshift) error 1204 String length exceeds DDL length 将数据从 PostgreSQL 移动到 AWS S3 并使用 RedShift Spectrum 进行分析 - Move data from PostgreSQL to AWS S3 and analyze with RedShift Spectrum 在 AWS Aurora/postgres 上收听/通知 - LISTEN/NOTIFY on AWS Aurora/postgres
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM