OPTIMAL QUERY PROGRAMMING FOR RESOURCE USAGE OPTIMIZATION

Optimal query scheduling based on data volatility and resource availability addresses inefficiencies in existing methods by ensuring timely execution of low-volatility queries, enhancing system responsiveness.

FR3106224B1Inactive Publication Date: 2024-09-13GOOGLE LLC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
FR2020000264
Authority / Receiving Office
FR · FR
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-01-13
Publication Date
2024-09-13
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing query scheduling methods fail to account for varying response time requirements and resource utilization, leading to inefficiencies and potential delays in processing time-sensitive queries.

Method used

A method and system for optimal query scheduling that considers data volatility and resource availability to identify an intermediate execution time for queries with low data change frequency, thereby optimizing resource usage and ensuring timely execution of sensitive queries.

Benefits of technology

Enhances query processing efficiency by reducing overhead and ensuring timely execution of queries with low data volatility, thereby improving the responsiveness of information retrieval systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000017_0000
    Figure 00000017_0000
  • Figure 00000018_0000
    Figure 00000018_0000
  • Figure 00000018_0001
    Figure 00000018_0001
Patent Text Reader

Abstract

Embodiments of the present invention provide a method, a system, and a computer program product for optimal query scheduling for resource utilization. In one embodiment of the invention, a method for optimal query scheduling includes receiving, in a data processing system for retrieving information at a current time, a request to postpone the execution of a specified query to a later time after the current time. The method further includes determining a data change frequency corresponding to a field referenced in the specified query. Then, provided that the change frequency is less than a threshold value, an intermediate time before the later time but after the current time can be identified, and the specified query can be scheduled to be executed at the intermediate time instead of the later time.However, the specified request can otherwise be scheduled for a later time as originally requested. See Figure 1 for the abbreviation.
Need to check novelty before this filing date? Find Prior Art

Description

Description Title of the invention: OPTIMAL QUERY PROGRAMMING FOR OPTIMIZING THE USE OF RESOURCES Technical field of the invention

[0001] = The present invention relates to the field of query programming and more particularly the pre-programming of queries for execution before a time of execution of the requested request. Technical background

[0002] — A query is a request for information from a retrieval system information. There are three general methods for asking queries: via menu, by example and by query language formulation. In the first case, a query is formulated and issued based on the selection of parameters from a menu. In the In the second case, the information retrieval system presents a record blank and allows the end user to specify the fields and values ​​that will be defined. finish the request. In the third case, the end user formulates the request by using a styled query written in a query language. This latter method is the most complex because it requires the use of a specialized language, but it is also the most powerful because it is the query mode of a recovery system of information that is least restrictive.

[0003] …— Requests are generally issued either on demand through a query interface, either programmatically at runtime computer program. But requests can also be issued in mode batch. That is to say, a request can be specified at a given time, but The execution of the query on the information retrieval system can be postponed to a later time. In this regard, in a recovery system Regarding information, it is common for several users to submit information simultaneously. queries to the database for execution. Therefore, if the retrieval system- information processing does not have sufficient computing resources to to execute all submitted requests simultaneously, the recovery system information must delay the execution of one or more of these queries while Only a subset of requests can be processed immediately. The process that consists of determining which requests should be deferred and when deferred queries must be executed; this is known as scheduling. requests.

[0004] — One way to program queries is to execute the queries incoming requests are processed in the order they arrive; this is called the "first-come, first-served" approach. However, the first-come, first-served approach does not differentiate between requests with varying response time requirements, as some requests are more time-sensitive than others. If requests are simply scheduled according to their arrival order, some time-sensitive requests may be forced to wait for non-time-sensitive requests, which can negatively impact the usability and responsiveness of the information retrieval system. Query scheduling can also be performed using a fixed priority. In fixed-priority scheduling, each query is assigned a priority based on one or more properties known at the time the query arrives, such as the identity or type of the requester. Subsequently, each query can be scheduled according to its assigned priority. As can be seen, fixed-priority scheduling avoids the problems of a first-come, first-served approach, since time-sensitive queries can be prioritized over less time-sensitive ones. However, fixed-priority scheduling cannot accommodate "heavy" queries, which take a relatively long time to execute, or "light" queries, which take a relatively short time to execute, on the order of milliseconds or seconds, for example. Summary of the invention The embodiments of the present invention fill the gaps in the prior art with respect to query programming and provide a novel and non-obvious method, system, and computer program product for optimal query programming for resource utilization. In one embodiment of the invention, a method for optimal query programming includes receiving, in a data processing system retrieving information at a current time, a request to postpone the execution of a specified query to a later time after that current time. The method further includes determining a data change frequency corresponding to a field referenced in the specified query.Then, provided that the change frequency is less than a threshold value, an intermediate time before the later time but after the current time can be identified, and the specified query can be scheduled to be executed at the intermediate time instead of the later time. But, otherwise, the specified query can be scheduled at a later time as originally requested. In one embodiment of the invention, the intermediate time is identified by locating a time that is subprogrammed with fewer scheduled queries, consuming fewer resources of the data retrieval system than the available resources of the data retrieval system at the located time, and which has sufficient available resources to support the execution of the specified query. In another aspect of the embodiment, multiple requests are received to schedule several different queries at a later time, and an estimated execution cost is calculated for each of the different queries.For example, the estimated execution cost for each of the different queries can be calculated by matching at least a part of each of the different queries to an entry in a table of corresponding historical query fragments and execution times. Next, the various queries can be filtered into a subset, each with a corresponding estimated execution cost that exceeds a threshold value. Alternatively, the various queries can be filtered into a subset of queries, each with a corresponding estimated execution cost that is below a threshold value. Finally, it is possible to determine, for each corresponding query within the subset, a data change frequency for a field referenced in the corresponding query within the subset.Thus, for each of the corresponding queries among the queries in the subset, provided that the frequency of change of the corresponding query among the queries in the subset is less than a threshold value, we can identify the intermediate moment before the later moment but after the contemporary moment and program the execution of the corresponding query among the queries in the subset at the intermediate moment. In another embodiment of the invention, a data processing system for information retrieval is adapted for optimal query programming. The system comprises a host computing platform with one or more computers, each equipped with memory and at least one processor. The system further comprises a query interface coupled to a database. The query interface receives queries from requesters, via a computer communication network, to program queries against the database and, in response, programs the execution of the queries to return different sets of results to the requesters. Finally, the system includes an optimal query programming module. The module includes computer program instructions which, when executed in the memory of the host computing platform, can be used to receive, at a contemporaneous time, a request to postpone execution of A query can be used to schedule the execution of a specified query at a later time after the current time, and to determine the frequency of data changes corresponding to a field referenced in the specified query. The instructions can also be used to identify an intermediate time before the later time but after the current time, and to schedule the execution of the specified query at that intermediate time instead of the later time, provided that the change frequency is less than a threshold value. Otherwise, the program instructions can only be used to schedule the specified query at the later time. Other aspects of the invention will be partly disclosed in the following description and partly will be evident from the description, or may be learned through practice of the invention. These aspects of the invention will be realized and achieved by means of the elements and combinations particularly indicated in the annexed claims. It is understood that the preceding general description and the detailed description that follows are both given by way of example and explanation and are not restrictive with respect to the invention as claimed. Brief description of the figures The accompanying drawings, which are incorporated into and form an integral part of this document, illustrate embodiments of the invention and, together with the description, serve to explain the principles of the invention. The embodiments illustrated herein are currently preferred, it being understood, however, that the invention is not limited to the specific arrangements and instruments shown, in which: [fig.1] Figure 1 is the visual illustration of a method for the optimal programming of queries for a data processing system for information retrieval; [fig.2] Figure 2 is a schematic illustration of an information retrieval data processing system configured for optimal query scheduling; and, [fig.3] Figure 3 is a flowchart illustrating an optimal query programming process for an information retrieval data processing system. Detailed description of the invention The embodiments of the invention allow for the optimal scheduling of one or more queries in a data processing and information retrieval system. According to one embodiment of the invention, different requests are received simultaneously in an information retrieval system, each requesting the postponement of the execution of the respective queries. at a later time. One of the queries is then processed to identify the relevant fields, and a volatility level for field changes is determined. If it is determined that one of the queries contains a field whose volatility exceeds an acceptable threshold, the request to postpone that query is honored, and the query is scheduled for a later time. However, if it is determined that one of the queries has a field whose volatility does not exceed the acceptable threshold, the request to postpone is modified to a time intermediate between the current time and the later time, so as to reduce the execution load of the queries at the later time. In a further illustration of an embodiment of the invention, Figure 1 depicts a method for optimally scheduling queries for an information retrieval data processing system. As shown in Figure 1, a set of requests 110 are received in the information retrieval data processing system, each request 110 seeking to postpone scheduling a corresponding query from a database to a later time 120. Optionally, a portion of each query is selected and compared to an execution cost data structure 130 associated with different query portions in order to match the selected portion to an entry in the data structure indicating a probable execution cost for the selected query.A filter 140 is then applied to all queries to produce a subset 160 of the queries 110 with associated execution costs 130 significant enough to justify optimization. Each of the 110 queries in subset 160 is then tested for data volatility. More specifically, for each matching query among the 110 queries in subset 160, a field associated with a query in the corresponding query is matched with a data structure indicating a known volatility of the various database fields—that is, for each field, the frequency with which the underlying data changes. Once the match is established, the determined volatility for a field in a related query is compared to a specified threshold, and for those queries in subset 160 that have a volatility exceeding the threshold, the corresponding query is assigned to a schedule as requested at a later time.But, for the queries 110 of the subset 160 whose volatility is below the threshold, the corresponding query among the queries is assigned to a program 190 at an intermediate time 170 before the later time 120. In this respect, the intermediate time 170 can be chosen according to . the expected availability of computing resources accessible by the information retrieval system at that time and the perceived excess capacity of computing resources during that time to handle additional requests. The process described in Figure 1 can be implemented in an information retrieval data processing system. Figure 2 schematically illustrates an information retrieval data processing system configured for optimal query scheduling. The system includes a host computing platform 210 comprising one or more computers, each with memory and at least one processor. The system also includes a query interface 260 to a database 250 (or a data model modeling data in the database 250).The query interface 260 is configured to receive queries from a computer communication network 220 from query clients 240 running in different computer devices 230, and to schedule the execution of each of the received queries in a query program 270, a specific time (day / date / time or any combination thereof) being assigned to each query for execution. The query interface 260 is further configured to provide requesting clients among the query clients 240 with corresponding results for the queries submitted and executed. It is important to note that the system includes an optimal query scheduling module 300. Module 300 contains computer program instructions which, when executed in the host computing platform 210, allow the system to receive individual requests from query clients 240 to postpone the execution of a specified query to a later time. The computer program instructions are further activated during execution to consult an execution cost table 290 that correlates different query parts with known execution costs in order to identify an entry in the table 290 corresponding to a specified query part, thereby predicting the execution cost of the specified query. Computer program instructions are further activated during execution, to the extent that the predicted execution cost exceeds a threshold value, to identify a field involved in the specified query and determine, in a data volatility table 280, a known volatility of the data for the identified field. Finally, computer program instructions are activated during execution to select an intermediate time before the subsequent programming time of the query specified in query programming 270, as long as the volatility determined for the specified query is less than the threshold value. Otherwise, the computer program instructions are activated to honor the request. postpone by scheduling the query specified in query program 270 for a later time. To further illustrate the operation of the Optimal Query Programmer module 300, Figure 3 is a flowchart illustrating an optimal query programming process for an information retrieval data processing system. Starting in block 310, a request to postpone a specified query to a later time is received, and in block 320, the specified query is identified within the query along with the later time. Then, in block 330, a portion of the specified query is selected, and in block 340, a field from the database or data model relevant to the specified query is identified. In block 350, the volatility of the field is retrieved. Subsequently, in block 360, it is determined whether the retrieved volatility exceeds a threshold value.If this is not the case, an intermediate time before the later time during which the processing resources of the information retrieval system demonstrate excess capacity is selected in block 370. Therefore, in block 380, the execution of the specified query is scheduled at the intermediate time. Otherwise, in block 390, the execution of the specified query is scheduled at a later time. The present invention can be incorporated into a system, a method, a computer program, or any combination thereof. The computer program may include a computer-readable storage medium or a medium on which computer-readable program instructions are stored to cause a processor to execute aspects of the present invention. The computer-readable storage medium may be a tangible device capable of holding and storing instructions for use by an instruction-executing device. The computer-readable storage medium may be, for example, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof, without limitation. The computer-readable program instructions described herein can be downloaded from computer-readable storage media or from an external computer or external storage device via a network to the respective computing / processing devices. The computer-readable instructions can be executed entirely on the user's computer, partly on the user's computer as a standalone software package, partly on the user's computer and partly on a remote computer, or entirely on the remote computer or server. Certain aspects of the present invention are described herein by means of flowcharts and / or functional diagrams of processes, apparatus (systems), and products. computer programs based on embodiments of the invention. It is understood that each block of the flowcharts and / or functional diagrams, as well as combinations of blocks of the flowcharts and / or functional diagrams, can be implemented by means of computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a specific-purpose computer, or other programmable data-processing device to produce a machine, so that the instructions, which are executed through the processor of the computer or other programmable data-processing device, create means to perform the functions / actions specified in the block(s) of the flowcharts and / or functional diagrams.These computer-readable program instructions can also be stored in a computer-readable storage medium that can direct a computer, a programmable data processing device, and / or other devices to operate in a particular way, such that the computer-readable storage medium in which instructions are stored includes a manufacturing article comprising instructions that perform aspects of the functions / actions specified in the block(s) of the flowcharts and / or functional diagrams. Computer-readable program instructions can also be loaded onto a computer, other programmable data processing device, or other device to cause a series of operational steps to be executed on the computer, other programmable device, or other device to produce a computer-executed process, such that the instructions that execute on the computer, other programmable device, or other device implement the functions / actions indicated in the block(s) of the flowcharts and / or functional diagrams. The flowchart and functional diagrams shown in the figures illustrate the architecture, functionality, and operation of possible implementations of computer systems, processes, and program products based on the various embodiments of the present invention. In this regard, each block in the flowchart or functional diagrams can represent a module, segment, or part of an instruction, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions denoted in the block may occur in the order shown in the figures. For example, two blocks shown successively may, in fact, be executed substantially simultaneously, or the blocks may sometimes be executed in reverse order, depending on the functionality involved.It should also be noted that each block of the functional diagrams and / or orga- . Flowcharts, and combinations of blocks of functional diagrams and / or flowcharts, can be implemented by special hardware systems that perform the specified functions or actions or execute combinations of special hardware and computer instructions. Finally, the terminology used in this document is intended only to describe particular embodiments and is not intended to limit the invention. It shall also be understood that the terms "includes" and / or "comprising," when used in this specification, denote the presence of the indicated features, integers, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and / or groups thereof. The corresponding structures, materials, acts, and equivalents of all means or elements of the step and function in the claims below are intended to include any structure, material, or act for performing the function in combination with other elements claimed as specifically claimed. The description of the present invention has been given for illustrative and descriptive purposes, but is not intended to be exhaustive or limited to the invention in the disclosed form. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the invention. The embodiment has been selected and described to best explain the principles of the invention and its practical application, and to enable others skilled in the art to understand the invention for various embodiments with various modifications suitable for the particular intended use. Having thus described the invention of the present application in detail and by reference to its embodiments, it will become apparent that modifications and variations are possible without departing from the scope of the invention as defined in the attached claims as follows:

Claims

Claims

1. A method of optimal query programming comprising the steps consisting of: receive, in a recovery data processing system information at a contemporary time, a request for postponement query execution of a specified query at a later time after the contemporary moment; determine a data change frequency corresponding to a field referenced in the specified query; provided that the frequency of change is less than a value threshold, identify an intermediate moment before the later moment but after the contemporary moment, and schedule the specified query for execution at the intermediate time instead of the later time, otherwise schedule the specified query at a later time.

2. The method of claim |, wherein the intermediate moment is identified by locating a time that is sub-programmed with fewer scheduled queries consuming fewer resources information retrieval data processing system that the available resources of the data recovery processing system information operation at the localized time and which has sufficient resources available to support query execution specified.

3. The method of claim 1, further comprising the steps consisting of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which exceeds a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

4. The method of claim 1, further comprising the steps consisting of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which does not reach a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

5. The method of claim 3, wherein the estimated execution cost for each of the different queries is calculated by matching at least part of each of the different queries to an entry in a table of query fragments and his- execution time corresponding toric rings.

6. The method of claim 4, wherein the estimated execution cost for each of the different queries is calculated by matching at least part of each of the different queries to an entry in a table of query fragments and his- execution time corresponding toric rings.

7. Information retrieval data processing system adapted for optimal query programming, the system including: a host computing platform comprising one or more computers each having a memory and at least one processor; a query interface coupled to a database and receiving applicants, through an in- computer science, requests to program queries in relation to the database, scheduling queries for execution and returning different sets of results to requesters in response to requests; and, an optimal query programming module including ins- computer program instructions which, when executed in the memory of the host computing platform, perform the steps consisting of: receive at a contemporary time, a request for postponement of execution of a query of a specified query at a later time after the contemporary moment; determine a data change frequency corresponding to a field referenced in the specified query; provided that the frequency of change is less than a value threshold, identify an intermediate moment before the later moment but after the contemporary moment, and schedule the specified query for execution at the intermediate time instead of the later time, otherwise schedule the specified query at a later time. |Claim 8] A system according to claim 7, wherein the intermediate moment is identified by locating a time that is sub-programmed with fewer scheduled queries consuming fewer resources information retrieval data processing system that the available resources of the data recovery processing system information operation at the localized time and which has sufficient resources available to support query execution specified.

9. The system of claim 7, wherein the instructions of program further performs the steps of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which exceeds a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

10. The system of claim 7, wherein the instructions of program further performs the steps of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which does not reach a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

11. | The system of claim 9, wherein the estimated execution cost for each of the different queries is calculated by matching at least part of each of the different queries to an entry in a table of query fragments and his- execution time corresponding toric rings.

12. The system of claim 10, wherein the execution cost estimated for each of the different requests is calculated by cor- respond at least part of each of the different requests to a entry in a table of query fragments and moment corresponding historical execution dates.

13. Computer program product for optimal programming of queries, the computer program product comprising a computer-readable storage medium having instructions for program incorporated therewith, the program instructions being executable by a device to cause the device to execute a method comprising the steps of: receive, in a recovery data processing system information at a contemporary time, a request for postponement query execution of a specified query at a later time after the contemporary moment; determine a data change frequency corresponding to a field referenced in the specified query; provided that the frequency of change is less than a value threshold, identify an intermediate moment before the later moment but after the contemporary moment, and schedule the specified query for execution at the intermediate time instead of the later time, otherwise schedule the specified query at a later time.

14. A computer program product according to claim 13, in which the intermediate moment is identified by locating a moment which is under-programmed with fewer scheduled queries consuming less resources of the data processing system to recover operation of information that the available resources of the system processing of information retrieval data at the time located and which has sufficient resources available to support the execution of the specified query.

15. A computer program product according to claim 13, in which method further comprises the steps of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which exceeds a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

16. A computer program product according to claim 13, in which method further comprises the steps of: receive a multiplicity of requests to schedule several different requests at a later time; calculate an estimated execution cost for each of the different requests; filter the different queries into a subset of queries having each a corresponding estimated execution cost which does not reach a threshold value; determine for each of the corresponding requests among the subset queries, a data change frequency corresponding to a field referenced in the corresponding query among the queries of the subset; and, for each of the corresponding queries among the queries of the sub- together, provided that the frequency of change of the query cor- respondent among the queries of the subset is less than one threshold value, identify an intermediate moment before the moment later but after the contemporary moment, and program the execution of the corresponding query among the queries of the sub- together at the intermediate moment.

17. A computer program product according to claim 15, in which the estimated execution cost for each of the different queries is calculated by matching at least part of each of the different queries to an entry in a query fragment table and corresponding historical execution times.

18. A computer program product according to claim 16, in which the estimated execution cost for each of the different queries is calculated by matching at least part of each of the different queries to an entry in a table of re fragments and corresponding historical execution times.