English 中文(简体)
插入 star
原标题:Insert into a star-schema

I ve read a lot about star-schema s, about fact/deminsion tables, select statements to quickly report data, however the matter of data entry into a star-schema seems aloof to me. How does one "theoretically" enter data into a star-schema db? while maintaining the fact table. Is a series of INSERT INTO statement within giant stored proc with 20 params my only option (and how to populate the fact table). Many thanks.

最佳回答

首先——一个部分。 利用ECCD(Extract, Clean, Conform,liver)办法。

确保每个层面都有一个独一无二的“目标”的商务领域——例如个人电子邮件。

装满尺寸后,准备关键的ook线管道。 总的来说,就每个层面表而言,你可以编制一个关键的调查表(BusinessKey,MasterKey)。 一些设计者选择直接研究内容表,但关键评价往往很容易地被带入记忆,从而更快地装载事实。

利用ECCD作为事实数据。 幼儿中心部分在老化区发生,你可以选择(求助者)表或欧盟各步骤的统一档案,正如你所希望的那样。

在提供情况表的同时,将事实上的行文中的每一家企业替换为你们从一个关键平台上获得的对应小学。 一旦所有商业企业都用相应的初级企业取代,就在事实表中插入行文。

不要浪费时间,使用ETL工具。 您可以免费下载Pentaho Kettle(社区版)——这是实现这一点所需要的一切。

问题回答

页: 1 以同样方式将数据插入粗体图,即采用储存程序,在单一交易中插入/更新所有适当的表格。 认为星体通常是一种仅读取的数据模型――它(明显)以交易方式处理,而且通常用已经脱热的平坦数据处理——通常每 star一平。

正如Damir指出的,通常,你把所有层面(处理缓慢变化的等)放在一起,然后把事实加起来,结合到适当的现有层面,找到身份识别的方面(利用商业钥匙)。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签