• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » What is Star Schema?

By Abhishek Ghosh November 7, 2021 6:36 pm Updated on November 7, 2021

What is Star Schema?

Advertisement

A star schema is a special form of a data model whose goal is not normalization, but optimization for efficient read operations. The main field of application is a data warehouse and OLAP applications. The term star schema comes from the fact that the tables are arranged in a star shape: at the centre is a fact table around which several dimension tables are grouped. A star scheme is usually denormalized. Possible anomalies and an increased memory requirement are accepted for performance reasons. An improvement is possible through the snowflake scheme related to the star scheme. There, however, multi-level dimension tables must be linked via join queries.

As a logical database schema for data warehouse applications, the so-called star schema has prevailed. This schema consists of a fact table and several dimension tables, which are arranged in a star shape around a fact table in a query-friendly manner and refer to exactly one fact table in this schema. The name of this schema is therefore derived from the star-shaped arrangement of the dimension tables around the central fact table. The mentioned fact table has information-carrying attributes, such as sales, time periods, costs, etc., and as a primary key a composite key from the primary keys of the participating dimension tables.

Each dimension table is in a 1:n relationship to a fact table. The 1:n relationship is mediated by a dimension table key and a foreign key of the fact table. The fact table implicitly integrates m:n relationships into a single table and therefore contains a lot of redundancy. The key of the fact table consists of the primary key of the respective dimension table as a foreign key.

Advertisement

---

The star scheme allows the selection, summary and navigation of the measured values or facts. The dimension tables are usually not normalized and are therefore denormalized: there are functional dependencies between non-key attributes so that the 3rd normal form (3NF) is violated. However, this breach is accepted with this scheme, because the data structure allows for better processing speed at the expense of data integrity and storage space.

The data to be managed is referred to as facts; they are typically stored continuously in the fact table. Other names for the facts are metrics, metrics, or metrics. Fact tables can become very large, forcing a data warehouse to gradually condense (aggregate) the data and finally delete or offload it after a hold period(archiving). The tables contain key figures or earnings figures that can be derived from current business and reflect economic performance, such as profitability, costs, performance/revenue, expenses, income, expenses, income, etc. However, it is only when these figures are put into context that they make sense. An example is that sales in a certain area are compared with defined products in a defined period of time, which reflects dimensions in which economic performance is evaluated and analyzed.

In contrast, the dimension table contains the “descriptive” data. The fact table contains foreign keys to the dimension entries that define their meaning. Typically, the total set of foreign keys on the dimension tables also represents the primary key in the fact table. This implies that each entry for a combination of dimensions can only exist once. Dimension tables are comparatively static and usually much smaller than fact tables. The term “dimension” comes from the fact that each dimension table represents a dimension of a multidimensional OLAP cube.

Due to the existence of functional dependencies between non-key attributes, the third normal form is deliberately violated in the dimension tables. In order to meet the 3NF, the dimension table in question would have to be broken down into individual hierarchical tables, but for reasons of performance, the star schema refrains from normalizing the dimension tables and accepts the redundancy that occurs as a result.

The advantage of separating facts and dimensions is that the facts can be analyzed generically and independently after each dimension. An OLAP application does not require “knowledge” of the meaning of a dimension. The interpretation is left solely to the user.

However, the size of dimension tables should be taken into account. Fact tables can often contain more than 10 million records in a star schema. Although dimension tables are smaller, they can be significant for individual dimensions. In order to reduce such large data sets and the associated shortened access times, individual, very large dimension tables can be converted into a snowflake scheme by normalization.

What is Star Schema

One problem with the star schema is that data in the dimension tables is related to data in the fact tables over a long period of time. Over time, however, changes to the dimension data may also be necessary. However, these changes must generally not affect data before the change. For example, if the seller for a product group changes, the respective entry in the dimension table must not simply be overwritten. Instead, a new entry must be generated, otherwise, the sales figures of the previous seller would no longer be detectable. One concept for avoiding such conflicts is Slowly Changing Dimensions. This concept summarizes methods in data warehousing in order to record changes in dimension tables and, if necessary, to document them historically.

This Article Has Been Shared 154 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to What is Star Schema?

  • Apache Hadoop, Spark Vs. Elasticsearch/ELK Stack

    Apache Hadoop, Spark Vs. Elasticsearch aka ELK is a Good Topic. In Different Way – Why Peoples Use Elasticsearch When Hadoop, Spark Exists?

  • What is Graph Database?

    A graph database uses graph structures instead of tables or documents. Most graph database are not database as they do not store data.

  • What is Process Mining?

    Process Mining is a process management technique that enables business processes to be reconstructed and evaluated on the basis of digital traces in IT systems.

  • Machine Learning in Capital Markets : Part VI

    This is the continuation of part V of Machine Learning in Capital Markets. The determined values ​​can be converted into a uniform interval by scaling. The interval can range from -100 to +100 units. It is only important that all values ​​are scaled so that the relative size is not changed. In contrast to the […]

  • What is Statistical Classification

    In the field of machine learning and statistics, classification methods are methods and criteria for classifying objects or situations. Such a method is also referred to as a classifier. Many methods can be implemented as an algorithm; it is also referred to as machine or automatic classification. Classification methods are always application-related, so many different […]

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Proxy Server: Design Pattern in Programming January 30, 2023
  • Cyberpunk Aesthetics: What’s in it Special January 27, 2023
  • How to Do Electrical Layout Plan for Adding Smart Switches January 26, 2023
  • What is a Data Mesh? January 25, 2023
  • What is Vehicular Ad-Hoc Network? January 24, 2023

About This Article

Cite this article as: Abhishek Ghosh, "What is Star Schema?," in The Customize Windows, November 7, 2021, January 31, 2023, https://thecustomizewindows.com/2021/11/what-is-star-schema/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT