- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
TheThinkingPerson’sGuidetoDataWarehouseDesignPresentation
Agenda What is the key component for success? First – get/use a modeling tool The logical design for OLTP Simple reporting databases The logical design for analytics/data warehousing Logical Design Considerations Manual horizontal partitioning Manual Vertical Partitioning Pro’s/con’s to manual partitioning The bottom line on logical modeling General list of top BI database design decisions Divide conquer is the best approach Divide conquer via sharding What technologies you should be looking at Row or column-based engine? Column vs. row orientation Example: InfiniDB vs. “Leading” row DB Why not use both…? Why not use both…? Most used DW Storage engines internal to MySQL What about NoSQL options? Partitioning – not ‘if’ but ‘how’ mysql CREATE TABLE part_tab - ( c1 int ,c2 varchar(30) ,c3 date ) - PARTITION BY RANGE (year(c3)) (PARTITION p0 VALUES LESS THAN (1995), - PARTITION p1 VALUES LESS THAN (1996) , PARTITION p2 VALUES LESS THAN (1997) , - PARTITION p3 VALUES LESS THAN (1998) , PARTITION p4 VALUES LESS THAN (1999) , - PARTITION p5 VALUES LESS THAN (2000) , PARTITION p6 VALUES LESS THAN (2001) , - PARTITION p7 VALUES LESS THAN (2002) , PARTITION p8 VALUES LESS THAN (2003) , - PARTITION p9 VALUES LESS THAN (2004) , PARTITION p10 VALUES LESS THAN (2010), - PARTITION p11 VALUES LESS THAN MAXVALUE ); mysql create table no_part_tab (c1 int,c2 varchar(30),c3 date); *** Load 8 million rows of data into each table *** mysql select count(*) from no_part_tab where c3 date 1995-01-01 and c3 date 1995-12-31; +----------+ | count(*) | +----------+ | 795181 | +----------+ 1 row in set (38.30 sec) mysql select count(*) from part_tab where c3 date 1995-01-01 and c3 date 1995-12-31; +----------+ | count(*) | +----------+ | 795181 | +----------+ 1 row in set (3.88 sec) Partitioning – Stripe your Partitions CREATE TABLE T1 (col1 INT, col2 CHAR(5), col3 DATE) ENGINE=MYISAM PARTITION BY HASH(col1) (
您可能关注的文档
最近下载
- 浙江省七彩阳光新高考研究联盟2024-2025学年高二上学期11月期中考试语文试题 含解析.docx VIP
- 《企业内部控制问题研究—以天方医药为例(论文)》11000字.docx VIP
- 双特变速器培训.pptx
- 助产技术平产接生教案.pdf VIP
- 浙江省七彩阳光新高考研究联盟2024-2025学年高二上学期11月期中联考数学试题含解析.docx VIP
- 青岛地铁笔试历年真题.pdf
- 从农业大国到农业强国.doc VIP
- 上海市虹口区新复兴中学2024—2025学年上学期期中考试九年级数学试卷.docx VIP
- 浙江省七彩阳光新高考研究联盟2024-2025学年高二上学期11月期中联考化学试题含解析.pdf VIP
- 浙江省七彩阳光新高考研究联盟2024-2025学年高二上学期11月期中物理试题含解析.docx VIP
原创力文档


文档评论(0)