简体   繁体   中英

Using a regular database as a data warehouse

Can anyone tell me what the implications are when attempting to use a regular database as a data warehouse?

I understand a data warehouse is known for storing data in a more structured manner however what's the implication of using a standard database to achieve the same result? Can we not just create a regular database table with structured data as it would reside in a data warehouse?

Data structure is not the issue - optimization is.

OLTP databases like SQLS are optimized to reliably record transactions. They store data as records, and extensively use disk I/O.

BI databases like Redshift or Teradata are optimized to query data. They store data as columns, and often are in-memory only (no disk I/O).

As a result, traditional databases are better at getting data in, while BI databases are better at getting data out (both platforms are trying to mitigate their weaknesses, so the difference is blurring).

Practically speaking, you can use regular databases like SQLS to build a data warehouse without any problems, unless your needs are special:

  • Data size is large (billions of records)
  • Refresh rate is high (hour/minute/real time)
  • You intend to use live connection from BI tools like Tableau or PowerBI (as opposed to loading data extract into them)
  • Your queries are highly complex and computationally intensive

You can also combine both platforms. Import, process, integrate and store data in a regular database, and then convert it into a star schema (dimensional model) and publish it to a BI database (ie, keep normalized data in SQLS and publish star schema to Redshift).

If you intend to import data into BI tools like Tableau or PowerBI, then you can safely use any traditional database, because they rely on their internal engines and using BI database won't give you any advantages.

数据仓库中也会有冗余或重复的数据,而不是您在常规数据库中寻找的数据

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