Copyright 2007, Information Builders. Slide 1 XFOC Databases: If You Build Them, They will Come Noreen Redden FOCWizard June, 2008.

Slides:



Advertisements
Similar presentations
Introductory to database handling Endre Sebestyén.
Advertisements

Database Relationships in Access As you recall, the data in a database is stored in tables. In a relational database like Access, you can have multiple.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2.1: Relational Databases.
Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
1 Noreen Redden FOCUS Users of New England 2012 MFD_PROFILE PROFILE for Your Synonym:
Copyright 2007, Information Builders. Slide 1 Relational Efficiencies: Part II Overview and JOIN / Sort Scenarios Renee Teatro Information Builders.
Copyright 2007, Information Builders. Slide 1 Walter Brengel Information Builders New Jersey User Forum – June 2008 FOCUS to SQL DeMystified.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
File Management Chapter 12. File Management A file is a named entity used to save results from a program or provide data to a program. Access control.
Database A collection of related information stored on a computer and organized in a manner that allows access, retrieval, and use of that data.
PowerPoint Presentation for Dennis & Haley Wixom, Systems Analysis and Design Copyright 2000 © John Wiley & Sons, Inc. All rights reserved. Slide 1 Key.
Chapter 12 File Management
1 File Management Chapter File Management File management system consists of system utility programs that run as privileged applications Input to.
1 DN Copyright © 1998 Information Builders, Inc. Fusion: Migrating from Focus Tim Feetham NORCAL FUSE June 11, 1999.
File Management.
CHAPTER 3 DATABASES AND DATA WAREHOUSES. 3-2 STUDENT LEARNING OUTCOMES 1.Describe business intelligence and its role 2.Compare databases and data warehouses.
File Management Chapter 12.
File Management Chapter 12. File Management File management system is considered part of the operating system Input to applications is by means of a file.
Copyright 2007, Information Builders. Slide 1 Tips and Techniques for FOCUS 76 Did You Know? Walter F. Blood Information Builders, Inc.
Technology in Action Alan Evans Kendall Martin Mary Anne Poatsy Twelfth Edition.
TM 7-1 Copyright © 1999 Addison Wesley Longman, Inc. Physical Database Design.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
 A database is a collection of data that is organized so that its contents can easily be accessed, managed, and updated. What is Database?
Introduction to Microsoft Access Overview 1. Introduction What is Access? A relational database management system What is a Relational Database? Organized.
1 Access for non-experts Link tables Find fields Criteria Join tables Find missing comment lines Understand relational databases (Wow!)
Off To See The Wizards: The FOCWIZARDS FOCWIZARDS: Noreen Redden Art Greenhaus With help from FOCAL POINT Wizards Copyright 2011, Information Builders.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
WEEK 11 Database Design. TABLE INSTANCE CHARTS Create Tables.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
11 3 / 12 CHAPTER Databases MIS105 Lec15 Irfan Ahmed Ilyas.
BI Terminologies.
Designing Aggregations. Performance Fundamentals - Aggregations Pre-calculated summaries of data Intersections of levels from each dimension Tradeoff.
Decision Support and Date Warehouse Jingyi Lu. Outline Decision Support System OLAP vs. OLTP What is Date Warehouse? Dimensional Modeling Extract, Transform,
Database Management COP4540, SCS, FIU Physical Database Design (ch. 16 & ch. 3)
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Memory Management during Run Generation in External Sorting – Larson & Graefe.
Dimensional Modelling
Introduction to Databases. What is a database?  A database program is nothing more than an electronic version of a 3x5 card file  A database is defined.
Copyright 2007, Information Builders. Slide 1 Flex your Dashboard Muscle with WebFOCUS Flex Enable John Gogoly Senior Systems Engineer June, 2008.
Chapter 4 Logical & Physical Database Design
Business Intelligence Training Siemens Engineering Pakistan Zeeshan Shah December 07, 2009.
JOIN Syntax and Techniques Noreen Redden Information Builders Copyright 2011, Information Builders. Slide 1.
Copyright 2007, Information Builders. Slide 1 TABLE FILE: The Basics Noreen Redden FOCWizard June, 2008.
Copyright 2007, Information Builders. Slide 1 Cesare Petrizio June, 2008 The File Is Too Large.
The Need for Data Analysis 2 Managers track daily transactions to evaluate how the business is performing Strategies should be developed to meet organizational.
Database (Microsoft Access). Database A database is an organized collection of related data about a specific topic or purpose. Examples of databases include:
Copyright © 2010 The HDF Group. All Rights Reserved1 Data Storage and I/O in HDF5.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Databases Chapter 9 Asfia Rahman.
Module 11: File Structure
Indexes By Adrienne Watt.
Information from Evolving Data
Physical Database Design and Performance
Unit 16 – Database Systems
Chapter Ten Managing a Database.
Database Management Systems
Star Schema.
Database Implementation Issues
Physical Database Design
Typically data is extracted from multiple sources
Business Intelligence
Variable Length Data and Records
Access Tutorial 2 Building a Database and Defining Table Relationships
ICOM 5016 – Introduction to Database Systems
ICT Database Lesson 2 Designing a Database.
ESRM 250/CFR 520 Autumn 2009 Phil Hurvitz
Database Implementation Issues
Best Practices in Higher Education Student Data Warehousing Forum
Presentation transcript:

Copyright 2007, Information Builders. Slide 1 XFOC Databases: If You Build Them, They will Come Noreen Redden FOCWizard June, 2008

Copyright 2007, Information Builders. Slide 2 Agenda  XFOC Databases  Sizing Considerations  Number of Instances / page  4 Times Bigger ?  Efficiencies  Multiple Partitions  Horizontal and Vertical  Intelligent Partitioning  MDI (Multi-Dimensional Index)  Why use it vs. regular External Index  Components  ACCESS File  Building/Adding to MDI

Copyright 2007, Information Builders. Slide 3 XFOC Databases The Data Warehouse

Copyright 2007, Information Builders. Slide 4 XFOC Databases – Sizing Considerations  General:  Pages contain instances of a single SEGMENT, specific internal index, or values of text fields.  Page 1 contains ONLY the FDT  Page is 16K, with a maximum of 1K pages (maximum size of partition is 16gig.  Segment instances contain:  Pointer (at beginning of page) to point to specific instance on page  Pointer from instance to instance (chain, Parent to child, Child to parent)  Data Storage

Copyright 2007, Information Builders. Slide 5 XFOC Databases – Sizing Considerations  Segment Instances – Data Storage  Alpha (An)n bytes  Variable Alpha (AnV)n bytes + 2 for length  Integer 4 bytes  Packed8 or 16 packed bytes  Float Single Precision4  Float Double Precision8  Text8 byte pointer on Seg + actual length on text pages)

Copyright 2007, Information Builders. Slide 6 XFOC Databases – EX CALCFILE SegmentPopulationFOC 4K PagesXFOC 16K Pages FDT N/A1 ORIGIN1,00052 COMP5, CARREC50, BODY100,0001, SPECS100, WARANT40, EQUIP75, COUNTRY INDEX 1,00093

Copyright 2007, Information Builders. Slide 7 XFOC Database - Efficiencies  For maximum efficiency, a chain of child instances should be able to be accessed in a single I/O.  Use Unique Segments to isolate infrequently used fields.  Partition historical data to reduce I/O needed for UPDATE.  Build/rebuild internal indexes AFTER large updates/loads  Increase XFBINs to increase page re-utilization.  Use Partitions to reduce the need to REBUILD external indexes/MDI’s

Copyright 2007, Information Builders. Slide 8 Vertical Partitioning

Copyright 2007, Information Builders. Slide 9 Intelligent Partitioning GGSALES FIELDNAME ALIAS FORMAT SEQ_NO SEQ I6 CATEGORY E02 A11 PCD E03 A04 PRODUCT E04 A16 REGION E05 A11 ST E06 A02 CITY E07 A20 STCD E08 A05 DATE E09 I8YYMD UNITS E10 I08 DOLLARS E11 I08 BUDUNITS E12 I08 BUDDOLLARS E13 I08

Copyright 2007, Information Builders. Slide 10 Intelligent Partitioning USE DYNAM ALLOC F GGSALES1 DA PMSNMR.GGSLS2K.FOCUS SHR REU DYNAM ALLOC F GGSALES2 DA PMSNMR.GGSALES.FOCUS SHR REU USE -IF &MDATE.ENTER LOWEST DATE FOR REPORT. GT GOTO NOT1; GGSALES2 AS GGSALES -NOT1 -IF &MDATE.ENTER HIGHEST DATE FOR REPORT. LT GOTO ENDIT GGSALES1 AS GGSALES -ENDIT END

Copyright 2007, Information Builders. Slide 11 Intelligent Partitioning ACCESS File Points to the FOCUS Files MASTER=GGSALES,$ DATA = PMSNMR.GGSLS2K.FOCUS, WHERE = DATE FROM TO ,$ DATA = PMSNMR.GGSALES.FOCUS, WHERE = DATE FROM TO ,$ FILENAME=GGSALES, SUFFIX=XFOC, ACCESS=GGSALES,$ SEGNAME=SALES01, SEGTYPE=S1 FIELD=SEQ_NO, ALIAS=SEQ, FORMAT=I6, TITLE='SEQUENCE#', $ FIELD=CATEGORY, ALIAS=E02, FORMAT=A11, INDEX=I, TITLE='Category', $ FIELD=PCD, ALIAS=E03, FORMAT=A04, INDEX=I, TITLE='Product ID', $ FIELD=PRODUCT, ALIAS=E04, FORMAT=A16, TITLE='Product',$ FIELD=REGION, ALIAS=E05, FORMAT=A11, INDEX=I, TITLE='Region', $ FIELD=ST, ALIAS=E06, FORMAT=A02, INDEX=I, TITLE='State', DESC='State',$ FIELD=CITY, ALIAS=E07, FORMAT=A20, TITLE='City', DESC='City',$ FIELD=STCD, ALIAS=E08, FORMAT=A05, INDEX=I, TITLE='Store ID', $ FIELD=DATE, ALIAS=E09, FORMAT=I8YYMD, TITLE='Date', $

Copyright 2007, Information Builders. Slide 12 Tip with Partitions  MODIFY/MAINTAIN only use the first partition.  External indexes must be rebuilt if the file changes.  Keep 2 MFDs: GGSALES (with ACCESS) ; GGSALE2 MODIFY FILE GGSALE2 … END TABLE FILE GGSALE2 … WHERE … MORE FILE GGSALES END

Copyright 2007, Information Builders. Slide 13 XFOC Databases

Copyright 2007, Information Builders. Slide 14 MDI – Multi-Dimensional Index  Dimensions categorize data –  Sales may be categorized by REGION, BRANCH and PRODUCT Type,  Products may be categorized by PRODUCT CATEGORY, PRODUCT CODE, SIZE, COLOR  Employees may be categorized by Job code, Hire_date, Branch, etc.  A multi-dimensional index uses dimensions to point to specific facts.  MDI is a multi-field index to behave like a virtual “cube” of values that intersect at measures of interest. The more dimensions used, the better the retrieval performance.  MDIs may be used for Selection, JOIN, or reported from directly.

Copyright 2007, Information Builders. Slide 15 MDI – Multi-Dimensional Index  Know Your Data, and queries to choose index dimensions:  Fields used frequently as filters (Multiple fields used as filters within a single report/query should be in the same MDI.  Fields used as basis for vertical portioning  DEFINE fields  Fields with many unique values  Multiple MDIs may be created for separate subsets of data.  In a query, AUTOINDEX will choose the MDI to use based on  Segment most involved in the query  MDI with the most filtering conditions  Percent of index dimensions involved in the request from each MDI  Size of each MDI.

Copyright 2007, Information Builders. Slide 16 Intelligent Partitioning GGSALES FIELDNAME ALIAS FORMAT SEQ_NO SEQ I6 CATEGORY E02 A11 PCD E03 A04 PRODUCT E04 A16 REGION E05 A11 ST E06 A02 CITY E07 A20 STCD E08 A05 DATE E09 I8YYMD UNITS E10 I08 DOLLARS E11 I08 BUDUNITS E12 I08 BUDDOLLARS E13 I08

Copyright 2007, Information Builders. Slide 17 ACCESS File Points to the MDIS MASTER=GGSALES,$ DATA = PMSNMR.GGSLS2K.FOCUS, WHERE = DATE FROM TO ,$ DATA = PMSNMR.GGSALES.FOCUS, WHERE = DATE FROM TO ,$ MDI=GGMDI, TARGET_OF=SALES01,$ DIM=CATEGORY,MAXVALUE = 100,$ DIM=PCD,MAXVALUE = 50, WITHIN=CATEGORY,$ DIM=REGION,MAXVALUE = 20,$ DIM=ST,MAXVALUE = 20, WITHIN=REGION,$ DIM=CITY,MAXVALUE = 20, WITHIN = ST,$ DIM=STCD,MAXVALUE = 20, WITHIN=CITY,$ DIM=DATE,MAXVALUE = 240,$ MDIDATA= PMSNMR.GGMDI1.FOCUS,$ MDIDATA= PMSNMR.GGMDI2.FOCUS,$

Copyright 2007, Information Builders. Slide 18 ACCESS File Points to the MDIS MDI=GGLOC, TARGET_OF=SALES01,$ DIM=REGION,MAXVALUE = 20,$ DIM=ST,MAXVALUE = 20, WITHIN=REGION,$ DIM=CITY,MAXVALUE = 20, WITHIN = ST,$ DIM=STCD,MAXVALUE = 20, WITHIN=CITY,$ DIM=DATE,MAXVALUE = 240,$ MDIDATA= PMSNMR.GGLOC1.FOCUS,$ MDIDATA= PMSNMR.GGLOC2.FOCUS,$

Copyright 2007, Information Builders. Slide 19 Creating the MDI - REBUILD Enter option 1. REBUILD (Optimize the database structure) 2. REORG (Alter the database structure) 3. INDEX (Build/modify the database index) 4. EXTERNAL INDEX (Build/modify an external index database) 5. CHECK (Check the database structure) 6. TIMESTAMP (Change the database timestamp) 7. DATE NEW (Convert old date formats to smartdate formats) 8. MDINDEX (Build/modify a multidimensional index) MDINDEX NEW / ADD ? NEW ENTER MASTER FILE NAME GGSALES ENTER MD_INDEX LOCATION FILE NAME GGMDI ANY RECORD SELECTION TESTS? (YES/NO) NO NEW FILE PMSNMR.GGMDI1.FOCUS ON 04/09/2008 AT NEW FILE PMSNMR.GGMDI2.FOCUS ON 04/09/2008 AT Accumulating MDI Data....

Copyright 2007, Information Builders. Slide 20 Adding a Partition - REBUILD Enter option 1. REBUILD (Optimize the database structure) 2. REORG (Alter the database structure) 3. INDEX (Build/modify the database index) 4. EXTERNAL INDEX (Build/modify an external index database) 5. CHECK (Check the database structure) 6. TIMESTAMP (Change the database timestamp) 7. DATE NEW (Convert old date formats to smartdate formats) 8. MDINDEX (Build/modify a multidimensional index) MDINDEX NEW / ADD ? ADD ENTER MASTER FILE NAME GGSALES ENTER MD_INDEX LOCATION FILE NAME GGMDI ANY RECORD SELECTION TESTS? (YES/NO) NO NEW FILE PMSNMR.GGMDI1.FOCUS ON 04/09/2008 AT NEW FILE PMSNMR.GGMDI2.FOCUS ON 04/09/2008 AT Accumulating MDI Data....

Copyright 2007, Information Builders. Slide 21 Comparing TABLE FILE GGSALES PRINT * BY REGION BY ST WHERE REGION EQ 'Northeast' WHERE DATE EQ ' ' WHERE ST EQ 'NY' WHERE PRODUCT EQ 'Capuccino‘ END AUTOINDEXYES (REGION)GGMDI RECORDS33 BASEIO FOCCPU INDEXIO ,000 RECORDS

Copyright 2007, Information Builders. Slide 22 MDI – Other Facilities  JOIN field1 [AND field2…] IN file1 TO ALL mdiname IN file2 AS joinname  JOIN field1 [AND field2 …] IN file1 TO ALL dim1 [AND dim2 …] IN file2 AS joinname  Read Just the MDI  Must have MAXVALUES in the ACCESS.  Uses WITHIN in ACCESS to define hierarchies  SET MDIOENCODING = ON  TABLE FILE filename.mdiname request ON TABLE SET MDIENCODING ON END

Copyright 2007, Information Builders. Slide 23 Working with New Structures: Questions?