Moving from Data Warehouse Requirements to Nosql Databases

Moving from Data Warehouse Requirements to Nosql Databases

NOSOLAP: Moving from Data Warehouse Requirements to NoSQL Databases Deepika Prakash Department of Computer Engineering, NIIT University, Neemrana, Rajasthan, India Keywords: Data Warehouse, NoSQL Databases, Star Schema, Early Information Model, ROLAP, MOLAP, NOSOLAP. Abstract: Typical data warehouse systems are implemented either on a relational database or on a multi-dimensional database. While the former supports ROLAP operations the latter supports MOLAP. We explore a third alternative, that is, to implement a data warehouse on a NoSQL database. For this, we propose rules that help us move from information obtained from data warehouse requirements engineering stage to the logical model of NoSQL databases, giving rise to NOSOLAP (NOSql OLAP). We show the advantages of NOSOLAP over ROLAP and MOLAP. We illustrate our NOSOLAP approach by converting to the logical model of Cassandra and give an example. 1 INTRODUCTION environment. However, there is a need to deploy DWs on the cloud (Dehdouh et al., 2015), in a Traditionally, Data Warehouse (DW) star schemas distributed environment (Duda, 2012). A relational are implemented either using a relational database database does not provide these features while which allows ROLAP operations or on a multi- guaranteeing high performance. dimensional database that allows MOLAP ii.It may be the case that some piece of data is not operations. While the data in the former is stored in present in underlying data sources at the time of relational tables, the data in multidimensional extraction (ETL). In a relational database engine databases (MDB) are either in the form of multi- this is handled by using a NULL ‘value’. This dimensional array or hypercubes. A number of causes major difficulties particularly in the use RDBMS offer support for building DW systems and NULL as a dimension value and also as a foreign for ROLAP queries. MOLAP engines have key value in fact tables. Rather than use NULL proprietary architectures. This results in niche values, star schema designers use special values servers and is often a disadvantage. like -1, 0, or ‘n/a’ in dimensions. It may also be Another emerging approach is to use NoSQL required to use multiple values like ‘Unknown’ databases for a DW system. Data of a NoSQL and ‘Invalid’ to distinguish between the different database is not modelled as tables of a relational meanings of NULL. For facts that have NULL database and thus, NoSQL systems provide a storage values in their foreign keys, introduction of special and retrieval mechanism which is different from dimension rows in dimension tables is often relational systems. The data models used are key- proposed as a possible solution to ease the NULL value, column, document, and graph. problem. The motivation of using a NoSQL database lies Designers of star schemas have outlined a number in overcoming the disadvantages of relational of problems associated with these practical database implementations. These are: solutions to the problem of NULL values. Some of i.Today, there is a need to store and process large these are, for example, difficulty of forming amounts of data which the relational databases queries, and misinterpretation of query results. may find difficult (Chevalier et al., 2015; The problem of NULL values can be mitigated in a Stonebraker, 2012). Further, relational databases NoSQL database because these systems have difficulties in operating in a distributed 452 Prakash, D. NOSOLAP: Moving from Data Warehouse Requirements to NoSQL Databases. DOI: 10.5220/0007748304520458 In Proceedings of the 14th International Conference on Evaluation of Novel Approaches to Software Engineering (ENASE 2019), pages 452-458 ISBN: 978-989-758-375-9 Copyright c 2019 by SCITEPRESS – Science and Technology Publications, Lda. All rights reserved NOSOLAP: Moving from Data Warehouse Requirements to NoSQL Databases completely omit data that is missing. Thus, the table with each dimension as a descriptive problem of NULLS in the data cube is removed. component of the primary table. The measures and iii.DW 2.0 (Inmon, 2010) states that DW is to cater to all the non-key attributes of the fact table are storing text, audio, video, image and unstructured mapped to the analytical component of the primary data “as an essential and granular ingredient”. A table. As per the query needs and the lattice of relational database fails when it comes to cuboids, derived tables are constructed and stored as unstructured, video, audio files. A NoSQL such. database can provide a solution to this Now let us consider the conversion of (Chevalier disadvantage. et al., 2015) into document store. Each fact and dimension is a compound attribute with the iv.ETL for a relational implementation of a DW is a measures and dimension attributes as simple slow, time consuming process. This is because attributes. A fact instance is a document and the data from disparate sources must be converted into measures are within this document. Mongodb is the one standard structured format of the fact and document store used. dimension tables. We believe that since structured Since the foregoing proposals start off from a data is not mandated by NoSQL databases, ETL model of facts and dimensions, they suffer from will be faster. limitations inherent in the former. Some of these are v.ROLAP has heavy join operations making the as follows: performance of the system slow. We believe i.Since aggregate functions are not modelled in a performance of DW systems can be improved if star schema, the need for the same does not get implemented in a NoSQL database. translated into the model of the NoSQL database. vi.Relational databases focus on ACID properties ii.Features like whether history is to be recorded, while NoSQL databases focus on BASE what is the categorization of the information properties. Since a DW largely caters to a read- required, or whether a report is to be generated are only, analytic environment with changes restricted not recorded in a star schema to ETL time, enforcement of ACID is irrelevant Evidently, it would be a good idea to start from a and the flexibility of BASE is completely model that makes no commitments to the structural, acceptable and, indeed, may lead to better DW fact-dimension, aspects of a data warehouse and yet performance. captures the various types of data warehouse There is some amount of work that has been done in contents. In going to NOSOLAP, we now state our implementing the DW as XML databases and also position in this position paper: we propose to move on NoSQL platform. The basic idea is to arrive at from a high-level, generic, information model to facts and dimensions and then convert, in the latter, NoSQL databases directly, without the intervening the resulting multi-dimensional structure into star schema being created. The consequence of this NoSQL form. By analogy with ROLAP and direct conversion is the elimination of the step of MOLAP we refer to this as NOSOLAP. The NoSQL converting to a star schema. databases considered so far, in NOSOLAP, are To realize our position, we will need to reject all column, and document databases. Data Warehouse Requirements Engineering, (Chevalier et al., 2015) converted the MD DWRE, techniques that produce facts and schema into a NoSQL column oriented model as dimensions as their output. Instead, we will look for well into a document store model. We will consider a DWRE approach that outputs data warehouse each of these separately. Regarding the former, each contents in a high-level information model that fact is mapped to a column family with measures as captures in it all the essential informational concepts the columns in this family. Similarly each dimension that go into a data warehouse. is mapped to separate column families with the In the next section, section 2, we do an overview dimension attributes as columns in the respective of the different DWRE approaches and identify a column families. All families together make a table generic information model. This model is described which represents one star schema. They used HBase in section 3. Thereafter, in section 4, we identify as their column store. Cassandra as the target NoSQL database and present The work of (Dehdouh et al., 2015) is similar to some rules for conversion from the generic the previous work but they introduce simple and information model to the Cassandra model. Section compound attributes into their logical model. 5 is the concluding section. It summarizes our (Santos et al., 2017) transforms the MD schema into position and contains an indication of future work. HIVE tables. Here, each fact is mapped to a primary 453 ENASE 2019 - 14th International Conference on Evaluation of Novel Approaches to Software Engineering 2 OVERVIEW OF DWRE did it happen – in what manner? (7) HoW many or much was recorded – how can it be measured? Out In the early years of data warehousing, the of these, the first six form dimensions whereas the requirements engineering stage was de-emphasized. last one supplies facts. Indeed, both the approaches of Inmon (Inmon, 2005) Whereas both GORE and PORE follow the and Kimball (Kimball, 2002) were for data classical view of a data warehouse as being subject warehouse design and, consequently, do not have an oriented, DeRE takes the decisional perspective. explicit requirements engineering stage. Over the Since the purpose of data warehouse is to support years, however, several DWRE methods have been decision-making, this approach makes decision developed. Today, see Figure. 1, there are three identification the central issue in DWRE. The broad strategies for DWRE, goal oriented (GORE) required information is that which is relevant to the approaches, process oriented (PoRE) techniques and decision at hand. Thus, DeRE builds data warehouse DeRE, decisional requirements engineering. units that cater to specific decisions.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    7 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us