A system and method for querying and updating a database.

The system optimizes database operations by routing queries to row-oriented or column-oriented databases based on operation type and employs efficient update methods, addressing inefficiencies in handling large datasets and improving response times.

JP7955318B2Active Publication Date: 2026-11-24SERVICENOW INC
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
JP2024160564
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2020-02-07
Filing Date
2024-09-18
Publication Date
2026-11-24
Estimated Expiration
2040-11-05

AI Technical Summary

Technical Problem

Existing database architectures face inefficiencies in handling large datasets due to increased complexity and time required for query and update operations, particularly in row-oriented and column-oriented databases, which affect their ability to be used efficiently.

Method used

A system that directs query requests to appropriate database engines based on the type of operation, using row-oriented databases for filtering operations and column-oriented databases for analytical operations, and employs efficient data update methods in column-oriented databases by deleting and replacing rows with updated data structures.

Benefits of technology

Improves query response times and database efficiency by optimizing database usage based on operation type, reducing the time and complexity of handling large datasets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007955318000001
    Figure 0007955318000001
  • Figure 0007955318000002
    Figure 0007955318000002
  • Figure 0007955318000003
    Figure 0007955318000003
Patent Text Reader

Abstract

To improve query performance by querying an appropriate database engine on the basis of the operation of the query request.SOLUTION: In one aspect, this approach involves querying a row-oriented database, querying a column-oriented database, or blacklisting the query request. In particular, updating the column-oriented database involves delete and insert operations. By maintaining updated databases and querying appropriate database engines, the response time of a query request may be improved.SELECTED DRAWING: Figure 3
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] [Cross-Reference to Related Applications] This application claims priority to and the benefit of U.S. Provisional Patent Application No. 62 / 932,931, filed on November 8, 2019 and titled "SYSTEM AND METHODS FOR QUERYING AND UPDATING DATABASES," and also claims priority to and the benefit of U.S. Provisional Patent Application No. 62 / 960,567, filed on January 13, 2020 and titled "SYSTEMS AND METHODS FOR PERFORMING UPDATED QUERY REQUESTS IN A SYSTEM OF MULTIPLE DATABASE ENGINE." Both U.S. Provisional Patent Applications are incorporated herein by reference in their entirety for all purposes.

[0002] The present disclosure generally relates to systems and methods for querying and updating databases. More specifically, the present disclosure relates to systems and methods for querying an appropriate database in response to receiving a specific query request.

Background Art

[0003] This section is intended to introduce the reader to various aspects of the art that may be related to various aspects of the present disclosure that are described and / or claimed below. This discussion is believed to be helpful in providing the reader with background information to facilitate a better understanding of the various aspects of the present disclosure. Accordingly, it should be understood that these statements are to be read in this light, and not as admissions of prior art.

[0004] Organizations, regardless of size, rely on information technology (IT) and access to data and services for continuous operations and success. Each organization's IT infrastructure may include associated hardware resources (e.g., computing devices, load balancers, firewalls, switches, etc.) and software resources (e.g., productivity software, database applications, custom applications, etc.). These resources may be provided and provisioned by one or more different providers with varying settings or values.

[0005] Various types of data may be organized and stored in databases that are generated, stored, and maintained on different types of computer-based systems. Examples of such databases include row-oriented and column-oriented databases. Such databases may be used to store data ranging from personal information to data developed in large industrial, commercial, and government contexts. Thus, such stored datasets may range in size from insignificantly small to those that may contain tens of millions of records and data points or more. However, as the number of records and defined fields in a database increases, limitations of a given database architecture may affect the ability of that given database to be used efficiently. [Overview of the Initiative] [Means for solving the problem]

[0006] A summary of certain embodiments disclosed herein is given below. These embodiments are presented solely to provide the reader with a brief overview of these particular embodiments, and it should be understood that these embodiments are not intended to limit the scope of this disclosure. In fact, this disclosure may encompass various embodiments not shown below.

[0007] In one embodiment, the system includes a row-oriented database having a first set of data inputs, a column-oriented database having a second set of data inputs, and a computing device including a processor configured to execute computer-executable instructions stored in a non-temporary computer-readable medium. When executed by a processing component, the computer-executable instructions cause the processing component to receive a query request configured to identify one or more inputs in the first set of data inputs or the second set of data inputs, to determine whether the query request involves performing a filtering operation to identify one or more inputs or an analysis operation to identify one or more inputs, to query the row-oriented database in response to a query request involving a filtering operation, and to query the column-oriented database in response to a query request involving an analysis operation.

[0008] In another embodiment, a method for updating a column-oriented database containing a set of data inputs. According to this method, a processor receives instructions for correction to one or more inputs associated with the set of data. The processor identifies one or more inputs in the set of data inputs in response to receiving the instructions. The processor deletes one or more inputs in the set of data in the column-oriented database. The processor forms one or more delete data structures containing one or more inputs in a first save section of the column-oriented database. The processor inserts one or more updated inputs in place of one or more inputs in the set of data in the column-oriented database. The processor joins one or more delete data structures with an additional set of inputs associated with one or more previously executed query requests. The processor deletes one or more delete data structures and an additional set of inputs from the first save. The processor generates one or more additional delete data structures associated with one or more additional corrections to at least a portion of the set of data inputs in a second save section of the column-oriented database, the second save section being different from the first save section.

[0009] In an additional embodiment, a non-temporary computer-readable medium containing a computer-executable instruction is provided. When executed by a processing component, the computer-executable instruction causes the processing component to receive a query request directed to a column-oriented database, determine whether the query request corresponds to one of a predetermined list of query requests, and, in response to a query request corresponding to one of the predetermined list of query requests, query a row-oriented database based on the query request.

[0010] Various improvements to the features described above may exist in relation to various aspects of this disclosure. Further features may be incorporated into these various aspects. These improvements and additional features may exist individually or in any combination. For example, the various features considered below in relation to one or more of the embodiments shown may be incorporated individually or in any combination into any of the aforementioned aspects of this disclosure. The brief summary provided above is intended solely to familiarize the reader with certain aspects and circumstances of the embodiments of this disclosure without limiting the scope of the claims.

[0011] Various aspects of this disclosure may be better understood by reading the following detailed description and referring to the drawings. [Brief explanation of the drawing]

[0012] [Figure 1] This is a block diagram of an embodiment of a cloud architecture in which the embodiments of this disclosure may operate. [Figure 2] This is a block diagram of computing devices used in a computing system that may be present in Figure 1, according to the aspects of this disclosure. [Figure 3] This is a flowchart of the process used to determine the database engine for making a query request, according to the aspects of this disclosure. [Figure 4] This is a flowchart of the process used to update a column-oriented database according to the aspects of this disclosure. [Figure 5] This is a flowchart of the process used to evaluate the validity of a query request according to the aspects of this disclosure. [Modes for carrying out the invention]

[0013] One or more specific embodiments are described below. In an effort to provide a concise description of these embodiments, not all features of actual implementations are described in this specification. It should be acknowledged that in the development of any such actual implementation, many implementation-specific decisions must be made to achieve the developer's specific objectives, such as compliance with system-related and enterprise-related constraints, which may vary from implementation to implementation, as in any engineering or design project. Furthermore, while such development efforts may be complex and time-consuming, it should be acknowledged that they are nevertheless routine design, manufacturing, and production activities for those skilled in the art who are interested in this disclosure.

[0014] As used herein, the term “computing system” means an electronic computing device, such as, but not limited to, a single computer, a virtual machine, a virtual container, a host, a server, a laptop, and / or a mobile device, or a group of electronic computing devices working together to perform a function described as being performed on or by a computing system. As used herein, the term “medium” means one or more non-temporary computer-readable physical media that together store the content described as being stored therein. Embodiments may include non-volatile secondary storage, read-only memory (ROM), and / or random access memory (RAM). As used herein, the term “application” means one or more computing modules, programs, processes, workloads, threads, and / or sets of computing instructions executed by a computing system. Exemplary embodiments of an application include software modules, software objects, software instances, and / or other types of executable code.

[0015] As will be discussed in more detail below, the embodiments described herein improve the efficiency of querying databases. The increasing volume of data is leading to a continuous increase in the time and complexity required to execute and respond to query requests. As a result, directing query requests to the appropriate database engine may provide efficiency in response time and offer more useful analytical use cases. In one example, both row-oriented and column-oriented databases may contain sets of data inputs. After receiving a query request, the processor may determine whether the query request involves analytical operations. If the query request involves analytical operations, the processor may determine whether the column-oriented database has data inputs relevant to the query request. If the column-oriented database does indeed contain data inputs relevant to the query request, the processor may forward the query request to the column-oriented database for querying. If the column-oriented database does not contain data inputs relevant to the query request, a replicator component may copy the relevant data inputs from the row-oriented database to the column-oriented database before the processor forwards the query request to the column-oriented database. On the other hand, if the query request does not involve analytical operations, the processor may send the query request to a row-oriented database.

[0016] Query requests that do not involve analytical operations may be sent to a row-oriented database, depending on how the data is stored in the memory components (e.g., memory blocks) of the row-oriented database. A data block stored in the memory components of a row-oriented database contains multiple types of data for a column for a particular entity. With this in mind, updating data blocks from a row-oriented database is relatively easier to implement compared to a column-oriented database. On the other hand, depending on how the data is stored in the memory components of a column-oriented database, the processor may perform analytical operations more efficiently in a column-oriented database than in a row-oriented database. A data block stored in the memory components of a column-oriented database contains multiple values ​​for multiple entities, thereby associating multiple values ​​with the same data type. As a result, since the data types of each column may be similar, performing analytical operations such as gathering data into a specific column or query, which involves executing a specific algorithm on the data stored in each column, may be more efficient than performing the same algorithm on data stored in different rows.

[0017] With this in mind, updating data inputs in a column-oriented database can be relatively more difficult than updating data in a row-oriented database. For example, when performing an update that may be received as a row-oriented cell, the processor may read a certain number of rows in the row-oriented database in order to perform the update. However, due to its column-oriented nature, performing the same update in a column-oriented database may require reading a larger number of columns compared to the minimum number of rows required when performing the same row-oriented update in a row-oriented database. Therefore, updating a column-oriented database can be time-consuming, especially if the column-oriented database contains a large amount of data input. To address the problems of updating a column-oriented database, rows with data inputs to be updated may be deleted after receiving an instruction that a modification to the data input has been received. A new row with the updated data input may be inserted in place of the deleted row. Deleting a row creates a separate deleted data structure containing the data previously stored in the deleted row. Within the first storage section of the column-oriented database, these separate deleted data structures are joined with the data inputs associated with previously executed query requests (e.g., updates, modifications). A separate deleted data structure in the first storage section may be permanently deleted on a periodic basis (e.g., daily, monthly), so that the first storage section no longer contains the separate deleted data structure after the deletion operation has been performed. After the separate deleted data structure has been deleted, new query requests may be directed to the second storage section of the column-oriented database. In this way, the separate deleted data structure is maintained so that the storage section of the column-oriented database is utilized efficiently and additional sections of the column-oriented database are available for data storage and query operations.

[0018] With regard to the foregoing, the following drawings relate to various types of generalized system architectures or configurations that may be used to serve an organization in a multi-instance framework and in which this approach may be utilized. Correspondingly, examples of these systems and platforms may also relate to systems and platforms in which the technologies considered herein may be implemented or otherwise utilized. Referring here to Figure 1, a schematic diagram of an embodiment of a cloud computing system 10 in which embodiments of this disclosure may operate is shown. The cloud computing system 10 may include a client network 12, a network 14 (e.g., the Internet), and a cloud-based platform 16. In some implementations, the cloud-based platform 16 may be a configuration management database (CMDB) platform. In one embodiment, the client network 12 may be a local private network such as a local area network (LAN) with various network devices including, but not limited to, switches, servers, and routers. In another embodiment, the client network 12 represents an enterprise network that may include one or more LANs, virtual networks, data centers 18, and / or other remote networks. As shown in Figure 1, the client network 12 can connect to one or more client devices 20A, 20B, and 20C so that client devices can communicate with each other and / or with the network hosting platform 16. The client devices 20 may be computing systems and / or other types of computing devices commonly referred to as Internet of Things (IoT) devices, which access cloud computing services, for example, via a web browser application or via an edge device 22 that may act as a gateway between the client devices 20 and platform 16.Figure 1 includes the network hosting platform 16, other external applications, data sources, services, and administration or administrator devices, agents, or servers such as a management, instrumentation, and discovery (MID) server 24 that facilitates data communication between these networks and the client network 12. Although not specifically shown in Figure 1, the client network 12 may also include a combination of connected network devices (e.g., gateways or routers) or devices implementing customer firewalls or intrusion protection systems.

[0019] In the illustrated embodiment, Figure 1 shows that the client network 12 is coupled to network 14. Network 14 may include one or more computing networks, such as other LANs, wide area networks (WANs), the Internet, and / or other remote networks, to transmit data between the client device 20 and the network hosting the platform 16. Each computing network within network 14 may include wired and / or wireless programmable devices operating in the electrical and / or optical domains. For example, network 14 may include wireless networks, such as cellular networks (e.g., Global System for Mobile Communications (GSM) based cellular networks), IEEE 802.11 networks, and / or other suitable wireless-based networks. Network 14 may also utilize any number of network communication protocols, such as Transmission Control Protocol (TCP) and Internet Protocol (IP). Although not explicitly shown in Figure 1, network 14 may include various network devices, such as servers, routers, network switches, and / or other network hardware devices, configured to carry data over network 14.

[0020] In Figure 1, the network hosting platform 16 may be a remote network (e.g., a cloud network) that can communicate with client devices 20 via client network 12 and network 14. The network hosting platform 16 provides additional computing resources to client devices 20 and / or client network 12. For example, by utilizing the network hosting platform 16, users of client devices 20 can build and run applications for various enterprise, IT and / or other organization-related functions. In one embodiment, the network hosting platform 16 is implemented in one or more data centers 18, each data center 18 may correspond to a different geographical location. Each data center 18 includes a plurality of virtual servers 26 (also referred to herein as application nodes, application servers, virtual server instances, application instances, or application server instances), each virtual server 26 may be implemented on a physical computing system such as one electronic computing device (e.g., one physical hardware server) or across multiple computing devices (e.g., multiple physical hardware servers). Examples of virtual servers 26 include, but are not limited to, web servers (e.g., a unified Apache implementation), application servers (e.g., a unified Java virtual machine), and / or database servers (e.g., a unified relational database management system (RDBMS) catalog).

[0021] To utilize computing resources within platform 16, a network operator may choose to configure data centers 18 using various computing infrastructures. In one embodiment, one or more of the data centers 18 are configured using a multi-tenant cloud architecture such that one of the server instances 26 handles requests from multiple customers and serves multiple customers. The data center 18 with a multi-tenant cloud architecture mixes and stores data from multiple customers, and multiple customer instances are assigned to one of the virtual servers 26. In a multi-tenant cloud architecture, a specific virtual server 26 distinguishes and isolates data and other information from various customers. For example, a multi-tenant cloud architecture can assign a specific identifier for each customer to identify and isolate data from each customer. Generally, implementing a multi-tenant cloud architecture can result in various drawbacks, such as the failure of a particular server instance 26 that results in outages for all customers assigned to that server instance.

[0022] In another embodiment, one or more of data centers 18 are configured using a multi-instance cloud architecture to provide all customers with one or more of their own unique customer instances. For example, a multi-instance cloud architecture can provide each customer instance with its own dedicated application server and dedicated database server. In other examples, a multi-instance cloud architecture may deploy one physical or virtual server 26, such as one or more dedicated web servers, one or more dedicated application servers, and one or more database servers, for each customer instance, and / or other combinations of physical and / or virtual servers 26. In a multi-instance cloud architecture, multiple customer instances can be installed on each of one or more respective hardware servers, with each customer instance being allocated a portion of the physical server resources, such as computing memory, storage, and processing power. By doing so, each customer instance has its own unique software stack that provides the benefits of data isolation, relatively little downtime for customers to access platform 16, and customer-driven upgrade schedules.

[0023] Although FIG. 1 illustrates a particular embodiment of a cloud computing system 10, the disclosure is not limited to the particular embodiment illustrated in FIG. 1. For example, although FIG. 1 illustrates that platform 16 is implemented using data centers, other embodiments of platform 16 are not limited to data centers and may utilize other types of remote network infrastructure. The use and discussion of FIG. 1 is only an example to facilitate ease of description and elaboration, and is not intended to limit the disclosure to the specific examples shown in FIG. 1.

[0024] As may be appreciated, each of the architectures and frameworks discussed with respect to Figure 1 incorporate various types of computing systems (e.g., servers, workstations, client devices, laptops, tablet computers, mobile phones, etc.) throughout. For completeness, a brief, high-level overview of components typically found in such systems is provided. As may be appreciated, this overview is merely intended to provide a high-level, generalized view of components typical in such computing systems, and should not be viewed as limiting in terms of components discussed or omitted from discussion.

[0025] By way of background, it may be appreciated that the present approach may be implemented using one or more processor-based systems such as those shown in Figure 2. Likewise, applications and / or databases utilized in the present approach may be stored, employed, and / or maintained in such processor-based systems. As may be appreciated, such systems as shown in Figure 2 may exist in a distributed computing environment, a networked environment, or other multi-computer platform or architecture. Likewise, systems such as that shown in Figure 2, may be used in supporting or communicating with one or more virtual environments or computational instances on which the present approach may be implemented.

[0026] With this in mind, the exemplary computer system may include some or all of the computer components shown in Figure 2. Figure 2 generally shows a block diagram of the exemplary components of the computing system 200 and their potential interconnections or communication paths along one or more buses, etc. As shown, the computing system 200 may include, but not limited to, a variety of hardware components such as one or more processors 202, one or more buses 204, memory 206, input devices 208, power supplies 210, network interfaces 212, user interfaces 214, and / or other computer components that help perform the functions described herein.

[0027] One or more processors 202 may include one or more microprocessors capable of executing instructions stored in memory 206. In some embodiments, instructions may be pipelined from the execution stack of each process in memory 206 and stored in the instruction cache of one or more processors 202 for faster and more efficient processing. Additionally or alternatively, one or more processors 202 may include application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), and / or other devices designed to perform some or all of the functions considered herein without calling instructions from memory 206.

[0028] Regarding other components, one or more buses 204 include appropriate electrical channels for providing data and / or power between various components of the computing system 200. Memory 206 may include any tangible, non-temporary, computer-readable storage medium. Although shown as a single block in Figure 1, memory 206 can be implemented using multiple physical units of the same or different types in one or more physical locations. Input devices 208 correspond to structures for inputting data and / or commands to one or more processors 202. For example, input devices 208 may include a mouse, touchpad, touchscreen, keyboard, etc. Power supplies 210 can be any appropriate source for powering various components of the computing device 200, such as line power and / or battery sources. Network interfaces 212 include one or more transceivers that can communicate with other devices on one or more networks (e.g., communication channels). Network interfaces 212 may provide a wired network interface or a wireless network interface. User interfaces 214 may include a display configured to display text or images transmitted from one or more processors 202. In addition to and / or instead of a display, the user interface 214 may include other devices for interface with the user, such as lights (e.g., LEDs) and speakers.

[0029] With this in mind, to improve efficiency in responding to query requests, the computing system 200, as discussed in Figure 2, may make query requests in specific databases based on the type of action performed by the query request. Therefore, Figure 3 is a flowchart of process 300 in which the computing system 200 may select a specific database to make a query request. Before proceeding, it should be noted that process 300 serves as a non-restrictive example related to routing query requests based on the type of action performed by the query request. That is, process 300 may be an example of a default routing method when limited knowledge related to making a query request in the optimal database is available. On a periodic basis, after the computing system 200 has made a query request in a specific database (e.g., a row-oriented database) based on process 300, the computing system 200 may make the same query request in an alternative database (e.g., a column-oriented database) to obtain information about making the query request in two or more database engines. Based on an analysis of information regarding making query requests in different database engines, the computing system 200 may make subsequent query requests in a specific database based on determining the optimal database for making the query request (e.g., time efficiency, fastest results, computational efficiency).

[0030] Process 300 begins with the computing system 200 receiving a query request from a client server (block 302). The behavior of the query request may vary in complexity and response time (i.e., the amount of time it takes for the query request to be made). The response time for a query may also vary depending on the different types of databases. Exemplary query requests may include, but are not limited to, collecting data in tabular form, analyzing data to render a report, or filtering data in an ad-hoc manner to identify data entries and corresponding lines. Query requests may be received periodically from a client server or any other suitable computing device.

[0031] When a query request is received by the computing system 200, the computing system 200 may determine the type of operation the query request performs. For example, in block 304, the computing system 200 may determine whether the query request involves a filtering operation (block 304). If the query request involves a filtering operation, the computing system 200 may proceed to block 306 and send the query request to a row-oriented database where data inputs are organized and stored in row format (block 306). In some embodiments, the row-oriented database may store data according to each row in adjacent memory blocks. As a result, read and write operations may be performed efficiently for records stored in the row-oriented database due to the organization of data corresponding to the data stored in the memory blocks. For example, the row-oriented database may be used to perform filtering operations, which can identify records or data inputs that match certain criteria. In one embodiment, the filtering operation may involve reading through rows to identify values ​​associated with a particular data input in the row-oriented database. In another embodiment, the filtering operation may involve replacing a value in a data input with another value.

[0032] Referring again to block 304, if the query request is not a filtering operation, the computing system 200 may proceed to block 308. In block 308, the computing system 200 may determine whether the query request involves an analytical operation. If the query request involves an analytical operation, the computing system 200 may proceed to block 310. In block 310, the computing system 200 may determine whether a column-oriented database contains the data related to the query request. If the column-oriented database contains the requested data, the computing system 200 may, in block 312, send the query request to the column-oriented database to perform the operation indicated by the query request. The column-oriented database may contain data inputs organized and stored in a columnar format. In some embodiments, the column-oriented database may organize the stored data according to their arrangement or order in columns in adjacent memory blocks. Thus, certain types of analytical processing may be performed more efficiently compared to using a row-oriented database. While read and write operations may be slower in column-oriented databases compared to row-oriented databases, column-oriented databases can be well-suited for operations applicable to the entire dataset, such as analytical operations. For example, analytical operations may involve collections spanning numerous rows and columns. Examples of analytical operations may include gathering data inputs into lists, tables, or groups, and rendering reports from the data inputs and lines.

[0033] Referring again to block 310, if the column-oriented database does not contain data related to the query request, the computing system 200 may proceed to block 314 and send the query request to a replicator component. In some embodiments, the replicator component may be deployed as a service on the same server where the column-oriented database is deployed. The replicator component may have access via source credentials to the initial database and target credentials to the target database. In one embodiment, the initial database may be a row-oriented database, while the target database may be a column-oriented database. For example, the replicator component may have permission to read the query request and data input from the initial database and copy the data input to the target database in a column-oriented format. After the relevant data input related to the query request has been copied from the initial database to the target database, the query request may be sent to the target database (e.g., a column-oriented database).

[0034] As discussed above, after the computing system 200 receives a query request, it may determine the type of action the query request will perform. If the query request involves updating a column-oriented database, the computing system 200 performs process 400. Figure 4, a flowchart of process 400, illustrates in more detail how the computing system 200 updates the column-oriented database. Process 400 begins when it receives instructions to modify one or more data entries in the column-oriented database (block 402). The modification may involve updating or changing values ​​or lines in one or more data entries in the column-oriented database. Based on the instructions to modify values ​​in one or more data entries, the computing system 200 may identify the specific data entries in the column-oriented database to be updated (block 404). In some embodiments, the modification may relate to insertion, deletion, or update operations performed in one or more data entries. Examples of modifications may include invoking functions to perform tasks such as resulting in updates to different tables, automatically generating or transforming values ​​or lines for the data entries to be updated, or issuing alerts.

[0035] After one or more data entries to be updated are identified, the computing system 200 may delete the row containing the data entries to be updated via batch processing after receiving an instruction that corrections to the data entries have been received (block 406). Batch processing may include a process that collects and stores data for processing at a scheduled time when a threshold amount of data has accumulated, rather than processing each data entry one at a time. In one embodiment, a series of query requests or jobs may run on a computer with minimal manual intervention as a result of batch processing techniques. In addition, batch processing may allow query requests or jobs to be processed at a scheduled time when computing resources are expected to be used less frequently or when there are expected to be fewer jobs to process compared to the average amount of jobs the database is expected to process over a given period. For example, batch processing may involve report generation and data format conversion.

[0036] As described above, column-oriented databases may not perform read and write operations efficiently. However, due to their column-oriented nature, in order to perform a read or write operation, the column-oriented database, computing system 200 may read through a large number of memory blocks before performing an equivalent row-oriented update. This process can be particularly time-consuming if the column-oriented database contains a large amount of data input. Instead, to implement the update more efficiently, computing system 200 may delete the rows of memory blocks associated with the data input being updated from the memory blocks, and computing system 200 may replace the memory blocks in block 406 with new rows consisting of the updated data input.

[0037] After performing a delete operation to delete a row that has data inputs to be updated, the computing system 200 may form one or more separate delete data structures (block 408). These separate delete data structures may represent data previously stored in the deleted row and may be located in a first storage section of a memory component (e.g., a memory block) of a column-oriented database. In place of the deleted row, the computing system 200 may insert a new row with updated data inputs or data inputs whose values ​​have been changed through batch processing (block 410). Subsequently, within the first storage section, the computing system 200 may join the separate delete data structures with data inputs related to previously executed query requests (e.g., updates, modifications) (block 412).

[0038] In block 414, the computing system 200 may permanently delete a separate deletion data structure in the first storage section on a periodic basis (e.g., monthly, daily), so that the first storage section no longer contains the separate deletion data structure after the deletion operation has been performed. After the separate deletion data structure has been deleted, the computing system 200 may direct query requests to the second storage section of the column-oriented database (block 416). From this point onward, the computing system 200 may direct data input for new query requests to the second storage section, while the computing system 200 permanently removes the first storage section from its memory components (block 418). This preserves the separate deletion data structure so that the storage sections of the column-oriented database are utilized efficiently and additional sections of the column-oriented database are available for data storage and query operations.

[0039] As mentioned above, query requests, including analytical operations, may be directed to column-oriented databases. However, in some cases, query requests directed to column-oriented databases may be rerouted to row-oriented databases or blacklisted. A query request may be sent to a row-oriented database if it is part of a given list of blacklisted requests. A given list of blacklisted requests may include date trend requests, time trend requests, point queries, large field projections, or any combination thereof. A query may be executed in a column-oriented database if the response time of the query request in the row-oriented database is not less than a time threshold amount X. However, if the query fails in the column-oriented database due to issues such as syntax errors or timeouts, it may be blacklisted or rerouted to a row-oriented database. Blacklisting a query request or rerouting a query request to a row-oriented database may also involve determining that the response time of the query request executed in the column-oriented database is greater than a time threshold amount Y. Another example of blacklisting a query request or rerouting it to a row-oriented database is when the sum of the response time of a query request made in a column-oriented database and a time threshold amount Z is greater than the response time of a query request made in a row-oriented database. Blacklisted queries may also be re-evaluated periodically. If blacklisting is disabled, blacklisted queries may be removed from the blacklist.

[0040] A process by which computing system 200 may blacklist query requests intended for a column-oriented database is shown in Figure 5. For example, Figure 5 is a flowchart of process 500 that computing system 200 may use to determine whether a column-oriented query request may be blacklisted and therefore ignored or rerouted to a row-oriented database. Process 500 begins with computing system 200 receiving a column-oriented query request (block 502). As mentioned in Figure 3, a column-oriented query request may involve analytical operations that may involve collecting or grouping data.

[0041] The computing system 200 may follow steps within process 530 to determine whether a query request is sent to a row-oriented database (block 516) and whether the query request is blacklisted (block 518). Blacklisting is a mechanism that controls which elements (e.g., query requests) are allowed access to computing entities (e.g., databases). For example, certain query requests that the computing system 200 considers blacklisting may be denied access to certain databases. In block 504, the computing system 200 may determine whether a query request is part of a predetermined list of blacklisted requests (block 504). A predetermined list of blacklisted requests may include date trend requests, time trend requests, point queries, large field projections, or any combination thereof. In one embodiment, a point query may provide analysis for a single data entry in the database, while a large field projection may control which fields in the database may be displayed in response to a query request. If the query request is part of a given list of blacklist requests, the computing system 200 may send the query request to a row-oriented database (block 516), which may be more appropriate for the operation of being part of a given list.

[0042] If a query request is not part of a predetermined list, the computing system 200 may determine whether the response time for making the query request in the row-oriented database is less than a time threshold amount X (block 506). In some embodiments, the time threshold amount X may be configurable and may be set to 100 milliseconds, 1 second, 10 seconds, or any appropriate time period. If the expected response time for making the query request in the row-oriented database is greater than the time threshold amount X, the computing system 200 may blacklist the query request by updating a predetermined list of query requests to include the query request in response to an expected response time less than the time threshold amount X (block 518). In another example, the computing system 200 may query the row-oriented database based on the expected response time of a query request less than the time threshold amount X (block 516).

[0043] Otherwise, if the response time for making a query request in a row-oriented database is expected to be less than a time threshold amount X, the computing system 200 may proceed to block 508 and make a query request in a column-oriented database. As a result, the computing system 200 may check whether the query request is invalid in the column-oriented database (block 510). If the query request is indeed invalid in the column-oriented database, the computing system 200 may blacklist the query request by updating a predetermined list of query requests to include the query request in response to the invalid query request in the column-oriented database (block 518). In another embodiment, the computing system 200 may query the row-oriented database based on the query request being invalid in the column-oriented database (block 516). In one embodiment, a query request may be invalid in a column-oriented database due to a syntax error or a timeout. For example, misplacing characters in operation may result in a syntax error, which prevents the query request from being executed. In another example, the server may time out waiting to execute the query request.

[0044] In block 510, if the query request is not rejected in the column-oriented database, the computing system 200 may determine whether the query request satisfies the conditions in blocks 512 and 514. In block 512, if the expected response time of the query request in the column-oriented database is greater than a time threshold Y, the computing system 200 may blacklist the query request by updating a predetermined list of query requests to include the query request in response to the expected response time of query requests greater than the time threshold Y (block 518). For example, the computing system 200 may query a row-oriented database based on the expected response time of query requests greater than the time threshold Y (block 516).

[0045] If the expected response time for a query request in a column-oriented database is less than a time threshold amount Y, the computing system 200 proceeds to block 514. In block 514, if the expected response time for a query request in a column-oriented database is greater than the response time for a query request in a row-oriented database by a time threshold amount Z, the computing system 200 blacklists the query request by updating a predetermined list of query requests to include the query request in response to the sum of the expected response time and the time threshold amount Z, which is greater than the response time for a query request in a row-oriented database (block 518). In another example, the computing system 200 may query a row-oriented database based on the sum of the expected response time and the time threshold amount Z, which is greater than the response time for a query request in a row-oriented database (block 516).

[0046] The threshold values ​​Y and Z for both time periods may be configurable and may be set to 2 seconds, 5 seconds, or any appropriate time period. The expected response time for a query request in a column-oriented database may be calculated based on a model or simulation of the query request implemented in the column-oriented database. The average response time calculated based on the simulation may be set as the expected response time. Similarly, the expected response time for a query request in a row-oriented database may be calculated based on a model or simulation of the query request implemented in the row-oriented database.

[0047] In one example, if computing system 200 does not execute a query request in a row-oriented database, the processor may lack data related to the query request made in the row-oriented database, and the query request may be blacklisted. Subsequently, computing system 200 may send the now blacklisted query request to the row-oriented database to retrieve the related data before performing process 530.

[0048] Otherwise, if the expected response time for a query request in a column-oriented database is less than the response time for a query request in a row-oriented database by a time threshold amount Z, the computing system 200 may wait for a time threshold amount W (block 520). The time threshold amount W is configurable and may be set to 24 hours or any appropriate time period. After waiting for the time threshold amount W, the computing system 200 may search for blacklisted query requests in order to re-evaluate them (block 522). In some cases, the computing system 200 may search for recently blacklisted query requests for re-evaluation. In other cases, the computing system 200 may search for query requests that have been blacklisted twice or at least two times for re-evaluation. The computing system 200 may even search for query requests that are a combination of recently being blacklisted and being blacklisted two or more times. The computing system 200 may re-evaluate blacklisted query requests based on the steps in process 530 (block 524). In block 526, computing system 200 determines whether the decision to blacklist a query request is valid. If blacklisting is invalid, blacklisted query requests may be removed from the blacklist (block 528). Otherwise, if blacklisting is valid, blacklisted query requests may be ignored and remain blacklisted (block 518). In some cases, if a blip, error, or bug in the backend of computing system 200 results in unintended blacklisting, computing system 200 may remove blacklisted query requests from the blacklist.

[0049] The specific embodiments described above are presented as examples, and it should be understood that these embodiments may give rise to various modifications and alternative forms. The claims are not intended to be limited to any specific form disclosed, but are intended to cover all modifications, equivalents, and alternatives that fall within the spirit and scope of this disclosure.

[0050] The technologies provided and claimed herein are applied by reference to and in relation to material objects and specific examples of a practical nature that demonstrably improve the art in question, and are therefore not abstract, intangible, or purely theoretical. Furthermore, if any claim appended to the end of this specification contains one or more elements designated as “means for performing a certain function” or “steps for performing a certain function,” such elements are intended to be construed under 35 U.S. SC 112(f). However, in any claim containing elements designated in any other form, such elements are not intended to be construed under 35 U.S. SC 112(f).

Claims

1. One or more processors receive a column-oriented query request related to a set of data entries in a column-oriented database, The process includes one or more processors querying a row-oriented database based on a column-oriented query request, in accordance with a determination that the column-oriented query request corresponds to one of a predetermined list of query requests. A method wherein the predetermined list of query requests includes a blacklist of query requests for identifying query requests that should not use the column-oriented database.

2. A row-oriented query request includes a filtering operation to identify one or more data entries from a plurality of data entries in a row-oriented database that match one or more conditions defined by the row-oriented query request, The method according to claim 1, wherein the column-oriented query request includes an analytical operation which includes performing one or more algorithms on the set of data entries in the column-oriented database.

3. The method according to claim 2, wherein the filtering operation includes identifying a plurality of data entries in the row-oriented database.

4. The method according to claim 2, wherein the filtering operation includes replacing one or more values ​​associated with a plurality of data entries in the row-oriented database.

5. The method according to claim 2, wherein the analysis operation includes collecting one or more data entries related to the set of data entries in the column-oriented database.

6. The method according to claim 5, wherein the analysis operation includes generating a report based on the results of the collection.

7. The method according to claim 5, wherein the collecting includes performing one or more additional algorithms on one or more data entries relating to the set of data entries in the column-oriented database.

8. The process includes one or more processors detecting the absence of one or more data entries in the set of data entries in the column-oriented database, and sending the column-oriented query request to the replicator components, The method according to claim 2, wherein the replicator component is configured to copy one or more data entries of the set of data entries from the row-oriented database to the column-oriented database in response to receiving the column-oriented query request.

9. In accordance with the determination that the column-oriented query request does not correspond to a query request in a predetermined list of query requests, The one or more processors analyze a first expected response time for the column-oriented query request performed in the row-oriented database, The method according to claim 2, wherein one or more processors make the column-oriented query request in the row-oriented database in response to a first expected response time that is less than a first threshold amount of time.

10. In response to the first expected response time which is not smaller than the first threshold amount of the aforementioned time, The one or more processors analyze a second expected response time for the column-oriented query request performed in the column-oriented database, The method according to claim 9, comprising the one or more processors making the column-oriented query request in the row-oriented database in response to a second expected response time that is greater than a second threshold amount of time.

11. The method of claim 9, comprising updating a predetermined list of query requests to include the column-oriented query requests in response to a first expected response time that is less than a first threshold amount of the time.

12. In response to the first expected response time which is not smaller than the first threshold amount of the aforementioned time, The one or more processors perform the column-oriented query request in the column-oriented database, Determining whether the column-oriented query request fails in the column-oriented database due to a syntax error or timeout, In response to a failed column-oriented query request in the column-oriented database, the row-oriented database is queried based on the column-oriented query request. The method according to claim 9, comprising updating a predetermined list of query requests in the column-oriented database to include the column-oriented query requests in response to any column-oriented query requests that have failed.

13. The method according to claim 10, comprising updating a predetermined list of query requests to include the column-oriented query requests in response to a second expected response time that is greater than a second threshold amount of the time.

14. Processor and Accessible by the aforementioned processor, and when executed by the aforementioned processor, the aforementioned processor, Receiving column-oriented query requests related to a set of data entries in a column-oriented database, The process involves querying a row-oriented database based on a column-oriented query request, in accordance with the determination that the column-oriented query request corresponds to one of a predetermined list of query requests. A memory containing one or more programs that perform an operation including the above, The system includes a predetermined list of query requests, which includes a blacklist of query requests for identifying query requests that should not use the column-oriented database.

15. A row-oriented query request includes a filtering operation to identify one or more data entries from a plurality of data entries in a row-oriented database that match one or more conditions defined by the row-oriented query request, The system according to claim 14, wherein the column-oriented query request includes an analytical operation which includes performing one or more algorithms on the set of data entries in the column-oriented database.

16. The system according to claim 15, wherein the filtering operation includes identifying a plurality of data entries in the row-oriented database.

17. The system according to claim 15, wherein the filtering operation includes replacing one or more values ​​associated with a plurality of data entries in the row-oriented database.

18. The system according to claim 15, wherein the analysis operation includes collecting one or more data entries related to the set of data entries in the column-oriented database.

19. When executed by one or more processors, the one or more processors: Receiving column-oriented query requests related to a set of data entries in a column-oriented database, The process involves querying a row-oriented database based on a column-oriented query request, in accordance with the determination that the column-oriented query request corresponds to one of a predetermined list of query requests. Store one or more programs that perform an action including, The predetermined list of query requests includes a tangible, non-temporary, computer-readable storage medium containing a blacklist of query requests for identifying query requests that should not be allowed to use the column-oriented database.

20. A row-oriented query request includes a filtering operation to identify one or more data entries from a plurality of data entries in a row-oriented database that match one or more conditions defined by the row-oriented query request, The tangible, non-temporary, computer-readable storage medium according to claim 19, wherein the column-oriented query request includes an analytical operation that involves performing one or more algorithms on the set of data entries in the column-oriented database.

Citation Information

Patent Citations

  • Data management system and data management method

    JP2019021062A

  • Query handling in databases with replicated data

    US20080281784A1

  • Method and system for performing query optimization using a hybrid execution plan

    US20120047158A1