US 20090228436 A1
Systems and method for creating multidimensional data cubes containing data domains for analyzing large amounts of data are provided. Data domains may be included in the major object of a multidimensional data cube. Further embodiments of the present invention provide methods for querying multidimensional data cubes having data domains. Embodiments of the present invention provide for defining data domains by any object in the major object model and for defining parent and child data domains.
1. One or more computer-readable media having computer-executable instructions embodied thereon for performing a method for generating a multidimensional data cube, the method comprising:
receiving data from a data source;
receiving a definition of at least one measure for indicating one or more facts in the data source;
receiving a definition of at least one dimension, wherein the at least one dimension includes one or more attributes;
receiving a definition of at least one data domain, wherein the at least one data domain comprises at least one parameter for structuring the data;
structuring the data according to the at least one measure, the at least one dimension, and the at least one data domain, wherein the structured data is a multidimensional data cube; and
storing the structured data on a computing device.
2. The one or more computer-readable media of
3. The one or more computer-readable media of
4. The one or more computer-readable media of
5. The one or more computer-readable media of
6. The one or more computer-readable media of
7. A method for processing a query of a multidimensional data cube having one or more data domains, the method comprising:
receiving at least one query instruction, wherein the at least one query instruction comprises a term that identifies the multidimensional data cube and at least one definition of a set of data;
applying the at least one query instruction to a multidimensional data cube;
determining at least one appropriate data domain, wherein the at least one appropriate data domain comprises data that satisfies the at least one query instruction;
determining at least one appropriate aggregation, wherein the at least one appropriate aggregation comprises data that satisfies the at least one query instruction;
determining at least one appropriate partition, wherein the at least one appropriate partition comprises the at least one appropriate data domain and the at least one appropriate aggregation;
retrieving at least one query result, wherein the at least one query result comprises the at least one appropriate partition; and
transmitting the at least one query result to a computing device.
8. The method of
9. The method of
10. The method of
11. The method of
12. The method of
13. The method of
14. The method of
15. The method of
16. The method of
17. The method of
18. One or more computer-readable media having computer-executable instructions embodied thereon for performing a method for analyzing multidimensional data using data domains, the method comprising:
receiving multidimensional data from at least one data source;
receiving a definition of at least one data domain, wherein the at least one data domain comprises at least one variable parameter for organizing the multidimensional data;
creating at least one multidimensional data cube to represent the data, wherein the at least one multidimensional data cube comprises the at least one data domain;
receiving at least one query instruction;
applying the at least one query instruction to the multidimensional data cube to retrieve at least one query result that satisfies the at least one query instruction; and
displaying the at least one query result.
19. The one or more computer-readable media of
20. The one or more computer-readable media of
Online analytical processing (OLAP) is an important aspect of many data warehouse and business analysis systems. OLAP services provide for multidimensional access and navigation of data in an intuitive and natural way, providing a global view of data that can be drilled down into particular data of interest. Typical services provided by OLAP systems include analytical tools to rank, aggregate, and calculate indicators for the data under analysis. These tools are generally effective, but may become less efficient as the databases under analysis become larger and more complex.
This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used as an aid in determining the scope of the claimed subject matter.
Embodiments of the present invention relate to using data domains to define and organize multidimensional data for use with OLAP multidimensional data cubes. Data domains are defined during the creation of the data cubes and may be in the major object of a data cube model, although they can also apply on any level below the object. Data domains are used to define how data in a data cube is organized, sliced, aggregated, and cached and enable strategic and efficient querying of the multidimensional data represented therein.
Further embodiments of the present invention allow the use of data domains as references to other domains defined in a cube structure. In one embodiment, a data domain may be a sub-domain of a domain that it references, the parent domain. Data domains may be used to define separation of data from multidimensional data cubes, and may be used to define new granularity. Data domains may be included in any number of objects, such as databases, dimensions, cubes, measure groups, and partitions.
These and other aspects of the invention will become apparent to one of ordinary skill in the art upon a reading of the following description, drawings, and the claims.
The present invention is described in detail below with reference to the attached drawing figures, wherein:
The subject matter of the present invention is described with specificity herein to meet statutory requirements. However, the description itself is not intended to limit the scope of this patent. Rather, the inventors have contemplated that the claimed subject matter might also be embodied in other ways, to include different steps or combinations of steps similar to the ones described in this document, in conjunction with other present or future technologies. Moreover, although the terms “step” and/or “block” may be used herein to connote different elements of methods employed, the terms should not be interpreted as implying any particular order among or between various steps herein disclosed unless and except when the order of individual steps is explicitly described.
Embodiments of the present invention allow for using data domains to separate and organize multidimensional data for use in OLAP analysis. Data domains may enable strategic querying of the data and may be defined by database administrators, end users, or other relevant parties.
Embodiments of the present invention provide methods for generating an OLAP data cube using data domains, wherein data is first received from a data source. A user or administrator defines measures and measure groups for the data, and further defines dimensions comprising attributes that describe various aspects of the measures. Data domains are defined and used as parameters for structuring the data. The data is then structured according to the measures, dimensions, and domains and the resulting multidimensional data cube may be stored on a computing device.
Further embodiments of the present invention provide methods for querying a multidimensional data cube that contains data domains. In doing so, a user first selects one or more aggregation designs, wherein at least one parameter of the aggregation design is specified by a data domain contained in the cube structure. A user then may define one or more partitions that may be used to organize and store the aggregations, caches or other query designs as desired. Partitions may be specified by reference to various data domains as well. Instructions for querying the multidimensional data cube are created, and may include the aggregation designs and partition definitions. The query instructions are then used to query the multidimensional data cube, and the user is able to retrieve results that satisfy the query instructions. The results may then be displayed on a display device.
Still further embodiments of the present invention provide for one or more computer-storage media having computer-executable instructions embodied thereon for performing a method for querying multidimensional data cube having data domains. The method includes retrieving data from a data source, creating a multidimensional data cube to represent that data, and allowing users to query the data cube. The method may further include defining data domains that may comprise parameters for querying the data cube, receiving query instructions, applying them to the data cube and displaying query results on a display device.
Having briefly described an overview of the present invention, an exemplary operating environment in which various aspects of the present invention may be implemented is described below in order to provide a general context for various aspects hereof. Referring initially to
The invention may be described in the general context of computer code or machine-useable instructions, including computer-executable instructions such as program modules, being executed by a computer or other machine, such as a personal data assistant or other handheld device. Generally, program modules including routines, programs, objects, components, data structures, etc., refer to code that perform particular tasks, or implement particular abstract data types. The invention may be practiced in a variety of system configurations, including hand-held devices, consumer electronics, general-purpose computers, more specialty computing devices, etc. The invention may also be practiced in distributed computing environments where tasks are performed by remote-processing devices that are linked through a communications network.
With reference to
Computing device 100 typically includes a variety of computer-readable media. Computer-readable media, as used herein, can be any available storage media that can be accessed by computing device 100 and includes both volatile and nonvolatile media, removable and non-removable media. Computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, program modules or other data. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by computing device 100. Combinations of any of the above should also be included within the scope of computer-readable media.
Memory 112 includes computer-storage media in the form of volatile and/or nonvolatile memory. The memory may be removable, nonremovable, or a combination thereof. Exemplary hardware devices include solid-state memory, hard drives, optical-disc drives, etc. Computing device 100 includes one or more processors that read data from various entities such as memory 112 or I/O components 120. Presentation component(s) 116 present data indications to a user or other device. Exemplary presentation components include a display device, speaker, printing component, vibrating component, etc.
I/O ports 118 allow computing device 100 to be logically coupled to other devices including I/O components 120, some of which may be built in. Illustrative components include a microphone, joystick, game pad, satellite dish, scanner, printer, wireless device, etc.
In some embodiments, computing device 100 operates in a networked environment using logical connections to one or more remote computers. A remote computer may be another personal computer, a server, a router, a network PC, a peer device, or other common network node. In embodiments of the present invention, a remote computer may be a server computer containing the computer-storage media which embodies the computer-executable instructions used to perform the methods described herein. In other embodiments, the remote computer may contain databases that house the information used in the analysis as described herein. A remote computer typically includes many or all of the components described above in connection with computing device 100. The logical connections depicted in
When placed in a LAN networking environment, computing device 100 connects to local network 124 through a network interface or adapter. When used in a WAN networking environment such as the Internet, computing device 100 typically includes a modem or other means for establishing communications over network 126. A modem may be internal or external to computing device 100 and connects to the system bus 110. Of course, the network connections shown are illustrative, and other means of establishing a communications link between the computers may be substituted.
As previously mentioned, in one embodiment, the present invention relates to using data domains to define and organize multidimensional data for use with OLAP multidimensional data cubes. Data domains are defined during creation of the data cubes and may enable strategic and efficient querying of the multidimensional data represented therein.
Initially, as indicated at block 210, data is received from a data source. Generally, the data source is a database or multiple databases, such as a database cluster. In an embodiment of the present invention, the database is a relational database comprising both fact tables and dimension tables. The data source may include data related to any number of business activities, including, for example, sales or import/export activities. The data received form the data source may be aggregate data that indicates one or more properties or values associated with the various types of information in the data source. Furthermore, the data received from the data source may be linked to the facts contained within the data source so that users can obtain more detailed information associated with the results of queries on the aggregate data.
After receiving the data, measures are defined, as indicated at block 220. These definitions may be received from a user or generated by the system, both of which are intended to be encompassed in the phrase “receiving a definition.” As shown in
In a multidimensional data cube such as the exemplary data cube 300 illustrated in
Next, as indicated at block 230 (
Data domains may be included in the major object of the object model, and can apply on any level below the object by which they are defined. A data domain may be defined as a particular aspect of a database, dimension, or measure group. For example, if the data source is a database containing information regarding online sales by members of an online sales organization, business managers may be interested in analyzing sales to certain individuals. If the database contains a table for recording the User ID of individuals who log in and make purchases, a data domain may be defined by “User ID” in the database. In that case, all partitions in all measure groups will be sliced in accordance with that definition. Additionally, data domains may be defined as particular aspects of the data cube itself, or as aspects of one or more partitions thereof. In embodiments of the present invention, data domains may be used to specify slices, which define attributes by which data may be divided when queried. Such attributes may also include ranges of attributes and drill-through attributes.
In further embodiments of the present invention, data domains may contain specifications for granularity, which defines what part of a measure group the particular data domain represents and how it relates to the rest of the data. Granularity refers to the level of detail represented by a particular measure. For example, a measure that contains individual User IDs for purchasers is said to have granularity on the individual purchaser level. A measure may not have any finer granularity than that of the fact table from which it is derived, but its granularity may be made coarser by associating dimensions that refer to data with less specific granularity. Data domains containing specifications for granularity of the data may be useful in querying the data by providing logical limits to results obtained in a query. For example, if a query requests data represented by a particular data domain that specifies a particular granularity of the data, the query will generate useful results. However, if that query specifies data for that data domain, but that is represented by a different granularity of the data, the query may generate an error message to the user.
In still further embodiments of the present invention, aggregation design may be specified by data domains. In this case, domains of data may have varying aggregation designs, providing support for various ways of aggregating data for different data granularity. Aggregations typically are pre-computed summaries of selected data that allow an OLAP system or a relational database to respond quickly to queries by avoiding collecting and aggregating detailed data during query execution. For example, a user might want to know sales data for a given period of time without regard to geographical distinctions. These types of queries are efficiently answered through the use of aggregations. Without aggregations, the system would need to use the detailed data to answer these queries, resulting in potentially substantial processing delays. With aggregations, the system computes and materializes aggregations ahead of time so that when the query is submitted to the system, the appropriate summary already exists and can be sent to the user much more quickly.
Generally, aggregations are defined by the level of detail aggregated in each dimension, and as mentioned above, may be specified in various ways for different data domains. The level of detail of a dimension is specified using the appropriate hierarchical level of the dimension, which may vary depending on the data domain or domains that are included within the aggregation. For example, one aggregation might be a product-year-state aggregation. In this example, the aggregation may be defined this way for a particular data domain, but may be defined as a product-month-state aggregation, for example, if performed within a different data domain. Aggregations such as this are created using aggregation functions. The most typical of these is the sum function, wherein measures are summed along each dimension specified. Those skilled in the art will appreciate that there are many other types of aggregation functions as well, including, for example, Count functions, Min functions, Max functions, and DistinctCount functions.
Generally, if an aggregation level is not specified for a dimension in an aggregation, the aggregation is considered detailed by the “ALL” level of that dimension, as represented in
In various embodiments of the present invention, data domains may contain specification for defining partitions and caching data. Partitions are typically used to manage and store data and aggregations. Partitions are generally defined by measure groups, and a measure group may reflect the combined data in all of the partitions defined on that measure group. Partitions are used when querying a data cube and may be stored in separate sets of files. Partitions may be updated to reflect updates to the facts in the information source.
Caching data may further enable analysis by using existing aggregations that may be stored in partitions to generate new aggregations based on the existing aggregations. For example, an aggregation may contain information for sales aggregated over each month, but a user may wish to examine the nature of sales aggregated over each year. Caching allows an efficient retrieval of this information using the monthly aggregations to derive yearly aggregations, instead of going back to the most granular level of the data to perform the aggregations.
Data domains may enable more efficient and useful processing of updates to partitions. Generally, when data is updated, the existing aggregations and caches must be discarded and replaced with entirely new aggregations and caches. However, if the data is separated by data domains, it is possible to update the data without discarding all of the existing aggregations and caches. The data domains may be defined in such a way that enables the system to keep all of the aggregations and caches that are not affected by the updates, and only discard those existing aggregations and caches that are affected by the updates. In this way, the use of data domains improves the efficiency of updating partitions that contain aggregations and caches and reduces the necessity of repeated aggregation and caching procedures to keep the partitions updated.
Data domains may also be defined in reference to other previously defined data domains. In that case, the previously defined data domain may be called a parent domain, and the data domain defined in reference to the parent may be called the child data domain. If defined in this manner, all of the attributes will be applied first by the parent domain and then by the child domain. For example, a database domain may define data separation by “User ID” and not define new granularity. Within the measure group, another data domain can be defined by Weeks and all of the data of the partition thereof will be divided by weeks. If the database domain is specified as the parent and the “Weeks” domain is specified as its child, the system may then be able to divide the data by User ID and Weeks. In this way, data domains generally enable drill-through dimension data to be predefined and easily accessible by queries and may enable data to be loaded on different granularities based on the slices of data defined by the different data domains.
After the data domains are defined, the data is structured, as shown in block 250 of
Finally, as indicated at block 260 of
Turning now to
To process the query, the system first determines the appropriate data domains that contain the query results, as shown at block 530. Next, at block 540, the system determines appropriate aggregations to return responsive to the query. The aggregations may be defined, in part, according to the data domains, and are generally defined by an aggregation function that is calculated over a particular range of measures and dimensions.
At block 550, the system determines the appropriate partitions containing data that is responsive to the query instructions. The partitions may be used for storing sets of aggregations. As discussed above, a partition may be structured to store one or more aggregations and may be structured to allow for incremental updates to the aggregations stored therein as the underlying data is aggregated. The partition may be further defined according to data domains, which may or may not be specified in a particular aggregation design. This enables the system administrator to design partitions that contain similar aggregations over different data domains. These aggregations may be combined or stored separately within the partition structure. The partition structure may further limit the aggregation designs by allowing aggregations only over data domains specified in the partition structure.
Results that satisfy the query instructions are retrieved, as indicated at block 560. Finally, the results of the query, which may include aggregations, partitions containing aggregations, caches, other types of data storage or any combination thereof, are transmitted to a computing device, as indicated at block 570. It will be readily appreciated in the art that the results may also be displayed or stored on a local or remote computing system and that the format of the displayed data may take any form known in the art, including various types of tables, charts and graphs.
As can be understood, embodiments of the present invention provide for application of data domains to any type of multidimensional data cube as provided by any of the various available analysis services, including, for example, Microsoft SQL Server Analysis Services (SSAS). Further embodiments of the present invention provide applying the methods and techniques described above to other forms of analysis services designed to work with relational databases and other structures used to represent multidimensional data. Still further embodiments of the present invention may be implemented using client and server computing machines or may be implemented on a single machine or a closed network of machines.
The present invention has been described in relation to particular embodiments, which are intended in all respects to be illustrative rather than restrictive. Alternative embodiments will become apparent to those of ordinary skill in the art to which the present invention pertains without departing from its scope.
From the foregoing, it will be seen that this invention is one well adapted to attain all the ends and objects set forth above, together with other advantages which are obvious and inherent to the system and method. It will be understood that certain features and subcombinations are of utility and may be employed without reference to other features and subcombinations. This is contemplated by and is within the scope of the claims.