Advances in computing technology enable ever increasing amounts of data to be collected and analyzed. Database processing loads can vary at different times. For example, a database workload may be characterized by periods of routine use, such as for day-to-day transaction processing, and periods of heavy use, such as during processing at the end of a defined period (such as end-of-month, end-of-quarter, or end-of-year calculations). During periods of heavy use, database performance may be drastically reduced.
Accordingly, there remains room for improvement.
The Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. The Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
An embodiment can be implemented as one or more computer-readable media comprising computer-executable instructions that when executed cause a computing system to perform processing to generate a semantic cluster table. The processing comprises storing data in a semantic cluster table. The semantic cluster table comprises a technical key field, each row of the semantic semantic cluster table comprises a unique technical key. The semantic cluster table also includes a semantic indicator field. The semantic cluster table comprises a plurality of semantic indicator field values, each semantic indicator field value being associated with a unique semantic context. The semantic cluster table also includes a plurality of key figure fields. Each of the plurality of unique semantic contexts is uniquely associated with one or more of the plurality of key figure fields. The plurality of semantic indicator field values allow the one or more key figures fields with which a semantic indicator field value is uniquely associated to be retrieved from the semantic cluster table by selection of data associated with the respective semantic indicator field value.
An embodiment can be implemented as a system comprising memory; one or more hardware processors coupled to the memory; and one or more computer-readable media storing instructions that, when loaded into the memory, cause the one or more hardware processors to perform operations for executing a database process comprising a plurality of requests for a database operation. The operations also include receiving a semantic cluster table from a database system. The semantic cluster table comprises a semantic indicator field having a plurality of values. Each value is associated with a unique semantic context. The semantic cluster table also comprises a plurality of attribute fields and a plurality of key figure fields. Each semantic indictor field value is uniquely associated with at least one of the plurality of key figure fields. The operations further include executing a plurality of queries of the database process on the semantic cluster table. Each of the plurality of queries comprises a different combination of one or more of the plurality of semantic indicator field values, one or more of the plurality of attribute fields, or combinations thereof.
An embodiment can be implemented as a method carried out at least in part by a computing system, the method comprising receiving a plurality of concurrent requests for a database operation, the plurality of requests associated with a database process. The plurality of concurrent requests are executed on a semantic cluster table. The semantic cluster table comprises a semantic indicator field having a plurality of values. Each value is associated with a unique semantic context. The semantic cluster table also includes a plurality of attribute fields and a plurality of key figure fields. Each semantic indicator field value is uniquely associated with at least one of the plurality of key figure fields. A plurality of queries of the database process are executed on the semantic cluster table. Each of the plurality of queries comprises a different combination of one or more of the plurality of semantic indicator field values, one or more of the plurality of attribute fields, or combinations thereof.
The various innovations can be used in combination or separately. As described herein, a variety of other features and advantages can be incorporated into the technologies as desired. 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 to limit the scope of the claimed subject matter. The foregoing and other objects, features, and advantages of the invention will become more apparent from the following detailed description, which proceeds with reference to the accompanying figures.
Advances in computing technology enable ever increasing amounts of data to be collected and analyzed. Database processing loads can vary at different times. For example, a database workload may be characterized by periods of routine use, such as for day-to-day transaction processing, and periods of heavy use, such as during processing at the end of a defined period (such as end-of-month, end-of-quarter, or end-of-year calculations). During periods of heavy use, database performance may be drastically reduced.
Performance can be reduced, in some cases, because of normalization of database data. Data normalization typically involves partitioning data into a larger number of simpler tables, rather than aggregating data into a single, large, complex table. Normalization can include partitioning data based on the relatedness of database fields (e.g., column categories/identities). Relatedness can include how likely the fields are to be accessed in particular database operations, such as data manipulation (DML) statements to update, insert, or delete database records, or database queries, such as specified in the structured query language (SQL). Normalized tables often more accurately reflect analog world concepts, and can be more intuitive for users to work with. Normalization has been an increasingly used foundation of database systems for several decades.
However, normalization can provide undesirable side effects. That is, normalization typically results in multiple, smaller tables than data that has not been normalized. The use of smaller tables can increase the number and complexity of database operations, which can negatively affect database performance, including increasing processor use, use of network resources (since more communications may be required between a computing system executing an application and a computing system providing a database system), and the execution time of database operations.
Parallelism has been another trend in the design of computing systems and software, including as applied to database systems. As increasingly large amounts of data are processed, it is common to split processing into multiple jobs or packages, and process at least a portion of the jobs or packages concurrently. As an example, if a million documents are to be processed, they might be split into one-thousand jobs or packages, each containing one-thousand documents to be processed. The jobs may then be processed concurrently by multiple application servers, for example.
Like normalization, parallelism can also provide undesirable side effects. If the number of concurrent requests to a database system is too high, performance can be drastically reduced. As parallelism is typically used with normalized database tables, it is common for database processing to involve multiple concurrent requests, with each of the requests accessing multiple tables, often with complex queries (which can increase processor use and processing time).
The present disclosure provides innovations in database processing that can greatly reduce processing time a resource use. The innovations can include the use of denormalized or unnormalized database tables. Denormalized tables can refer to tables that have been denormalized compared to a prior organization of the underlying data. For example, denormalization can include combining multiple tables, or at least some of the information in such tables, into a single table. Unnormalized tables can refer to tables where data has not been specifically rearranged to remove normalization, but where the data is not normalized. For convenience, “denormalized” is used herein to refer to both denormalized data and unnormalized data. As used herein, a “semantic cluster table” can refer to a table having denormalized data or unnormalized data.
In order to help reduce any disadvantages that may result from the use of non-normalized data (e.g., update, insertion, or deletion anomalies), as well as to further increase performance, denormalized tables can be organized based on multiple semantic contexts. These denormalized tables can be referred to as “semantic cluster tables.” In some cases, a semantic cluster table can include fields for multiple database semantics. The semantics included in the semantic cluster table can access the same or overlapping database records, and database fields. Some or all of the records and fields, in some aspects, can differ between semantic contexts. The different semantics in a table can represent, for example, different categories of queries or calculations (or combinations thereof) performed on a common or overlapping set of database records. These queries or calculations may be part of a related analog world process.
Semantic cluster tables include one or more semantic indicator fields. In particular aspects, a semantic cluster table includes a single semantic indicator field. Each semantic indicator field can include one or more, typically including a plurality of, semantic indicator field values. Each semantic indicator field value can be used to identify a particular semantic context associated with a particular type of data object or data entity (e.g., a logical data object, such as a BusinessObject of SAP SE, of Walldorf, Germany). Thus, a semantic indicator value may indicate a data entity or type representing a customer, account, contract, etc., or a particular characteristic thereof. For instance, data object or entity types, represented by a semantic indicator field values, may represent various models or analyses of an entity, such as analyzing different measure of risk associated with a contract or service agreement.
Traditionally, a normalized table would be created for each entity or object corresponding to a semantic indicator value. That, is there would be separate tables for each logical data object type. According to the innovations of the present disclosure, a denormalized semantic cluster table includes multiple semantic contexts (e.g., logical data object types). The semantic indicator field value is used for selectively retrieving or accessing data associated with a particular semantic context indicated by a semantic indicator field value.
In at least some cases, the semantic indicator field, and its values, are used only for selectively accessing data based on a semantic context. That is, a semantic indicator field value may be not otherwise related to the data in a particular record, and the particular semantic field value can be arbitrarily assigned. That is, any value can be assigned to represent a particular semantic context, so long as it is uniquely associated with the semantic context (or, in some cases, multiple semantic contexts, but less than all of the semantic contexts, where semantic indicator values for each of multiple semantic indicator fields can be used to uniquely identify a particular semantic context, at varying levels of granularity).
The use of semantic cluster tables can improve database processing by reducing the number of requests made to the database system. For example, rather than carrying out multiple concurrent database operations for multiple tables, the concurrent database operations can be carried out for a single table—reducing the number of requests. In addition to reducing the number of requests, because the database operations can be simplified (e.g., a simple SELECT statement rather than complex or expensive SQL operations, such as UNION, JOIN, or multiple SELECT operations), processor use, and processing time, can be reduced. The use of a single table allows for aggregated reading of the table (e.g., combining values from multiple rows), allowing for fewer lines of data to be transferred.
In some cases, at least a portion of database requests resulting from parallelism or concurrency can reduced or eliminated. For example, a semantic cluster table can be read by an application, and concurrent access to the data provided at the application or logical layer, rather than having all requests be sent to the database layer. If desired, multiple copies of the semantic cluster table can be made at the application layer, such as to improve read or write performance.
The use of a single table can provide additional advantages. For example, a single table can allow for higher compression rates (either compression on a persistent storage medium or in-memory compression). In particular, because of its structure, further detailed below, semantic cluster tables are typically sparsely filled, which can allow for high compression.
A single table can also reduce the overall data volume associated with the data. For example, rather than having multiple technical keys fields associated with multiple tables, a single table can have a single technical key field. This can allow for shorter primary keys to be used, in both the table and database table indices. That is, the primary key can be the technical key, rather than a key composed of multiple fields, while the semantic can be preserved with the semantic key, which can be used to identify a table entry. The shorter technical, primary key can be used for database management, and the primary index, reducing database management overhead. Read operations can use the semantic key. In addition, the semantic cluster table typically has the same, or a similar, number of rows as the sum of normalized tables. Thus, consolidation into a single table does not create significant additional data volume.
The single semantic cluster table can increase scalability of an application or database system by reducing the workload on the database server, reducing CPU use. Run time can be reduced by lowering the complexity of the database operations and reducing transfers between a computing system executing an application and the database server.
As shown in
The tables 110 can be stored in the same format, or can be stored in different formats. The query operations 104 are shown as accessing tables 114, which can be row store tables (e.g., tables used for online transaction processing (OLTP) database operations). The query operations 104 are also shown as accessing tables 118, which can be column store tables (e.g., fact tables 122 and dimension tables 126 associated with online analytical processing (OLAP)).
The query operations 104 are shown as including typical SQL operations, including SELECT 130, JOIN 134, and UNION 138 operations. SQL operations can be associated with varying costs, which can include CPU resources expended in carrying out the SQL operations and the time cost of executing such operations. For instance, while SELECT operations 130 are typically low cost operations, UNION operations 138, and more particularly cross-table JOIN operations 134, are typically expensive, high-cost operations.
In addition to including multiple types of SQL operations, a query operation tree 100 can include multiple operations of each type. For example, the tree 100 is shown as including multiple JOIN operations 134, which can result in the tree particularly time and resource intensive.
Innovations described in the present disclosure can provide for structuring database information in a way that reduces or eliminates the need for expensive SQL operations, and can reduce the number of SQL operations that need to be executed by a database system. For example, rather than using expensive JOIN and UNION operations, the database information can be organized such that it can be retrieved using SELECT statements.
As explained above, in addition to including complex queries that can have multiple expensive SQL operations (such as described with respect to
The process 200 includes operations occurring at a logic tier 204 (which may be executing an application and may include multiple application servers for concurrently handling jobs or packages in a database process or step(s) thereof) and a data tier 208 (such as a database system, which may be a multi-threaded or multi-process database system capable of concurrently processing requests for a plurality of database clients, including a plurality of application servers for a particular application of the logic tier 204).
At 212, a database process, such as a process including one or more steps or tasks (e.g., DML statements, queries, or combinations thereof), is split into a plurality of jobs or packages. In a particular example, the splitting of the processes into jobs can be carried out by a parallelization component, such as the Framework for Parallel Processing of the HANA database system of SAP SE, of Walldorf, Germany. In addition to splitting the process into a plurality of jobs, the parallelization component can oversee job execution, including merging task results.
At 216, the logic tier 204, such as using the parallelization component, carries out a first step of the process. The first step of the process can be, for example, a first database query, query A. However, the first process step could include multiple queries, one or more DML statements, or a combination of one or more queries or one or more DML statements. Process step 1 is carried out concurrently for a plurality of jobs or packages.
In executing process step 1, a plurality of application servers can issue a plurality of concurrent database requests 220 to the data tier 208. The plurality of database requests associated with process step 1 are executed at the data tier 208 at 224. For example, process step 1 may involve the execution of query A. Query A can include a plurality of SQL statements (e.g., UNION, SELECT, JOIN). A plurality of execution results 228, such as read results, can be returned to the logic tier 204.
A second step of the process is carried out at the logic tier 204 at 232. Process step 2 is carried out concurrently for a plurality of jobs or packages. The logic tier 204 issues a plurality of concurrent database requests 236 to the data tier 208. The plurality of database requests associated with process step 2 are executed at the data tier 208 at 240. For example, process step 2 can include a query B, which can contain a plurality of SQL statements. A plurality of execution results 244 are returned to the logic tier 204 by the data tier 208.
A third process step is carried out by the logic tier 204 at 248. A plurality of concurrent database requests 252 associated with process step 3 are sent to the data tier 208 by the logic tier 204. The plurality of database requests 252 are executed by the data tier 208 at 256. For example, the database requests can include one or more DML statements.
As illustrated in
As explained in Examples 1-3, concurrent execution of complex queries (or other database processes) can drastically reduce database system performance. In part, this performance drop can result from normalization of database data. According to the present disclosure, all or a portion of database data can be organized in denormalized tables (or other types of denormalized database formats, such as documents). The denormalized tables can include semantic information, allowing data associated with one or more particular semantics to be selectively accessed in the table.
As shown, each of the tables 308 includes one or more attributes 320 and one or more key
For example, tables 308 for semantic indicator A, A1 . . . An, can be combined into the partially normalized table 312 for semantic indicator A. However, data for one or more of the tables 308 associated with semantic indicator A can be selectively retrieved by appropriate selection of the attributes, such as in a SQL statement. Attributes associated with a single table 308 can be used to select data for only that table. Attributes associated with multiple tables 308 (or all tables) can be used to select data at a coarser granularity.
The semantic indicators allow this concept to be extended, combining the partially normalized tables 312 into the denormalized semantic cluster table 316. Semantic cluster table 316 includes the attributes 320 and key
Data can be selectively retrieved from the semantic cluster table 316 by appropriate selection of attributes 320, semantic indicators 328, or a combination thereof. For example, data for attributes common to at least some of the tables 308 for multiple semantic indicators can be retrieved by selecting data with those attributes, but not restricting the data to a particular semantic indicator 328. If data for one or more particular semantic indicators 328 is desired, the semantic indicator can be used as a selection criteria (in which case the data retrieved will be equivalent to the partially normalized table 312 for the selected semantic indicator(s)) or one or more semantic indicators and one or more attributes can be used in combination as selection criteria, in which case a portion of the data from one or more of the partially denormalized table 312 will be retrieved (corresponding to at least some of the data from one or more of the tables 308 for the selected semantic indicator(s)).
Although
The semantic cluster table 404 can include a plurality of database fields 416. The database fields 416 can include technical keys 420, semantic key field(s) 424, semantic indicators 428, attributes 432, and key
The semantic key field(s) 424 can be used to uniquely identify another database record referenced by the row indicated by the technical key 420. For example, the semantic key can be a single, unique field in the record, or can be a composite key (e.g., a compound or concatenated key) formed from multiple fields of the record. The semantic key field(s) 424 can be used to identify a particular document, contract, account, individual, etc. That is, the semantic key field can be a foreign key for another database record, such as a record in another table. As shown in
Although semantic cluster table 404 is shown as including a single semantic key 424, in some implementations, the semantic cluster table can include multiple semantic keys. For example, certain semantic indicators 428 may be associated with different semantic keys 424 than other semantic indicators.
The semantic indicators 428 can be associated with one of the views 408, 412. Although, as mentioned above, the views 408, 412 may not necessarily be defined in the database system, the semantic indicators 428 can allow database operations, such as queries, to access database fields associated with one or more semantic indicators. Thus, the semantic indicators 428 can serve to segregate or identify information in the semantic cluster table 404 that would typically be represented in multiple, normalized tables. The semantic indicators 428 allow a single table to be used to provide information related to multiple semantics, while also allowing database operations to access only the data associated with the semantic indicators specified. By retrieving a single table from the database system, or writing to a single table, and using the semantic indicators (e.g., via SELECT statements) to reconstitute normalized data, fewer, and less complex, database system operations can be sent to the database system, which can increase the performance of the database system.
Attributes 432 can provide descriptive context for key
As will be further explained, attributes 432 can be used along with the semantic indicators 428 to select other data, such as key
Database view 408 and database view 412 both include attributes x1 and x2, which are included in the semantic cluster table 404. Database view 408 includes a single attribute, a1, which is in the semantic cluster table 404, but not in the database view 412. Database view 412 includes two attributes, b1 and b2, which are in the semantic cluster table 404, but are not in the database view 408. Each database view 408, 412 has different key figures, represented in the semantic cluster table 404. Database view 408 has key figures ak1 and ak2, while database view 412 has key figures bk1 and bk2. Although the database views 408, 412 are shown having different key figures, in some cases, the views could have at least some key figures that are the same.
The attributes 432, and semantic indicators 428, can be used to select particular key
The semantic cluster table typically has a plurality of values for the semantic indicator field, which serve as identifiers for particular semantics. In some cases, a semantic cluster table can include multiple semantic indicator fields, which can allow a greater degree of control over semantic granularity. At 512, data is stored in a plurality of key figure fields. Each value of the semantic indicator field is typically associated with at least one key figure field that is unique to that value. Each semantic indicator field value can be associated with multiple unique key figure fields.
The method 500 can include additional steps, corresponding to populating the semantic cluster table with data for other types of fields. For example, the semantic cluster table can include one or more attribute fields. Attribute fields can be unique to a particular semantic indicator field value, or can be common to multiple, or all, semantic indicator field values. Thus, the method 500 can include storing attribute values in one or more attribute fields.
In addition to a technical key field, the semantic cluster table can include a (or in some cases a plurality of) semantic key fields. A semantic key field can be used, for example, to identify data (e.g. rows or records) in another database table. Thus, the semantic key field value can serve as a foreign key. The method 500 can include storing semantic key field values in the semantic key field.
As explained in Example 4, values of the semantic indicator field 616, one or more attributes fields 620, or combinations thereof, can be used to retrieve desired data from the semantic cluster table 604. Thus, the semantic cluster table 604 can be used to provide the same query results as normalized tables, but with lower complexity queries, and fewer database system requests.
The semantic cluster table 604 includes two values for semantic indicator field 616, ‘a’ and ‘b’. Typically, a semantic cluster table will include a plurality of values for semantic indicator field 616, including more than two values. Query 1 and Query 2 each access data associated with both of the values of the semantic indicator field 616 of the semantic cluster table 604. However, a query can request data associated with any number of semantic indicator field values, including a single semantic indicator field value, multiple semantic indicator field values in the semantic cluster table (but less than all of the semantic indicator field values in the semantic cluster table), or with all of the values of the semantic indicator field in the semantic cluster table. Requesting data associated with multiple values of the semantic indicators field 616 can replicate more complex queries that would normally be executed on multiple normalized tables.
The results table 608 for Query 1 is shown as having a higher level of granularity than the results table 612 for Query 2. That is, the results table 608 preserves information that is lost in results table 612. In results table 608, rows X1 and X2 from semantic cluster table 604 have been combined (or aggregated), as they have the same value for the semantic key 628 and the same value for the semantic indicator field 616. Thus, the key
Results table 608 demonstrates that attributes 620 can serve as the granularity characteristics for the results (e.g., ways of distinguishing the key figure values associated with a particular row). It should be noted that the semantic context of the information in each row is maintained even though the semantic indicators field 616 is not present in the results table 608, and thus not used as a granularity characteristic. That is, as indicated by the titles of the attributes 620 and key
Results table 612 of Query 2 is show as more aggregated, having a lower (coarser) granularity, than results table 608 of Query 1. The information from the semantic cluster table 608 has been aggregated such that only the semantic key 628 and the attributes 620 common to both semantic contexts (e.g., attributes x1 and x2) remain for use as granularity characteristics. As with the results table 608, the values for the key
Row 650 also includes the values for key figures bk1 and bk2 of row X3 of semantic cluster table 604. Thus, all of the information associated with semantic key field value 1 is included in row 650. However, as the key
The semantic cluster table can be a semantic cluster table described Examples 4-7. The semantic cluster table can include a semantic indicator field having a plurality of values. Each value can be associated with a unique semantic context. The semantic cluster table can also include a plurality of attribute fields and a plurality of key figure fields. Each semantic indicator field value is uniquely associated with at least one of the plurality of key figure fields.
At 730, a plurality of queries are executed on the semantic cluster table. Each of the plurality of queries comprises a different combination of one or more of the semantic indicator values, one or more of the attribute fields, or a combination thereof. Thus, different queries, directed to different semantic contexts and at the same level of granularity, or directed to the same semantic context(s) and at different levels of granularity can be executed against the same semantic cluster table. In particular examples, the semantic cluster table can be buffered to further increase performance.
The computing platform 808 can provide the logic tier 204 of
A database operations engine 828 can be included in the computing platform 808 (or, in some cases, the application 816). The database operations engine 828 can carry out requests for database operations specified by the process definitions 824, including issuing queries, receiving query results, and issuing DML statements. The queries can include requests to carry out calculations or aggregations of data of the database system 812, such as specified in the process definitions 824.
The database operations engine 828 can operate in cooperation with a parallelization tool 832, such as the Framework for Parallel Processing (FPP) of SAP SE of Walldorf, Germany. The parallelization tool 832 can split a process (or tasks or steps thereof) of the database operations engine 828 into a plurality of packages or jobs, at least a portion of which can be carried out concurrently. In addition to splitting database processes into multiple jobs or packages, the parallelization tool 832 can oversee task execution, and can combine tasks results to be returned by the database operations engine 828 to the application 816.
The database operations engine 828 can read and write to a buffer 836, the operation of which will be further described below. The buffer 836 can be structured as a semantic cluster table 840, such as having the same format as a semantic cluster table 844 stored by the database system 812 and accessed by the processes being executed by the database operations engine 828.
The database system 812 can also include a buffer 848. Like the buffer 836, the buffer 848 can be structured as a semantic cluster table 852, such as having the same format as the semantic cluster table 844 stored in the database system 812. The semantic cluster table 844 can be stored in a data store 856, which can store additional data 860. For example, the additional data 860 can include records (e.g., data corresponding to documents associated with a process of the process definitions 824) referenced by the semantic cluster table 844. For example, the semantic cluster table 844 can include foreign key values (e.g., the values of the semantic key field 424 of
The database system 812 can include additional components. For example, the database system 812 can include a database operations processor 864. The database operations processor 864 can execute requests for database operations received from the computing platform 808, such as queries (including queries involving calculation or aggregation actions) and DML statements. Database operations, such as SQL statements, can be optimized by an optimizer component 868. The optimizer component 868 can, for a query, calculate an optimal query execution plan, determine whether such a plan has already been calculated, or update the execution plan.
Upon initiation of a process by the application 816, the database operations engine 828 can cause the contents of the semantic cluster table 844 of the database system 812 to be written to the buffered semantic cluster table 840 of the buffer 836. As part of the writing, the database operations processor 864 of the database system 812 can read data from the semantic cluster table 844 of the data store 856 and write it to the buffered semantic cluster table 852 of the buffer 848. The data from the buffered semantic cluster table 852 of the database system 812 can be sent to the computing platform 808. After being received, the data can be written to the buffered semantic cluster table 840, where it can be accessed by the database operations engine 828.
The use of the buffered semantic cluster table 840 at the computing platform 808 can help improve operational efficiency. For example, requests for database operations made by the database operations engine 828 can be executed against the buffered semantic cluster table 840, rather than having to be sent to the database system 812 for execution using the buffer semantic cluster table 852 or the semantic cluster table 844. Similarly, any changes to data, such as by DML statements, can be made to the buffered semantic cluster table 840 during process execution at the computing platform 808. When the process is completed (or, optionally, at one or more times during process execution), the changed data in the buffered semantic cluster table 840 can be sent by the computing platform 808 to the database system 812 where they can be written to the semantic cluster table 844 (optionally, first being written to the buffered semantic cluster table 852). The use of the buffered semantic cluster table 852 by the database system 812 can improve operations by making data more readily available for sending to the computing platform 808.
The architecture 800 can include more or fewer components than shown, and may be organized in other manners. For example, functionality of a particular component can be carried out by another component. In addition, in at least some cases, functionality can be carried out using multiple components. In a specific example, all or a portion of the functionality of the computing platform 808 and the database system 812 can be combined in a single system. Further, in some implementations, one or both of the buffer 836 and the buffer 848 can be omitted. For example, requests for a database operation can be sent by the computing platform 808 to be executed on the semantic cluster table 844.
The plurality of concurrent requests for a database operation are executed on the semantic cluster table at 920. The semantic cluster table can include a semantic indicator field having a plurality of values. Each value can be associated with a unique semantic context. The semantic cluster table can also include a plurality of attribute fields and a plurality of key figure fields. Each semantic indicator value is uniquely associated with at least one of the plurality of key figure fields.
For at least a portion of the plurality of concurrent requests, the portion itself comprises multiple concurrent requests, and each of the plurality of requests for a database operation comprises a different combination of one or more of the plurality of semantic indicator values, one or more of the plurality of attribute fields, or a combination thereof. Thus, different queries, directed to different semantic contexts and at the same level of granularity, or directed to the same semantic context(s) and at different levels of granularity, can be executed against the same semantic cluster table. In a particular example, the semantic cluster table can be buffered to further increase performance.
At 1014, the process is parallelized at the logic tier 1006, such as using the parallelization tool 832. The logic tier 1006 executes process step 1 at 1018. 1018 is carried out concurrently for multiple parallel tasks. The logic tier 1006 issues a plurality of requests 1022 for a database operation to the data tier 1010.
At 1026, the data tier 1010 executes a Query A associated with process step 1. Query execution at 1026 is carried out concurrently for a plurality of the requests 1022. The queries are carried out using a semantic cluster table. Thus, although
At 1034, the logic tier 1006 executes process step 2. The logic tier 1006 issues a plurality of requests 1038 for a database operation to the data tier 1010. At 1042, the data tier 1010 executes a Query B associated with process step 2. Query execution at 1042 is carried out concurrently for a plurality of the requests 1022 using the semantic cluster table. Query execution results 1046 are returned to the logic tier 1006 by the data tier 1010.
The logic tier 1006 executes process step 3 at 1050. The logic tier 1006 issues a plurality of requests 1054 for a database operation to the data tier 1010. The data tier 1010 executes a plurality of DML statements associated with process step 3 at 1058. In at least some cases, the DML statements can be grouped into a single transaction to be executed on the semantic cluster table.
At 1114, a database process is parallelized, such as into multiple tasks, each having multiple packages. At 1118, the logic tier 1106 requests all or a portion of a semantic cluster table maintained by the data tier 1110. For example, the logic tier 1106 may issue a query to retrieve data from the semantic cluster table. The data tier 1110 reads the semantic cluster table at 1122 and returns the requested data to the logic tier 1106. In at least some cases, the logic tier 1106 can receive the data (referred to as the semantic cluster table) in a buffer.
At 1126 and 1130, the logic tier 1106 can execute, respectively, process steps 1 and 2, including Queries A and B. The queries (and any other database operations associated with the process steps) can be executed on the buffered semantic cluster table of the logic tier 1106. Thus, in addition to accessing a single table, rather than multiple tables, only one communication between the logic tier 1106 and the data tier 1110 is required for the process steps to be executed.
A process step 3 is executed at the logic tier 1106 at 1134. Process step 3 can involve the execution of a plurality of DML statements on the buffered semantic cluster table of the logic tier 1106. The logic tier 1106, at 1138, can request an update to the semantic cluster table of the data tier 1110. For example, the update may be sent as a single DML statement (e.g., INSERT operation) or transaction. The update is executed on the semantic cluster table of the data tier 1110 at 1142. The data tier 1110 can return an acknowledgment of the update, such as a commit notification, to the logic tier 1106 to indicate that the update was successfully applied.
Writing to a single table, in a single transaction or statement, can reduce communications between the logic tier 1106 and the data tier 1110, as well as lowering the operational complexity of carrying out the update at 1142.
The technical solution can provide a semantic cluster table that can improve the performance of a database system, and other systems and components interacting with the database system. Using multiple, normalized tables can increase the number of requests to a database system, as well as the complexity of the requests. The disclosed semantic cluster tables can reduce the number of requests, which can improve scalability and lower resource use, such as reducing CPU use or network use in transmitting data between the database system and another system or component (e.g., a computing platform or application).
The number of requests can be further reduced by buffering the semantic cluster table on the computing device requesting the execution of a database process. For example, the semantic cluster table can be buffered on a computing platform operating an application that requests the execution of the database process. Rather than sending multiple read and write requests to be carried out by the database system, the semantic cluster table can be read to the buffer, read and write operations carried out on the buffered semantic cluster table, and any changes to the buffered semantic cluster table sent to the database system to be used to update the semantic cluster table stored on the database system.
The use of the semantic cluster table can provide additional technical solutions. For example, using a single table can allow for higher compression rates to be used, which can reduce the stored volume of data. A single table can also allow for fewer and shorter fields, such as technical key fields, to be used, also reducing data volume. The use of a single table can allow for aggregated reading of table rows, reducing the number of lines to be transferred.
In any of the inventive examples herein, a semantic cluster table can be buffered to increase system performance. For example, the semantic cluster table can be buffered at a computing platform, at a database system, or at both the computing platform and the database system. At the computing platform, the buffered semantic cluster table can improve performance by requiring fewer data transfers between the computing platform and the database system. At the database system, the buffered semantic cluster table can speed operations, as data can provided without accessing the database server.
With reference to
A computing system may have additional features. For example, the computing system 1200 includes storage 1240, one or more input devices 1250, one or more output devices 1260, and one or more communication connections 1270. An interconnection mechanism (not shown) such as a bus, controller, or network interconnects the components of the computing system 1200. Typically, operating system software (not shown) provides an operating environment for other software executing in the computing system 1200, and coordinates activities of the components of the computing system 1200.
The tangible storage 1240 may be removable or non-removable, and includes magnetic disks, magnetic tapes or cassettes, CD-ROMs, DVDs, or any other medium which can be used to store information in a non-transitory way and which can be accessed within the computing system 1200. The storage 1240 stores instructions for the software 1280 implementing one or more innovations described herein, and can store encoded data providing a semantic cluster table. The storage 1240 does not include signals per se.
The input device(s) 1250 may be a touch input device such as a keyboard, mouse, pen, or trackball, a voice input device, a scanning device, or another device that provides input to the computing system 1200. For video encoding, the input device(s) 1250 may be a camera, video card, TV tuner card, or similar device that accepts video input in analog or digital form, or a CD-ROM or CD-RW that reads video samples into the computing system 1200. The output device(s) 1260 may be a display, printer, speaker, CD-writer, or another device that provides output from the computing system 1200.
The communication connection(s) 1270 enable communication over a communication medium to another computing entity. The communication medium conveys information such as computer-executable instructions, audio or video input or output, or other data in a modulated data signal. A modulated data signal is a signal that has one or more of its characteristics set or changed in such a manner as to encode information in the signal. By way of example, and not limitation, communication media can use an electrical, optical, RF, or other carrier.
The innovations can be described in the general context of computer-executable instructions, such as those included in program modules, being executed in a computing system on a target real or virtual processor. Generally, program modules include routines, programs, libraries, objects, classes, components, data structures, etc. that perform particular tasks or implement particular abstract data types. The functionality of the program modules may be combined or split between program modules as desired in various embodiments. Computer-executable instructions for program modules may be executed within a local or distributed computing system.
For the sake of presentation, the detailed description uses terms like “determine” and “use” to describe computer operations in a computing system. These terms are high-level abstractions for operations performed by a computer, and should not be confused with acts performed by a human being. The actual computer operations corresponding to these terms vary depending on implementation.
In example environment 1300 of
Services can be provided by the cloud 1310 through service providers 1320, or through other providers of online services (not depicted). For example, cloud services can be customized to the screen size, display capability, and/or touch screen capability of a particular connected device (e.g., connected devices 1330, 1340, 1350).
In example environment 1300, the cloud 1310 provides the technologies and solutions described herein to the various connected devices 1330, 1340, 1350 using, at least in part, the service providers 1320. For example, the service providers 1320 can provide a centralized solution for various cloud-based services. The service providers 1320 can manage service subscriptions for users and/or devices (e.g., for the connected devices 1330, 1340, 1350 and/or their respective users).
Any of the computer-readable media herein can be non-transitory (e.g., volatile memory such as DRAM or SRAM, nonvolatile memory such as magnetic storage, optical storage, or the like) and/or tangible. None of the computer-readable media herein include signals per se. Any of the storing actions described herein can be implemented by storing in one or more computer-readable media (e.g., computer-readable storage media or other tangible media). Any of the things (e.g., data created and used during implementation) described as stored can be stored in one or more computer-readable media (e.g., computer-readable storage media or other tangible media). Computer-readable media can be limited to implementations not consisting of a signal.
Any of the methods described herein can be implemented by computer-executable instructions in (e.g., stored on, encoded on, or the like) one or more computer-readable media (e.g., computer-readable storage media or other tangible media) or one or more computer-readable storage devices (e.g., memory, magnetic storage, optical storage, or the like). Such instructions can cause a computing device to perform the method. The technologies described herein can be implemented in a variety of programming languages.
The technologies from any example can be combined with the technologies described in any one or more of the other examples. In view of the many possible embodiments to which the principles of the disclosed technology may be applied, it should be recognized that the illustrated embodiments are examples of the disclosed technology and should not be taken as a limitation on the scope of the disclosed technology. Rather, the scope of the disclosed technology includes what is covered by the following claims. All that comes within the scope and spirit of the claims is therefore claimed as the invention.