design of table size question of data modeling

Hi Experts,
Sorry if I put my question in a wrong forum please suggest an appropriate forum.

need your opinion on the current design of our data warehouse of 10 years.
There is a dimension table with the structure as follows

Dimension table
--------------------
Number of dimension key (THIS IS NOT a PRIMARY KEY)
Natural key (from source) number
the source name character
current record indicator e Char (1)
date of form_date
TO_DATE date
several other columns, which, if change a new current record is created and the previous one is marked as H-historical

Data are stored in the table of size like this
Dimension_key natural key Source name current record ind from_date to to_date
1 10001 Source1: 1 January 2005 May 31, 2005
1 10001 Source1: 1 - jun - 20005 12-dec-2011
1 10001 Source1 C 13-dec-2011 NULL

2 20002 Source1: 1 - jun - 20001 12-dec-2011
2 20002 Source1 C 13-dec-2011 NULL

The problem I see in this design is that if any attribute is changed there is no surrogate key, the new record is inserted first taking the key dimension based on the (natural_key, source_name, current_record_ind).
Shouldn't it be kept as follows based on the principles of data warehousing.

Dimension_key natural key Source name current record ind from_date to to_date
1 10001 Source1: 1 January 2005 May 31, 2005
2 10001 Source1: 1 - jun - 20005 12-dec-2011
3 10001 Source1 C 13-dec-2011 NULL

4-20002 Source1: 1 - jun - 20001 12-dec-2011
5 20002 Source1 C 13-dec-2011 NULL

Please let me know the advantages and disadvantages of the current design.

Published by: Rous Sharma on December 15, 2011 20:28

Correct, your second example for example by using a surrogate key is design to go with.

Flaws with the original design:

-There is a relationship one between Dimension_Key and Natural_Key, no need to keep both.
-Si Dimension_Key is the FK with a fact table, there will be a number of many relationships between fact and Dimension.
-Additional processing to search for Dimension_Key rather than simply for example use a sequence.

Tags: Business Intelligence

Similar Questions

  • The relationship "designed to" make visible in the Data Modeler?

    Hello

    I was wondering about the following topic:

    When I create (engineer), a table based on its entity, there is a relationship between the entity and the table.

    So to speak: a relationship "carried out by".

    This relationship can be demonstrated in Data Modeler?

    If so,.

    -can we use them to navigate a table to the entity and vice versa

    -can we maintain, in the case of design changes and changes to the execution table?

    I know that the relationship is available in the xml file that stores the table (Table > generatorID), but I am unable to see / use the relationship in the Data Modeler itself.

    Kind regards

    Art

    Hi Art,

    There is a section "Impact analysis" in the entity and table dialog boxes. Under the 'Mapping' node you will see mapped objects and can open the box from there.

    You cannot create or modify the mappings manually for now.

    Philippe

  • I can create forms in the designer, but when I use a data model, I can't interact with the form

    In LiveCycle Designer ES2 I can create a form and then preview and interact with the form.

    This guess I just build objects by dragging the pieces pre-made object on the form (for example, text field) - which I can name, wrap in subforms something - I can add actions and all is well.  When I preview the PDF, I can enter data in the fields, click on the radio buttons, making things appear that everything is great.

    But LC ES2 is based on the data driven development model by, so in my case I need a form guide as well as the form - so it's better to have a model of data created in the first place - and then create the form based on the data model - then build guide form based on the data model - it is also a good idea, and I'm cool with that.

    My problem is that when I'm building a data model (just for a quick and dirty development demo, not associated with services back-end or databases) and I create the form based on the data model - I can't interact with all objects in the preview pane form - further when I launch the workspace and call my process that contains the form - I even can't interact with the form.

    What I am doing wrong?

    Summons - I can create a form and interact with it - but If I start with a data model and generate the form based on that - I can't interact with the form (option buttons click-I can not enter data in form fields - etc) what causes this?  What should I do to use a data model and be able to create an interactive form? >

    Does anyone know what causes this problem?  It's driving me crazy.

    Thank you-

    Ben

    You do not hurt anuthing. It works as advertised. When you generate a Guide and work with a fml data model designer you will only create a static non-fillable PDF file. This is because when you import the model in the designer of the model must be turned in a schema. The schema may not represent constraints and validations can be encoded in the model. The only thing that can be maintained is the structure, so Designer forbids you to buidl an interactive form.

    If you know what you're doing, you could take the data it is generated from the Guide and merge on a XDP template file that you create (unless he models in a first time - you can use the sample XML data as a starting point) using LC forms. Edowmside, is that if there are constraints and rules you would have to code them in the model as well. That's the way it is now there, but it will improve over time, as more of the ability of the model is exposed to the XFA world.

    Hope that helps

    Paul

  • Increased support of Type of object in Data Modeler

    Hello

    It is a matter primarily for the development team to shape data as well as the Group of tools. First of all, the production of Data Modeler 3.0 version is very nice and improvements in data types on which was in EA1 are large. Thanks for adding to the support of the domain to the definition, attributes and parameters for methods which makes life much simpler and opens the door to a range more wide object type modelling and ease of implementations because consistency can now be maintained much easier through areas. Support for the smoothing of lines is also impressive. It is the best app that I've seen, even better than what we had in the Design Editor in the Oracle Designer, Bravo still once the team which built the diagrammer interfaces.

    My question is, going forward will be Data Modeler has continued to be improved to fully support the Oracle objects and object relational (OR) model? I ask this question because as users of Oracle RDBMS, we do not have a tool that allows to fully model and implement the functionality provided by the server group in the field of object-relational features. Oracle Designer had a capacity of modeling of GOLD, but the end of the product life has stopped any further development. One of the common excuses is there is no request for the market for object - relational modeling. I would say, that the absence of the market demand for object - relational applications is because we have never had a tool that fully supports the relational Oracle - model object. Nor do we have a development tool that allows us to implement a fully developed relational Oracle - model object. The Tools group stopped the development of Oracle Forms support for nested objects and collections. The LOV REF columns feature is quite impressive, but we are unable to get nested collections, still less a nested collection of REFs.

    So as a member of the end user community, we are stuck in this Catch 22. The server group continues to support and improve the object - model relationship, but the tools and modelling groups have not kept with the tools to model or to implement the features and the features supported by the database. As a result, we have a partially constructed set of tools that allows you to scratch the surface of the object - model relationship, but is not able to take full advantage of the powerful features of legacy, legacy and extensive collections, the ability to inherit and extend methods, etc...

    The object - relational model introduced with Oracle8, 10g solved the problem of evolution of type which has made the implementation of the production of realistic objects. My question is; Data Modeler is finally going to fully support the relational Oracle - model object? If until the end user community, we finally get a tool that totally supported the model of GOLD, finally, we will be able to model, generate and deploy applications that will in turn create this market demand which is lacking for the relational model object.

    Thanks in advance,
    ACE

    Hi Ace,

    Thanks for the good words.

    will be the Data Modeler has continued to be improved to fully support the Oracle objects and object relational (OR) model?

    Short time - Yes. What do you want Besides lack of support now nested columns (and related to these constraints, including the PK constraint) and the generation of the 'Alter Instructions?

    Philippe

  • Re: Data model - degree of relationship, ERD Notation of Barker

    Oh, I see now! I worked on the relational model, these icons are only accessible from logic model. I think I need to spend more time with the Modelere data. Thank you!

    Sorry for the topic of opening in the wrong forum (I have not noticed the appropriate injector). I would be grateful if someone could move it where it belongs.

    Hello

    There is an icon in the buttons above the schema to create a 1:1 relationship.  (The icon looks like 1<-->1)

    You can also set the properties 'Target cardinality of Source' and the 'target Source of cardinality' 1 in the Properties dialog box for the relationship.

    Just to add that there is a forum especially for questions of data Modeler: SQL Developer Data Modeler

    David

  • Impacts on the performance of the attributes from the features of data model design

    I'm trying to understand the implications of the performance of two possible data model design.

    Here is my structure of the entity:

    Global > person > account > option

    Generally, when running, I instantiated a person, a single accountand five option's .

    There are various amounts determined according to the age of the person who should be assigned to the correct option.

    Here are my two designs:

    Design a

    attributes on the entity of the person :
    age of the person
    its option 1 amount
    its option 2 amount
    its option 3 amount
    its option quantity 4
    its option 5 amount

    attributes on the option endity:
    amount of the option

    support table rules:
    option = amount
    its option 1 amount if the option is number 1
    its option 2 amount if the option number 2
    its option 3 amount if the option number 3
    its 4 option amount if the option is number 4
    its option 5 amount if the option is number 5

    Two design

    attributes on the entity of the person :
    age of the person

    attributes on the entity of the option :
    amount of the option
    of the option option 1 amount
    of the option option 2 amount
    of the option option 3 amount
    of the option quantity 4
    of the option option 5 amount

    support table rules:
    option = amount
    of the option option 1 amount if the option is number 1
    option 2 amount option if the option number 2
    of the option option 3 amount if the option number 3
    the option amount 4 If the option is number 4
    option 5 option amount if the option is number 5

    Given two models, I can see what looks like an advantage for a design that, when running, you have less attributes (6 on retirement member + 1 on each of the 5 options = 11) as two Design (1 on retirement members + 6 on each of the 5 options = 31), but I'm not sure. An advantage to design two might be that the algorithm must do less through the structure of the entity: the table of rules support everything for the amount of the option option.

    Anyway there is a table of rules to determine the amounts:

    Design a
    its option 1 amount =
    2 if age = 10
    5 if age = 11
    7 if age = 12, etc..

    Design two
    of the option option 1 amount =
    2 if age = 10
    5 if age = 11
    7 if age = 12, etc..

    Here, it seems that the one would have to cross over the structure of the entity for the design of two.

    The design will have a better performance with a large amount of rules, or it would make a difference at all?

    Hello!

    In our experience, just think about this kind of stuff if you were dealing with 100's or 1000 instances (usually through ODS). You have a very low number, the differences will be negligible, as you should (in general) go with the solution that is most similar to the material of origin or the understanding of the business user. Also, I guess that's an OWD project? Which may be even better, the inference is performed gradually when new data are added to the modules, rather than in a 'big bang' as ODS.

    It seems that the model 1 is the easiest to understand and explain. I wonder why you have the option at all entity, because it seems to be a relationship to one? If the person cannot have only a single amount of option 1, option 2 amount etc, and there's only ever going to be (up to) 5 options... is this assumption correct? If so, you can keep just like the attributes at the level of the person without the need for bodies. If there are other requirements of an instance of the option then, of course, use them, but given the information here, the option feature doesn't seem to be necessary. It would be the fastest of all :-)

    Whatever it is, that the number of instances is so low, you should have nothing to fear in terms of performance.

    I hope this helps! Write back if you have more info / questions.
    See you soon,.
    Ben

  • V4.1.1.887 Data Modeler - 8 opens and displays only the areas of my design of the file

    Yesterday I was working in my design of the database with data v4.1.1.887 maker and then saved work in file and closed the application.

    And today, something bad happened, the application opens my design but only displays a list of the areas that I created for my design.

    I can't display in the Explorer window of my: logic model, structured data types that I created, process and business information model diagrams.

    I migrated to v4.1.1.888 Data Modeler and the problem persists, then looked at the previous issues resolved in the forum and found an answer to a similar case of problem

    4.0EA2 (v4.0.0.820) Data Modeler after accepting migration from previous installation of v3.3.0.747 DM preferences settings.

    So I deleted the files preferences (I use Windows Vista) C:\Users\username\AppData\Roaming\Oracle SQL Developer data Modeler\system4.0.0.887 and 8, but the problem persists there.

    I also looked at the directory of the files that make up my design, and the size and the number of them seem to be without significant alteration I looked a few days ago.

    Can give me a solution to this problem?

    Hi David,

    After some research and testing, I finally solved the problem. I did the following:

    I deleted the text value from my memory of java in the java Control Panel of windows,

    I deleted the 4.1.1. C:\Users\username\AppData\Roaming\datamodeler\4.1.1 carpet

    I changed the memory to-Xmx2048m in datamodeler.conf in the datamodeler\datamodeler\bin folder

    then tried to start the Data Modeler but never value began, then reduced to-Xmx1024m and he began

    and not migrated preferences the next time I opened the Data Modeler and set preferences with utf-8 (I noticed it comes by default with coding cirillic)

    I closed and restarted datamodeler the external newspaper and made settings worked very well.

    Then I started to test with 3 versions of my design work for this month, their sizes are 5MB, 10MB, 10.1 MB the recent

    I opened and closed each oldest works to the latest and the oldest two worked fine without error in the external journal.

    However, the recent open all the drawings but I found an opening in the external log error:

    2015-07-24 19:46:31, 685 [Thread-25] ERROR XMLTransformationManager - cannot parse list of objects: C:\Systems\Software\Event-Cloud\Workspaces\Des-Database\v1.0.0.1-whole\dbd-150721-1\v100-dev\businessinfo/Objects.local

    Oracle.Xml.Parser.v2.XMLParseException; lineNumber: 1; columnNumber: 1; Start of the element root waited.

    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:326)

    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:463)

    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:404)

    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:245)

    at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:175)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.getObjects(XMLTransformationManager.java:3236)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPartManyFiles(XMLTransformationManager.java:3692)

    at oracle.dbtools.crest.model.metadata.XMLTransformationManager.openDesignPart(XMLTransformationManager.java:3545)

    at oracle.dbtools.crest.model.design.Design.openDesign(Design.java:1438)

    I checked the Objects.local file and it's there. then I closed the design without saving changes and ended Datamodeler application.

    Then I opened the Objects.local with Notepad ++ and I found and structure XML and the data that I wrote in my family business contact section has disappeared from the design

    I restarted Datamodeler opened and closed my recent design and that article accompanied by white, the datamodeler clos

    Search the file and noted increased its size 153 MB so she tried to open it with notepad ++ but it crashed.

    So I compared the previous Objects.local files and they are content equal and I did not modify this related part and the IDS are the same.

    I then removed the big Objects.local bad and replaced it with the previous version of the file and then started to Datamodeler

    and my recent design opens and closes fine without errors in the external journal.

    I think your application when open a file and found a critical error Stops to load the file and reports the external newspaper but if a non-critical error

    It displays the design and the log window does not show something goes wrong, in my case, I was not aware of this.

    Kind regards

    Julio.

  • The maximum size of the model in SQL Data Modeler?

    Hello

    The number of objects is the maximum value that can be used in a model in SQL data maker. I reverse engineered a scheme (see previous posts - thank you to all that helped) which contains 1000 + tables (a candidate for remanufacturing if ever I saw a!) but the Data Modeler is struggling to display them and performs very slowly. I can pull the same schema in the Oracle Designer and that works well, as ERwin-t - y at - it something I can do to improve the performance of the Data Modeler?

    Or people would recommend cutting the model into smaller pieces, which will be a little difficult because it's a bit of a rat's nest.

    John

    Hi John,.

    You can try to fix the memory usage - Re: problem of memory with large model

    And you may have better performance if divide you large diagram in subviews.

    Philippe

  • Data Modeler: change the layout of the Table report

    Hello

    I use SQL Data Modeling (DM) EA 4.0.

    I used the file-> reports option to generate reports on the Table and in the report

    (1) I could not see the data of the type column? (See table below), are there options to set the Type of data in the report?

    NO.

    Column name

    PK

    FK

    M

    Data type

    DT

    kind

    Domain name

    Formula

    (Default value)

    Security

    Abbreviation

    1

    ID1

    P

    THERE

    (10)

    LT

    2

    ID2

    F

    THERE

    (10)

    LT

    3

    ID3

    THERE

    (1)

    LT

    4

    ID4

    THERE

    (10)

    LT

    5

    ID5

    F

    (20.4)

    LT

    (2) in the options to manage the Table report (reports-> manage). Currently I can remove a position (like Notes of Descriptions, columns, column comments). Is there any way to customize the report so that I can remove some columns (mostly empty) according to the report and add comments as well as the column table column to a new column comments table.

    Please let me know, is there an option to customize the report.

    Note: I even tried to generate the report using the search then the report, but it does not give a full report (I was only able to generate a report on the column or table name or name constraints, not all together).

    Thank you

    Kheira

    Hi Dimitar,

    There are correct.

    for the report without data type, the data type in my relationship is 'UNKNOWN '.

    I have not changed, but now the type of data in the table are 'unknown '.

    I checked a little more on it and found that in the ADMINISTRATION of my 'TYPES' only unknown is here and the defaulttypes xml file is empty. Then I copied a new one.

    So the new design has the data type, but for that I need to generate sound still 'unknown '. I think I saved the unknown. :-(

    Thank you

    Srinivasan.

  • Data Modeler: changing attribute Table grayed out (in the relational model)

    I use SQL Developer Data model version 2.0.0 build 584.

    I have a relational model of appr. 30 paintings. For some tables, the display of attributes is grayed out, not allowing not of any change of the values. I have a feeling that this was due to an import/merge views of database, but for me this quite annoying because it prevents modelling activities further on these tables.

    Does anyone have an idea what could be the reason for this? More importantly: how to remedy this situation?

    Mark

    Hi Mark,

    Does anyone have an idea what could be the reason for this

    the reason is probably the difference in design name and name in the next item in the XML of the table:

    It is interesting how you did this.

    More importantly: how to remedy this situation?

    You can try ' Save as ' to save the design in a different directory.

    Philippe

  • SQL developer data modeling (Access in PB table?)

    Hi guys,.

    the sql Data Modeler is able to connect to a database?

    I'm a relational design I need to use an EXISTING table in my table of production...
    He has a lot of columns...

    so, I don't want to create a new table to imitate this existing table in the database...

    anyway I can do?

    Thank you.

    Published by: OracleWannabe on January 1st, 2009 22:45

    Hello

    Yes, you can import from the database - use "file > import > data dictionary" menu option. You can import the following databases:
    -Oracle 9,10,11;
    -MS SQL Server - 2000, 2005;
    -IBM DB2 - for OS/390 and LUW (Linux, Unix, and Windows) - 7.8
    -a database using the JDBC/ODBC bridge - results depends on the implementation of ODBC drivers, used.

    Data modeling Oracle comes with drivers for the Oracle database. Please read the release notes to see how to extract and add drivers from IBM and Microsoft http://www.oracle.com/technology/products/database/sql_developer/files/releasenotes525.htm

    Best regards
    Philippe

  • SQL Developer / Data Modeler - lost visual on the relationships between the tables

    11 GR 2 DBMS / SQL Developer 4.0.3

    In SQL Developer, using the Data Modeler I lost the visuals 'lines' (one to several, etc.) which show the PK to FK relationship between different tables from one of my patterns of relationship.  I know they exist - I'm sure it's my fault--put out something that I don't have.

    I looked on the web but without SOAP.  Can anyone tell me if it is a property and (as applicable) how to re - turn on the property.

    Thanks in advance.

    Barry D.

    Sorry - I found it - the relationship lines were VERY clear yellow and I could barely see it.

    Article by Jeff Smith on the model configuration screen has been very useful in this regard.

    http://www.thatjeffsmith.com/archive/2013/01/Configuring-display-of-model-relationships-in-Oracle-SQL-Developer-Data-Modeler/

    Thank you Jeff (again).

    Barry D

  • Question by showing the data model in reports of 11 g

    Hello

    I'm working on forms and reports on 11 g. I have a problem with the reports.

    After opening an existing report, I am unable to view the queries in the data model. The data model page is open, but immediately, it pops up a window saying generator stopped working. He has no problem working with the rest of reports such as the use of the document layout, etc.

    Could someone help me with this problem?

    (Sorry, i, m not able to add any image with this)


    Thanks in advance.


    You use the 64-bit Oracle Forms and reports 11 GR 2 version? If you are, it's a known bug with 64-bit report designer. As long as you use not Sources of pluggable data (PDS) in your reports, you can implement workaround in the following article:

    http://Pitss.com/us/2012/10/10/reports-Builder-11gr2-crashes-when-viewing-data-model/

    This should solve the problem with the help of the data model in the generator of reports without it crashing.

    Thank you

    Scott

  • How can I Data Modeler does not generate constraints on NNC_ tables?

    Hi all

    Unfortunately I have not found the answer using Google ;-)

    When I generate my DDL scripts on my model on some tables Data Modeler (version 4.0.0) automatically generates constraints on the columns of the table "NNC_" for example:

    CREATE TABLE STG_DURCHGANGSKNOTEN

    (

    ID NUMBER CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_ID NOT NULL,

    Kilometrierung VARCHAR2 (20) CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Kilometrierung NOT NULL,

    Letzte_Aenderung DATE CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Letzte_Aenderung NOT NULL,

    Knotentyp VARCHAR2 (100) CONSTRAINT NNC_STG_DURCHGANGSKNOTENv1_Knotentyp NOT NULL,

    Name VARCHAR2 (100),

    BZ_Bezeichner VARCHAR2 (100),

    GUI_Bezeichner VARCHAR2 (100),

    Spurplanabschnitt_ID NUMBER NNC_STG_DURCHGANGSKNOTENv1_Spurplanabschnitt_ID CONSTRAINT NOT NULL,.

    XML_Document XMLTYPE

    );

    How can I avoid this? I like to just get something like this:

    CREATE TABLE STG_DURCHGANGSKNOTEN

    (

    IDENTIFICATION NUMBER NOT NULL,

    Kilometrierung VARCHAR2 (20) NOT NULL,

    Letzte_Aenderung DATE NOT NULL,

    Knotentyp VARCHAR2 (100) NOT NULL,

    Name VARCHAR2 (100),

    BZ_Bezeichner VARCHAR2 (100),

    GUI_Bezeichner VARCHAR2 (100),

    Spurplanabschnitt_ID NUMBER NOT NULL,

    XML_Document XMLTYPE

    );

    Thank you

    Matthias

    Hi Matthias,

    The NOT NULL Constraint clause appears likely because 'Not Null Constraint Name' property is set to the column.  (It is indicated on the Panel "forced by default and ' in the column properties dialog box.)

    To stop these products, you can go to the Data Modeler/DOF of the preferences page (on the Tools menu) and set the option 'generate short form of NO forced NULL.

    Note that there now is a forum specifically for the Data Modeler: SQL Developer Data Modeler

    David

  • SQL DEVELOPER DATA MODELER tables seem to be read-only and make it a symbol of the string in the upper left corner

    I have a lot of tables in my data model.  I have three relational models defined in this file.  In one of the models, all tables seem to be read-only.  They all have a string in the upper left corner of the box.

    I use version control, so that are not archived or something like that.

    How to unlock these items?  Why they seem to be locked?

    Thank you

    Must not have been involuntary - you should have physically moved and dropped the tables/entities from one model to the other.

    If you want to copy them and be able to change in the future, use instead of copy / paste.

Maybe you are looking for

  • Problems creating table in MathScript

    ENGLISH: Hello I'm reading coordinates x and Y, they may be together or separated, such X10Y20 or X 10 or 20, I managed to separate them and read, now that I wanted to put them in a table, but can't, I did following annex, F (1, T) = X, where T is th

  • Printer Officejet 7612: scanning Officejet 7612

    When I put something to scan, it scans the entire page. So I have to manipulate away. The old HP printer I had would be size of the element for you instead of showing initially as a full page. It's 8.5 x 11, is what you would get. If it was 3 x 5, it

  • DesignJet T520 36in: DesignJet T520 36in printing problem

    I have a banner that I created in Adobe InDesign CS6.  File is 12.2 MB.  The file was created 36 "x 70".  When I try to print in our T520 it will print only a small part of the left area of the bottom of the picture. I tried printing from, PS, ID, Pr

  • Failure of the HD on Pavilion a1610n

    Given that HP did not include backup discs, but rather stored on a partition, I don't have XP discs. Any ideas? Sometimes I have XP SP1 to an old laptop with a variety of Austin TX. Which will work? I should have made backup discs, so it's on me. I h

  • Router WRT54G3G-ST - no internet connection - cannot reset the router

    Hello.  Some longer story certainly not short (I apologize for the length of hiking...  I don't know what is and isn't important, will scan, please...  I'm sorry...) : recently my computer (Dell XPS 400, Windows XP Service Pack 3, Internet Explorer 7