Processing search requests
By separating data records into stable and volatile data pieces in a distributed database environment, and dynamically combining and updating them, the problem of outdated results in the cache is solved, response efficiency and resource utilization are improved, and rapid response to search requests is achieved. .
Patent Information
- Application Number
- CN202180081476.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-12-04
- Filing Date
- 2021-12-03
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-03
AI Technical Summary
In a distributed database environment, search request results stored in the cache become outdated due to changes in the original data, resulting in prolonged response times and inefficiency in recomputing results with limited computing resources, especially for volatile For dynamic data slices, frequent recalculation is not conducive to resource utilization.
By separating stable data pieces and volatile data pieces in the data record, storing and updating them separately, the stable data pieces are updated according to a slower change rate, while the volatile data pieces are updated according to a faster change rate, combined with the front-end module and Real-time data sources that dynamically combine data records in response to search requests, reducing invalid calculations and improving response efficiency.
It effectively reduces the computational workload required to maintain cache validity, improves response speed, ensures timely response to search requests, and optimizes the utilization of computing resources, especially in large-scale data cache systems.
Smart Images

Figure CN116547658B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to processing search requests in a distributed database environment. More specifically, it relates to processing search requests using a cache and a real-time data source. Background Art
[0002] Increasing the efficiency of processing search requests in distributed database and computing environments has led to many approaches and solutions.
[0003] One method for shortening the response time of a query is to pre-calculate or pre-collect the results of a search request and keep them in a cache. Then, instead of actually processing the search request on a large amount of raw data stored in the database, the search request is processed on the results kept in the cache.
[0004] However, caching has the disadvantage that the results held in the cache may become outdated due to changes in the original data from which the results have been pre-computed or pre-collected. In order for the cache to fulfill the aforementioned function of reducing response time, measures are taken to keep the cached results valid. This is particularly relevant in systems with large data caches, in which all or most of the responses are returned based on the cache.
[0005] Measures for maintaining the effectiveness of caches should be computationally efficient, particularly in systems with limited computing resources that are insufficient to always recalculate any cached results. For example, for computational efficiency, recalculating still valid cached results should be avoided. In addition, continuously recalculating outdated cached results at a higher frequency than other cached results may be disadvantageous in terms of efficient use of computing resources. Various suggestions for efficient cache recalculation mechanisms have been proposed. Contributions made by applicants in this regard include, for example, EP 2842085B1, EP 2885725 B1, EP 2908255 B1, EP 2911070 B1, EP 2913764 B1 and EP 3128441 B1. Summary of the invention
[0006] According to a first aspect, a method for processing a search request in a distributed database environment is provided. The distributed database environment includes a front-end module, one or more clients, a cache, a real-time data source, and a plurality of data records, wherein each data record includes at least one stable data slice and at least one volatile data slice, wherein the underlying data of the at least one stable data slice that can be retrieved from the real-time data source changes according to a first change rate and the underlying data of the at least one volatile data slice that can be retrieved from the real-time data source changes according to a second change rate, and the second change rate is higher than the first change rate, and the cache stores at least one corresponding stable data slice of the plurality of data records. The method includes, at a front-end module: receiving a search request from one of the one or more clients; retrieving a set of data records from a cache in response to the search request from one of the one or more clients, wherein at least one corresponding stable data slice of the set of data records corresponds to the search criteria indicated in the search request; retrieving a current volatile data slice from a real-time data source of the retrieved set of data records, wherein the current volatile data slice corresponds to a stable data slice of the retrieved set of data records; generating a set of complete data records by respectively combining the stable data slices of the data records retrieved from the cache and the current volatile data slices retrieved from the real-time data source; and returning at least a subset of the set of complete data records to one of the one or more clients.
[0007] In some embodiments, the cache further stores volatile data slices of the plurality of data records, and retrieving the set of data records from the cache includes checking whether the volatile data slices of the set of data records correspond to search criteria indicated in the search request.
[0008] In some embodiments, storing the multiple data records in the cache includes: receiving a series of data records including the multiple data records from at least one external data source; filtering data records whose stable data slices and / or volatile data slices do not meet a given threshold in the received series of data records; and storing the remaining unfiltered data records as the multiple data records in the cache.
[0009] In some embodiments, the distributed database environment further comprises a master real-time subsystem, and the method further comprises: determining, at the front-end module, that the number of data records retrieved from the cache is below a predetermined threshold. The method further comprises: retrieving, at the front-end module, a set of complete additional data records from the master real-time subsystem, wherein each at least one additional stable data slice of the set of complete additional data records corresponds to the search criteria indicated in the search request. The retrieval comprises, at the master real-time subsystem: determining, at the front-end module, one or more additional stable data slices corresponding to the search criteria indicated in the search request; calculating corresponding one or more current additional volatile data slices corresponding to the determined one or more additional stable data slices; combining the determined one or more additional stable data slices with the corresponding calculated one or more additional volatile data slices to form the complete additional data record; and returning the complete additional data record to the front-end module. The method further comprises: adding, at the front-end module, the set of complete additional data records to the set of complete data records.
[0010] In some embodiments, the cache stores at least a subset of the corresponding at least one additional stable data slice of the complete additional data record.
[0011] In some embodiments, in response to generating the set of complete data records, the front-end module selects the subset of the set of complete data records based on a given criterion. In addition, in response to returning the subset of the set of complete data records to one of the one or more clients, the front-end module stores the subset in a cache.
[0012] In some embodiments, retrieving the current volatile data slice from the real-time data source includes retrieving the current volatile data slice from the real-time data source in an incremental manner. The incremental retrieval includes, in the front-end module: in a first iteration, retrieving a given first number of volatile data slices from the real-time data source in parallel; in a second iteration, after the first iteration is completed, retrieving a given second number of volatile data slices from the real-time data source in parallel, wherein the second number of volatile data slices is greater than the first number of volatile data slices.
[0013] In some embodiments, generating a set of complete data records by respectively combining stable data slices of data records retrieved from a cache and current volatile data slices retrieved from a real-time data source and returning the set of complete data records to one of the one or more clients includes: in response to completing a first iteration of retrieving the given first number of volatile data slices, generating a complete first subset of data records by combining the first number of current volatile data slices with corresponding stable data slices of data records retrieved from the cache and returning the complete first subset of data records to the client; in response to completing a second iteration of retrieving the given second number of volatile data slices, generating a complete second subset of data records by combining the second number of current volatile data slices with corresponding stable data slices of data records retrieved from the cache and returning the complete second subset of data records to the client.
[0014] According to another aspect, a computing machine is provided, the computing machine being used as a front-end module for processing search requests in a distributed database environment, the distributed database environment comprising a front-end module, a client, a cache and a real-time data source, wherein the distributed database environment stores a plurality of data records, wherein each data record comprises at least one stable data slice and at least one volatile data slice, wherein the underlying data of at least one stable data slice retrievable from the real-time data source changes at a first change rate and the underlying data of at least one volatile data slice retrievable from the real-time data source changes at a second change rate, and the second change rate is higher than the first change rate, wherein the cache stores at least one corresponding stable data slice of the plurality of data records, and the computing machine is arranged to execute a method as described in any one of the aforementioned aspects and implementations.
[0015] According to another aspect, a computer program is provided, the computer program product comprising program code instructions stored on a computer readable medium so as to perform the method steps as described in any one of the preceding aspects and implementations when the program is executed on a computer. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The present mechanism will be described with reference to the accompanying drawings. Like reference numbers generally indicate identical or functionally similar elements.
[0017] Figure 1 is a schematic depiction of a distributed computer environment as described herein.
[0018] Figure 2 is a schematic diagram of a complete set of data records according to some embodiments.
[0019] Figure 3 is another schematic diagram of a complete set of data records according to some embodiments.
[0020] Figure 4 is a message sequence chart for retrieving data records and volatile data slices in response to a search request according to a first embodiment.
[0021] Figure 5 is a message sequence chart for retrieving data records and volatile data slices in response to a search request according to the second embodiment.
[0022] Figure 6 is a message sequence chart for receiving data records from an external source.
[0023] Figure 7 is a message sequence chart for retrieving additional data records according to the first embodiment.
[0024] Figure 8 is a message sequence chart for retrieving additional data records according to the second embodiment.
[0025] Fig. 9 is a message sequence chart for retrieving a volatile piece of data in more than one iteration.
[0026] Fig.10 is a schematic depiction of a globally distributed network of data centers, an exemplary use case for the mechanisms described herein.
[0027] Fig.11 is a pictorial representation of internal components of a computing machine according to some embodiments. DETAILED DESCRIPTION
[0028] The subject disclosure generally relates to processing search requests in a database system. The term "search request" includes all types of database requests, especially read requests. The mechanisms described here can also be used for all types of requests, such as write requests.
[0029] Once the underlying data, which may be stored, for example, in a database (such as a real-time data source of a data provider), has changed, the cached data records (search results) may become stale. Changes in the underlying data can occur at a certain rate of change, whereby different portions of the underlying data can change at different rates of change (such as faster and slower rates of change). Therefore, in order to maintain an effective cache, there is a general requirement to update the cached data records at a regular time scale based on updates occurring in the underlying data. Updating the cached data can be accomplished, for example, by recalculating the cached data using the corresponding underlying data in the database.
[0030] In this context, traditional approaches to cache recomputation mechanisms (such as, for example, the above-mentioned prior art documents) consider horizontal inefficiency in the sense that different cached data records (rows of database tables) become obsolete at different rates, and therefore, discuss measures to efficiently employ recomputation resources at the level of horizontal data records.
[0031] In contrast, the present method has recognized that different inefficiencies may also exist along the vertical direction, i.e. different columns of a database table or different fields of a cached database record may have different inefficiencies. This is the case, for example, when the cached data comprises composite data records comprising different data slices obtained or calculated from different underlying data that change at different rates of change. An example of such composite data is a SQL processable table with columns, wherein the data of a first set of columns has to be updated at a slower rate than the data of a second set of columns. The data of the first set of columns may be referred to as stable data slices, and the data of the second set of columns may be referred to as volatile data slices. A data table, which may be denoted as "table", as, for example, a SQL processable table, may be logically partitioned along these two sets of columns (i.e., along the vertical direction), resulting in a stable table portion denoted as "table_stable", and wherein the data stored in its columns becomes outdated at a slower rate of change (e.g., on the order of days or weeks). The partitioning also results in a volatile table portion denoted "table_volatile" and in which data stored in the columns becomes outdated at a slower rate of change (eg, on the order of minutes or hours).
[0032] According to an embodiment of the subject disclosure, the stable table portion "table_stable" is cached due to its lower inefficiency, and the data slices of the volatile table portion "table_stable" are not (or not necessarily) cached, but retrieved or calculated from the original data source upon request to form a combined data slice.
[0033] This mechanism reduces the computational effort used to keep the cache valid because the data stored in the cache includes stable data pieces that become invalid at a slower rate of change and therefore have to be updated at a slower update rate than volatile data pieces. In contrast, when stable data is cached together with its corresponding volatile data as a composite cached data record, the stable data will traditionally be recomputed when the underlying data of the volatile data has changed, even when the underlying data of the stable data has not changed and therefore recomputation of the stable data pieces is not required. In addition, this mechanism facilitates responding to requests for data (such as search requests) with updated and therefore valid data.
[0034] A distributed environment for processing search requests according to the subject disclosure is shown in Figure 1 middle.
[0035] The distributed computing environment includes a front-end module 1, one or more clients 2, a cache 3, and a real-time data source 4. In the distributed computing environment, a plurality of data records 200 are stored. Each data record 200 (such as a row of a SQL processable table "table") includes at least one stable data piece 201 (such as a SQL processable table "table_stable") and at least one volatile data piece 202 (such as a row of a SQL processable table "table_volatile"), such as Figure 2 and Figure 3 As shown in . It should be noted that the data records 200 can also be stored in a non-relational and / or NoSQL database. As described above, the underlying data of at least one stable data slice 201 that can be retrieved from the real-time data source 4 changes according to a first change rate, and the underlying data of the at least one volatile data slice 202 that can be retrieved from the real-time data source 4 changes according to a second change rate. The second change rate is, for example, higher than the first change rate. The cache 3 stores at least one corresponding stable data slice 201 of the plurality of data records 200.
[0036] like Figure 3 As shown in , in some embodiments, data record 200 may be generated by combining more than one volatile data slice (such as volatile data slice #1 202-1, volatile data slice #2 202-2, and volatile data slice #3 202-3) with stable data slice 201. In some embodiments, data record 200 may be generated by combining a volatile data slice with more than one stable data slice.
[0037] The front-end system 1, the one or more clients 2, the cache 3, and the real-time data source 4 are located anywhere and are individual computing machines (such as personal computers, mobile stations (such as laptops or tablet computers), smart phones, etc.), and in some embodiments, more powerful machines (such as database application servers, distributed database systems each including multiple interconnected machines, data centers, etc.). In some embodiments, the front-end system 1, the cache 3, and the real-time data source 4 can be machines similar to the one or more clients 2, while in other embodiments, the front-end system 1, the cache 3, and the database 4 are more powerful than the one or more clients 2. In one embodiment, the front-end system 1, the one or more clients 2, the cache 3, and the real-time data source 4 are data centers that can be distributed all over the world.
[0038] According to performance requirements, the front-end system 1, cache 3, real-time data source 4 and the one or more clients 2 may include several hardware machines. The front-end system 1, cache 3, real-time data source 4 and the one or more clients 2 are embodied as, for example, including Fig.11 The computing machine 100 shown in the figure may be a stationary or mobile hardware machine, and / or may be embodied as a dedicated system (such as an embedded system arranged for a specific technical purpose), and / or may be embodied as a software component running on a general-purpose or dedicated computing hardware machine (such as a web server and a web client).
[0039] The front-end system 1, the cache 3, the real-time data source 4 and the one or more clients 2 are interconnected through communication interfaces 5, 6 and 7. Each of the interfaces 5, 6 and 7 uses a wired or wireless local area network (LAN) or a wired or wireless metropolitan area network (MAN) or a wired or wireless wide area network (WAN) (such as the Internet) or a combination of the aforementioned network technologies and is implemented by any suitable communication and network protocols.
[0040] Stable data piece 201 may include stable data X1 (e.g., stored in a row of "table_stable"), and volatile data piece 202 may include volatile data Y1 (e.g., stored in a row of "table_volatile"). Volatile data Y1 may be associated with stable data X1 by a keyword. Data X1 changes (with "table_stable") at a rate that is lower than the rate at which data Y1 changes (with "table_volatile"). By combining a row of table "table_stable" representing, for example, stable data piece 201 with a row of "table_volatile" representing, for example, volatile data piece 202, data record 200 can be generated, such as Figure 2 The combination can be performed by using, for example, the SQL command JOIN. However, Figure 3 As shown in , the rows of “table_stable” may be combined with several rows obtained from “table_volatile”, or with one or several rows obtained from multiple tables containing volatile data slices (such as data slices 202-1, 202-2, and 202-3).
[0041] exist Figure 4A message sequence chart of a mechanism for processing a search request in a distributed computing environment according to some embodiments is provided in . The mechanism includes: at a front-end module 1, in activity 10, receiving a search request from one of the one or more clients 2. In activity 11, in response to the search request from one of the one or more clients 2, the front-end module 1 retrieves a set of data records 200 having at least one corresponding stable data slice from a cache 3. The corresponding at least one stable data slice 201 in the set of data records 200 corresponds to a search criterion indicated in the search request. In some embodiments, a series of data records 200 in the retrieved set of data records 200 may be selected by, for example, a SQL query, which may select the first N data records from the retrieved set of data records 200. This results in the selection of data records 200 based on the search criterion indicated in the search request. In some further embodiments, the selection may be performed after the stable data slice of the data record 200 is retrieved from the cache 3 in activity 11. In activity 12, the front-end module 1 retrieves the current volatile data slices 202 or 202-1, 202-2 and 202-3 for the retrieved set of data records from the real-time data source 4. The current volatile data slices 202 or 202-1, 202-2 and 202-3 correspond to the stable data slices 201 of the retrieved set of data records 200. The front-end module 1 generates a set of complete data records 200 by combining the stable data slices 201 of the data records retrieved from the cache and the current volatile data slices 202 or 202-1, 202-2 and 202-3 retrieved from the real-time data source, respectively, in activity 13, and returns at least a subset of the set of complete data records 200 to one of the one or more clients 2 in activity 14. Further details are given below about selecting data records 200 from the set of complete data records 200 to form the subset to be returned to the client 2.
[0042] To refer to the aforementioned exemplary relationship with the SQL-processable table, the search criteria of the search request may include stable data X1, and the set of data records 200 may correspond to the stable data X1. However, the search criteria may also include criteria related to volatile data Y1 or Y1#1, Y1#2, and Y1#3, and the set of data records 200 may additionally correspond to the volatile data Y1 or Y1#1, Y1#2, and Y1#3.
[0043] To further reference the aforementioned exemplary relationship with SQL-processable tables, the front-end module 1 receives a search request indicating stable data X1 as a search criterion from the client 2 in activity 10. The stable data X1 may be stored in one or more stable data slices in a row of the table "table_stable". In response to the search request, the front-end module 1 retrieves the stable data slice 201 including the stable data X1 from the table "table_stable" from the cache 3 in activity 11. In activity 12, the front-end module 1 retrieves the volatile data slice 202 from the updated table "table_volatile" from the real-time data source 4, or retrieves the volatile data slices 202-1, 202-2 and 202-3 from the updated tables "table_volatile#1", "table_volatile#2" and "table_volatile#3". For example, through the correspondence between volatile data Y1 (stored in volatile data slice 202) or Y1#1, Y1#2 and Y1#3 (stored in volatile data slices 202-1, 202-2 and 202-3) and stable data X1, each volatile data slice retrieved from these tables corresponds to a stable data slice retrieved from table "table_stable". In activity 13, the front-end module generates a set of complete data records 200 by combining the stable data slice 201 from table "table_stable" with the volatile data slice 202 from "table_volatile" or the volatile data slices 202-1, 202-2 and 202-3 obtained from tables "table_volatile#1", "table_volatile#2" and "table_volatile#3" using, for example, the SQL command JOIN. Thus, within the combined set of data records 200, the existing stable data X1 is combined with the newly calculated volatile data Y1 of the table "table_volatile" or the volatile data Y1#1, Y1#2 and Y1#3 of the tables "table_volatile#1", "table_volatile#2" and "table_volatile#3". The front-end module 1 returns at least a subset of the complete set of data records 200 (i.e., the corresponding combination of the rows of the table "table_stable" and the table "table_volatile" or the tables "table_volatile#1", "table_volatile#2" and "table_volatile#3") to the requesting client 2 in activity 14. Since the data Y1 or Y1#1, Y1#2 and Y1#3 stored in the volatile table represent updated data, the client 2 has received valid data in this respect.
[0044] exist Figure 5A message sequence diagram of a mechanism for processing a search request in a distributed database environment according to another embodiment is provided in FIG. Figure 4 In addition to the mechanism shown in Figure 5 In the mechanism shown in , in activity 15, the cache 3 also stores volatile data pieces 202 or 202-1, 202-2, and 202-3, such as the table "table_volatile" or the tables "table_volatile#1", "table_volatile#2", and "table_volatile#3" of the plurality of data records 200. For example, assuming that the probability that the volatile data pieces 202 or 202-1, 202-2, and 202-3 remain valid during a given time period is relatively high (e.g., above a given effectiveness threshold), and the validity probability of the volatile data pieces 202 or 202-1, 202-2, and 202-3 decreases after the given time period (e.g., drops below the given effectiveness threshold), the volatile data pieces 202 or 202-1, 202-2, and 202-3 may be stored in the cache 3 after being retrieved 12 from the real-time data source 4 and maintained in the cache 3 during the given time period. Additionally or alternatively, in some embodiments, cache 3 stores a portion of volatile data slices 202 or 202-1, 202-2, and 202-3 for an indeterminate period of time, and employs a cache update mechanism to keep the portion of volatile data slices 202 or 202-1, 202-2, and 202-3 in the cache substantially valid. For example, cache 3 may store volatile data slices 202 or 202-1, 202-2, and 202-3 that have lower inefficiency than other volatile data slices with higher inefficiency and therefore remain valid for a longer period of time and therefore require less computational resources of the cache update mechanism than updating the volatile data slices with higher inefficiency.
[0045] Retrieving the set of data records 200 from the cache 3 by the front-end module 1 (activity 11) includes checking whether the cache comprises the volatile data slices 202 or 202-1, 202-2 and 202-3 of the set of data records corresponding to the search criteria indicated in the search request, and if so, also retrieving these volatile data slices 202 or 202-1, 202-2 and 202-3 from the cache 3. In an alternative or in addition, for example, if the cache 3 stores a portion (i.e., some columns or fields) of the volatile data slices 202 or 202-1, 202-2 and 202-3, while other portions of the volatile data slices 202 or 202-1, 202-2 and 202-3 are still stored in the real-time data source 4, the front-end module 1 may also retrieve 12 the volatile data slices 202 or 202-1, 202-2 and 202-3 from the real-time data source 4.
[0046] In some embodiments, Figure 6 As shown in , storing the plurality of data records 200 in the cache 3 includes: in the front-end module 1, in activity 20, receiving a series of data records including the plurality of data records 200 from at least one external data source 8; and in activity 21, filtering data records whose stable data slices and / or volatile data slices do not meet a given threshold in the received series of data records. In activity 22, the front-end module 1 stores the remaining unfiltered data records as the plurality of data records 200 in the cache 3.
[0047] Again, an example of a SQL-processable table is selected (one or more external data sources 8 (such as a company or a scientific computing center or a data processing service center) that may be located anywhere in the world) provide SQL-processable tables that can be accessed by any server or at least a selected group of servers (such as the front-end module 1). These external sources provide data for, for example, updating data records stored in the cache 3. In activity 20, the front-end module 1 may receive a series of data records 200 from, for example, a company data processing center, the series of data records 200 including, as data records 200, a SQL-processable table "table", the SQL-processable table "table" may include a stable data slice 201 "table_stable" and the one or more volatile data slices 202 or 202-1, 202-2 and 202-3 (such as a table "table_volatile" or tables "table_volatile#1", "table_volatile#2" and "table_volatile#3"). In activity 21, the received data records 200 are filtered in order to determine which data records of the total received data records are actually going to be available to the client 2 served by the front-end module 1. Since the stable data and volatile data pieces of table "table" meet the given filtering criteria, table "table" is not filtered by front-end module 1 in activity 21, and at least the stable data pieces of data records 200 of table "table" are stored in cache 3 in activity 22.
[0048] As an example, the front-end module 1 may use a filtering criterion in activity 21 to filter the received data records 200. The filtering criterion may include the aforementioned effectiveness threshold, enabling the front-end module to distinguish between stable data slices and volatile data slices, and therefore, decide which data slices (columns) are to be stored in the cache 3 and which other data slices are to be retrieved only upon request from the real-time data source 4 (such as the above-mentioned computing center). The effectiveness threshold that must be satisfied by the data records (their stable data slices and volatile data slices, respectively (such as, for example, stable data slice 201 and volatile data slice 202 or 202-1, 202-2 and 202-3)) may be set to 70%. Therefore, data slices with an effectiveness of 70% or more are classified as stable data slices and stored in the cache 3, while other data slices are classified as volatile data slices and retrieved from the real-time data source 4 upon request. The effectiveness of a data slice may be determined by the front-end module 1 in various ways (e.g., based on effectiveness statistics of the data slice obtained from the invalidation history of the data slice), or the inefficiency may also be explicitly signaled by an external source 8 or another entity.
[0049] In some embodiments, Figure 7As shown in , the distributed computing environment further includes a master real-time subsystem 9 for retrieving additional data records that may not be stored by the cache 3 and / or the real-time data source 4, and the mechanism further includes determining, at the front-end module 1, in activity 30, that the number of data records 200 retrieved from the cache 3 is below a predetermined number threshold. The mechanism further includes retrieving, at the front-end module 1, from the master real-time subsystem 9 a set of complete additional data records 200 in activity 31, wherein the corresponding at least one additional stable data slice 201 of the set of complete additional data records 200 corresponds to the search criteria indicated in the search request. Activity 31 includes: at the master real-time subsystem 9, determining (sub-activity 32) one or more additional stable data slices 201 corresponding to the search criteria indicated in the search request, and calculating (sub-activity 33) corresponding one or more current additional volatile data slices 202 or 202-1, 202-2 and 202-3 corresponding to the determined one or more additional stable data slices 201. Within activity 31, the master real-time subsystem 9 combines the determined one or more additional stable data pieces with the corresponding calculated one or more additional volatile data pieces to form a complete additional data record in subactivity 34, and returns the complete additional data record to the front-end module in subactivity 35. The front-end module 1 adds the set of complete additional data records 200 to the set of complete data records 200 in activity 36.
[0050] Continuing with the aforementioned example of SQL-processable tables, after having generated a series of SQL-processable tables (including table "table" with stable data slices 201 "table_stable") as a set of complete data records 200 for the response to the search request in activity 13, the front-end module 1 may determine in activity 30 that the number of generated complete tables is below a certain threshold in order to provide an adequate response to the search request from the client 2. As an example, when the number threshold is set to a value of 2, providing only one data record (such as table "table") as a response to the search request would constitute an inadequate response to the search request. In this case, the front-end module 1 therefore retrieves additional complete SQL-processable tables from an additional data source, represented here as the main real-time subsystem 9, in activity 31, the additional complete SQL-processable tables may include table "table_additional", the additional complete SQL-processable tables themselves including stable data slices and volatile data slices, which correspond to the search criteria indicated in the search request. As an example, the search request may again indicate X1 as the search criteria. Within activity 31, in sub-activity 32, the master real-time subsystem 9 determines an additional stable data piece 201, such as a SQL-processable table "table_stable_additional", which has stable data X1 stored in its row. In sub-activity 33 (also within activity 31), the master real-time subsystem 9 calculates an additional volatile data piece (202 or 202-1, 202-2 and 202-3), which may include an SQL-processable table "table_volatile_additional" having volatile data Y1 associated with stable data X1. In sub-activity 34 (within activity 31), the additional volatile data piece (202 or 202-1, 202-2 and 202-3) is combined with the set of data records 200 by, for example, a SQL-based JOIN command. Table "table_additional" is formed and returned to front-end module 1 in sub-activity 35 (within activity 31). In activity 36, the front-end module adds table "table_additional" to table "table". The number of complete tables generated now meets the number threshold 2 and can be returned as a sufficient response to the search request from client 2.
[0051] The main real-time subsystem 9 (e.g., additional data source 9) may be separate from the cache 3 and the real-time data source 4. However, in some embodiments, the main real-time subsystem 9 and the real-time data source 4 may be included by another database system (such as a computing center as described above). In some embodiments, the main real-time subsystem 9 may provide data, such as SQL processable tables, to the cache 3 and the real-time data source 4.
[0052] In some embodiments, Figure 7 As shown in , in activity 37, the cache 3 stores at least a subset of the corresponding at least one additional stable data slice of the complete additional data records, such as, for example, the table "table_stable_additional" of the table "table_additional". Thus, in response to another search request requesting data records that satisfy the same search criteria as the currently processed search request, these additional data records may be retrieved directly from the cache 3 (rather than the main real-time subsystem 9). As explained above, the storage of complete additional data records in the cache 3 may be performed during a given time period, for example, based on the inefficiency of volatile data slices of complete additional data records.
[0053] In some embodiments, Figure 8 As shown in, in activity 38, in response to generating the set of complete data records 200, the front-end module 1 selects the subset of the set of complete data records 200 according to a given criterion. In response to returning the subset of the set of complete data records 200 to one of the one or more clients 2, in activity 39, the front-end module 1 stores the subset in the cache 3. As an example, the set of complete data records 200 may include stable data slice #11 / volatile data slice #11, stable data slice #12 / volatile data slice #12, stable data slice #13 / volatile data slice #13. The subset selected by the front-end module 1 in activity 38, returned to the client 2 in activity 14, and stored in the cache 2 (activity 39) may include stable data slice #11 / volatile data slice #11 and stable data slice #12 / volatile data slice #12. The two data records 200 of the subset may be determined by using a metric indicating to what extent the data records 200 satisfy the search parameters indicated in the search request.
[0054] For example, a search request may request an indicated number of data records 200 having a data slice of a specified particular value, such as the two network routes with the highest bandwidth (see below with reference to Fig.10The front end module then selects two data records 200 representing network routes with the highest bandwidth characteristics and returns these selected data records to the client, while other data records 200 specifying network routes with lower bandwidth characteristics are not returned.
[0055] In some embodiments, a score may be used as a given criterion. The score may constitute a normalized representation of multiple data slices of a data record 200 so that heterogeneous data records 200 (e.g., in terms of different values in different data slices) are comparable and can therefore be processed in a more efficient manner. To this end, the front-end module 1 may calculate weight values for individual data slices and then calculate a summary score for each complete data record 200. For example, the front-end module 1 may calculate weight values for bandwidth data slices and for the current load of a network route represented by the complete data record 200. A higher bandwidth characteristic results in a higher weight value compared to a lower bandwidth characteristic, and a higher current load characteristic results in a lower weight value compared to a lower current load characteristic. For example, by summing or (weighted) averaging the weight values, a summary of the individual weight values of these data slices used to obtain the score may be given.
[0056] The summary score can establish a ranking order of the complete data records 200 and facilitate efficient selection. A higher summary score can indicate that the corresponding data record constitutes a better match for the search parameters indicated in the search request than a lower summary score. Therefore, such complete data records with higher scores can be returned to the client 2, while data records with lower summary scores are filtered / discarded by the front-end server 1. Further details of weight values and scores are set forth in the pending European patent application with application number EP 20306 251.8 filed on October 21, 2020.
[0057] In some embodiments, the calculated scores themselves form additional data pieces of the subset of the complete data records 200. In these embodiments, the front-end module 1 may store the selected subset of the complete data records 200 returned to the client 2 including the scores in the cache 3. This facilitates efficient processing of further search results, such as subsequent search requests related to the returned subset of the complete data records 200. For example, based on the scores calculated based on the cache 3, further selections from the stored subset of the complete data records 200 may subsequently be made to form a sub-subset without the need to retrieve volatile data pieces from the real-time data source 4.
[0058] In some embodiments, Fig. 9As shown in , retrieving the current volatile data slices 202 or 202-1, 202-2 and 202-3 from the real-time data source 4 by the front-end module 1 includes retrieving the current volatile data slices 202 or 202-1, 202-2 and 202-3 from the real-time data source 4 in an incremental manner. In a first iteration, the front-end module 1 retrieves a given first number of volatile data slices from the real-time data source 4 in parallel in activity 12-1. After the first number of volatile data slices have been received, the front-end module 1 generates a complete data record including the retrieved first number of volatile data slices and a first number of corresponding stable data slices, and returns this first number of complete data records to the client 2. In a second iteration, after the first iteration is completed, the front-end module 1 retrieves a given second number of volatile data slices from the real-time data source 4 in parallel in activity 12-2, wherein the second number of volatile data slices is greater than the first number of volatile data slices. The front-end module 1 then generates a second number of complete data records including a second number of volatile data slices and corresponding stable data slices, and returns the second number of complete data records to the client 2. Generating a set of complete data records 200 at the front-end module 1 by combining the stable data slices 201 of the data records 200 retrieved from the cache 3 with the current volatile data slices 202 or 202-1, 202-2 and 202-3 retrieved from the real-time data source 4, respectively, and returning the set of complete data records 200 to one of the one or more clients 2 includes, at the front-end module 1, in response to completing the first iteration of retrieving the given first number of volatile data slices (activity 12-1), generating a complete first subset of data records 200 in activity 13-1 by combining the first number of current volatile data slices with the corresponding stable data slices 201 of the data records 200 retrieved from the cache 3 and returning at least a subset of the complete first subset of data records 200 to the client 2 in activity 14-1. In response to completing the second iteration of retrieving the given second number of volatile data slices (activity 12-2), the front-end module 1 generates in activity 13-2 a complete second subset of data records 200 by combining the second number of current volatile data slices with the corresponding stable data slices 201 of the data records 200 retrieved from the cache 3 and returns in activity 14-2 at least a subset of the complete second subset of data records 200 to the client 2. This enables a first response to the search request of the client 2 immediately after the generation of the subset in activity 13-1 has been completed.
[0059] Even if a large number of volatile data slices 202 or 202-1, 202-2 and 202-3 are to be retrieved from the real-time data source 4, the subdivision into iteratively larger retrieval batches of volatile data slices facilitates timely and incremental processing of the volatile data slices 202 at the front-end module 1 and timely and incremental return of the completed data slices to the client 2. The front-end module 1 is enabled to already process a first number of volatile data slices while a second number of data slices (and so on) are still to be retrieved.
[0060] Referring again to the example of SQL-processable tables, the front-end module may receive volatile data slice #1 202-1 (i.e., table “table_volatile#1”) in a first iteration (activity 12-1) and receive volatile data slice #2 202-2 and volatile data slice #3 (i.e., tables “table_volatile#2” and “table_volatile#3”) in a second iteration (activity 12-2).
[0061] Referring again to the example of SQL processable tables, after the front-end module 1 has received, for example, the table "table_volatile#1" in a first iteration (activity 12-1), by, for example, using the SQL command JOIN, the front-end module 1 generates in activity 13-1 a complete first subset of data records 200 by, for example, combining the table "table_volatile#1" with the table "table_stable" retrieved from the cache 3. The front-end module 1 then returns this first combined table to the client 2 in activity 14-1. Then, after the front-end module 1 has received the tables "table_volatile#2" and "table_volatile#3" in a second iteration (activity 12-2), by, for example, again using the SQL command JOIN, the front-end module 1 generates in activity 13-2 a complete second subset of data records 200 by, for example, combining the tables "table_volatile#2" and "table_volatile#3" with the table "table_stable" retrieved from the cache 3. The front-end module 1 then returns this second combined table to the client 2 in activity 14-2.
[0062] In some embodiments, in addition or alternatively, the volatile data slices 202 or 202-1, 202-2 and 202-3 are dynamically calculated by the real-time data source 4 upon request. As an illustrative example, the front-end module 1 may request volatile data slices 202 or 202-1, 202-2 and 202-3 for five stable data slices 201 in a first iteration. In a second iteration, the front-end module 1 requests volatile data slices 202 or 202-1, 202-2 and 202-3 for ten stable data slices 201 in the second iteration. The number of five and ten stable data slices 201 just mentioned is used only as an illustrative example. In practice, such a number may be lower or higher, for example, on the order of ten, one hundred or one thousand, depending on actual usage.
[0063] An exemplary use case for the mechanisms described in the subject disclosure involves Fig.10 201 . The network may include data centers distributed throughout the world, with a large number of possible network paths connecting these data centers. Some data specifying data centers and network paths, such as data about the location of the data centers or the hardware properties of the connection paths (e.g., optical fiber, cable, or satellite), typically remains unchanged over longer periods of time, such as over several years, and can therefore be cached, for example, in a server's cache as stable data slices 201 once it has been calculated from underlying data in, for example, a real-time data source 4 of a service provider of the network path data. Some cached stable data slices 201 may be stored in a column for stable data slices of a SQL-processable table as follows:
[0064]
[0065]
[0066] In the cited example, data centers and network paths are associated with additional data, such as whether the data center or network path is currently operational or the current computational or transmission load of the corresponding data center and path, as shown in the following table. Such data changes at a much faster rate of change (such as on the order of days, hours or even minutes) and can be considered (highly) volatile and therefore considered as volatile data pieces (202 or 202-1, 202-1 and 202-3), which can be calculated from underlying data stored in, for example, a real-time data source 4 of the service provider of the path data. Such volatile data can be stored in a SQL processable table in a column for volatile data pieces:
[0067] Data Center Operational Status Calculating Load Data Center #1 operate 50% Data Center #2 operate 95% Data Center #3 Non-operational 0% Data Center #4 operate 100%
[0068] path Operational Status Transmission load Path #1 Non-operational 0% Path #2 operate 5% Path #3 operate 40% Path #4 operate 90%
[0069] If a client (such as client 2, which may be a computing station of data center #1) is to send data to data center #3, client 2 may send a search request to the front-end module 1 of the server. The front-end module 1 may retrieve data records with stable data slices (i.e., data about data centers and paths) from the cache 3 in activities 11 and 12, and additional volatile data about data centers and paths from the real-time data source 4. Using appropriate SQL commands (such as JOIN), the front-end module 1 of the server may generate (activity 13) a table as follows:
[0070]
[0071] The front-end module 1 eventually returns this table to the requesting client 2, i.e., the computing station of the data center #1. The client 2 may select a path combination of path #3 and path #4 to send data to the data center #2.
[0072] However, an hour later, the operational conditions of the path may have changed, and Client 2 may receive the following table as a response to the same search request.
[0073]
[0074] Client 2 may then also select a path combination of path #1 and path #2 to send data to data center #2.
[0075] Another use case of the method relates to assisting a vehicle driver or an autonomous vehicle in navigation, where a stable data slice 201 specifies a route connecting location A with location B (stable data). The volatile data slice 202 or 202-1, 202-1 and 202-3 may include additional data related to the route and driving, such as data about traffic jams, road construction and maintenance work, etc. (volatile data), which changes on a time scale on the order of hours and days. On the other hand, the route connecting locations (such as A and B) changes on a much larger time scale (such as months or years). The volatile data slice 202 or 202-1, 202-1 and 202-3 may also include data such as whether gas stations and specific stores located next to the route are currently open. The first combined data record 200 may then read as follows: "There is a route connection between locations A and B in New York City including route Nr. 1111; this route is currently blocked due to traffic jams, and gas station XYZ along the route is currently open." The second combined data record 200 may read as follows: "There is a route connection including route Nr. 2222 between locations A and B in New York City; this route is currently open, and no gas stations exist on this route". One hour later, traffic conditions in New York City may have changed, and the new first combined data record 200 may then read as follows: "There is a route connection including route Nr. 1111 between locations A and B in New York City; this route is currently free to travel, and gas station XYZ along this route is currently open". Three hours later, the updated first data record 200 may read as follows: "There is a route connection including route Nr. 1111 between locations A and B in New York City; this route is currently uncongested, and gas station XYZ along this route is closed". The combined data record 200 including the combination of the stable data record 201 and the series of volatile data records 202-1, 202-2 and 202-3 may read as follows:
[0076] - There is a route connection between locations A and B in New York City that includes route Nr. 1111; this route is currently free to travel, and gas station XYZ along this route is currently open for business."
[0077] - There is a route connection between locations A and B in New York City that includes route Nr. 1111; this route is currently free to travel, and gas station XYZ along this route is currently closed."
[0078] - There is a route connection between locations A and B in New York City that includes route Nr. 1111; this route is currently free to travel, and grocery store EFG along this route is currently open."
[0079] Referring further to the aforementioned example related to navigation, a driver driving a vehicle in New York City wishes to know a route connecting location A with location B within New York City. While on his / her route, the driver also wishes to refuel the vehicle and buy some groceries. The driver enters the corresponding parameters of his / her request into a driver assistance system located in the vehicle. A server (=front end module 1) connected to the driver assistance system receives in activity 10 a request for a route connection connecting location A with location B within New York City from the driver assistance system (client 2). In activity 11, the server receives as data records 200 possible connections between location A and location B, such as routes Nr. 1111 and 2222, comprised by one or more stable data slices 201, from a cache 3 that may be located in a central service unit. In activity 12, the server retrieves additional data related to route Nr. 1111 and 2222 from a real-time data source 4, such as current traffic conditions or which stores (such as gas stations and grocery stores) are currently open and therefore available. In activity 13, the server generates a set of combined data records 200 as described above and returns at least a subset of the set of complete data records 200 to the driver assistance system in activity 14. In this way, the driver receives updated data about possible connections between location A and location B represented by routes No. 1111 and 2222, traffic conditions on these routes, and refueling and shopping possibilities along these routes.
[0080] Further developing the example related to navigation, the server can store volatile data in the cache 3 in activity 15, such as data about specific traffic conditions (e.g., about construction or maintenance work occurring on the route between location A and location B over a period of days). The driver may also include in his request for a route between location A and location B a request for data about ongoing roadwork on these routes. When the server retrieves the data record 200 including the volatile data from the cache 3 in response to the driver's request, the server checks whether such volatile data (e.g., data about roadwork) is indicated in the criteria of the driver's search request. Since the driver has requested data about ongoing roadwork on the route between location A and location B in the current example, the volatile data retrieved from the cache 3 corresponds to the search criteria and will eventually be transmitted to the driver.
[0081] Fig.111 is a graphical representation of the internal components of a computing machine of a front-end system 1, a cache 3, a real-time database 4, and the one or more clients 2. The computing machine 100 includes a set of instructions so that when the set of instructions is executed by the computing machine 100, the computing machine 100 performs any of the methods discussed herein. The computing machine 100 includes at least one processor 101, a main memory 106, and a network interface device 103, which communicate with each other via a bus 104. Optionally, the computing machine 100 may also include a static memory 105 and a disk drive unit. A video display, an alphanumeric input device, and a cursor control device may be provided as examples of a user interface 102. The network interface device 103 connects the computing machine 100 to other components of a distributed database system, such as the front-end system 1, the cache 3, the real-time database 4, and the one or more clients 2 or another component (such as a database).
[0082] The computing machine 100 also hosts a cache 107. The cache 107 can store the received data records 200 and the stable data slices 201 (and the volatile data slices 202 or 202-1, 202-2 and 202-3). The cache 107 in this embodiment may include hardware and software components to store the data records 200 so that future requests for the data records 200 can be served faster than without the cache. There can be hardware-based caches (such as CPU caches, GPU caches, digital signal processors, and fast re-addressing buffers) and software-based caches (such as page caches, web caches (Hypertext Transfer Protocol, HTTP, cache), etc.). The front-end module 1, the cache 3, the real-time database 4 and the one or more clients 2 or databases may include the cache 107. The front-end module 1 also performs data processing, such as decoding the received data records 200, eliminating errors located in the data records 200 by removing, for example, redundant data sets or data sets with missing entries from the data records 200. Additionally, the data record 200 is made to have a common data format to facilitate further processing.
[0083] A set of computer executable instructions (i.e., computer program code) embodying any or all of the methods described herein is located completely or at least partially in or on a machine readable medium (e.g., main memory 106). The main memory 106 hosts computer program code for functional entities, such as database request processing 108 including functionality for receiving and processing database requests, and data processing functionality 109. The instructions may be further sent or received as propagated signals via the Internet or via the user interface 102 through the network interface device 103. Communication within the computing machine is performed via the bus 104. The basic operation of the computing machine 100 is controlled by an operating system, which is also located in the main memory 106, the at least one processor 101, and / or the static memory 105.
[0084] In general, routines executed to implement embodiments (whether implemented as part of an operating system or as a specific application, component, program, object, module, or sequence of instructions, or even a subset thereof) may be referred to herein as "computer program code" or simply "program code". Program code typically includes computer-readable instructions that reside in various memories and storage devices in a computer at various times, and when the computer-readable instructions are read and executed by one or more processors in a computer, the computer-readable instructions cause the computer to perform operations and / or elements required to perform various aspects of embodiments of the present invention. Computer-readable program instructions for performing operations of embodiments of the present invention may be source code or object code written, for example, in assembly language or in any combination of one or more programming languages.
Claims
1. A method for processing a search request in a distributed database environment, the distributed database environment comprising a front-end module, one or more clients, a cache, a real-time data source, and a plurality of data records, wherein each data record comprises at least one stable data slice and at least one volatile data slice, wherein underlying data of the at least one stable data slice that can be retrieved from the real-time data source changes according to a first change rate and underlying data of the at least one volatile data slice that can be retrieved from the real-time data source changes according to a second change rate, and the second change rate is higher than the first change rate, wherein the cache stores at least one corresponding stable data slice of the plurality of data records, And the method comprises in the front-end module: receiving a search request from one of the one or more clients; In response to the search request, retrieving a set of data records from a cache, wherein a respective at least one stable data slice of the set of data records corresponds to a search criterion indicated in the search request; retrieving a current volatile data slice from a real-time data source of the retrieved set of data records, wherein the current volatile data slice corresponds to a stable data slice of the retrieved set of data records; generating a set of complete data records by respectively combining the stable data slices of the data records retrieved from the cache and the current volatile data slices retrieved from the real-time data source; and At least a subset of the complete set of data records is returned to one of the one or more clients.
2. The method of claim 1 , wherein the cache further stores volatile data slices of the plurality of data records, and retrieving the set of data records from the cache comprises: It is checked whether the volatile data slices of the set of data records correspond to the search criteria indicated in the search request.
3. The method of claim 1, further comprising: receiving a series of data records including the plurality of data records from at least one external data source; filtering data records whose stable data slices and / or volatile data slices do not meet a given threshold value in the received series of data records; and The remaining unfiltered data records are stored in the cache as the plurality of data records.
4. The method of claim 1, wherein the distributed database environment further comprises a master real-time subsystem, and further comprising: determining, at the front end module, that the number of data records retrieved from the cache is below a predetermined threshold; Retrieving, at the front-end module, from the primary real-time subsystem, a set of complete additional data records, wherein the respective at least one additional stable data slice of the set of complete additional data records corresponds to the search criteria indicated in the search request, comprising, at the primary real-time subsystem: determining one or more additional stable data pieces corresponding to search criteria indicated in the search request; calculating corresponding one or more current additional volatile data slices corresponding to the determined one or more additional stable data slices; combining the determined one or more additional stable data pieces with the correspondingly calculated one or more additional volatile data pieces to form the complete additional data record; Returning the complete additional data record to the front-end module; The set of complete additional data records is added to the set of complete data records at the front end module.
5. The method of claim 4, wherein the cache stores at least a subset of the corresponding at least one additional stable data slice of the complete additional data record.
6. The method according to claim 1, further comprising, in the front end module: In response to generating the set of complete data records, selecting the subset of the set of complete data records based on a given criterion; In response to returning the subset of the complete set of data records to one of the one or more clients, the subset is stored in a cache.
7. The method of claim 1 , wherein retrieving the current volatile data piece from the real-time data source comprises retrieving the current volatile data piece from the real-time data source in an incremental manner, and retrieving the current volatile data piece from the real-time data source in an incremental manner comprises, at the front-end module: In a first iteration, a given first number of volatile data slices are retrieved in parallel from the real-time data source; In a second iteration, after the first iteration is completed, a given second number of volatile data slices are retrieved in parallel from the real-time data source, wherein the second number of volatile data slices is greater than the first number of volatile data slices.
8. The method of claim 7, wherein generating a set of complete data records by respectively combining the stable data pieces of the data records retrieved from the cache and the current volatile data pieces retrieved from the real-time data source and returning the set of complete data records to one of the one or more clients comprises: responsive to completing a first iteration of retrieving the given first number of volatile data slices, generating a complete first subset of data records by combining the first number of current volatile data slices with corresponding stable data slices of the data records retrieved from the cache and returning the complete first subset of data records to the client, In response to completing a second iteration of retrieving the given second number of volatile data slices, generating a complete second subset of data records by combining the second number of current volatile data slices with corresponding stable data slices of the data records retrieved from the cache and returning the complete second subset of data records to the client.
9. A computing machine used as a front-end module for processing search requests in a distributed database environment, the distributed database environment comprising the front-end module, a client, a cache and a real-time data source, wherein the distributed database environment stores a plurality of data records, wherein each data record comprises at least one stable data slice and at least one volatile data slice, wherein underlying data of at least one stable data slice retrievable from the real-time data source changes at a first change rate and underlying data of at least one volatile data slice retrievable from the real-time data source changes at a second change rate, and the second change rate is higher than the first change rate, wherein the cache stores at least one corresponding stable data slice of the plurality of data records, the computing machine comprising at least one processor configured to execute instructions, the instructions causing the computing machine to: receiving a search request from one of the one or more clients; In response to the search request, retrieving a set of data records from a cache, wherein a respective at least one stable data slice of the set of data records corresponds to a search criterion indicated in the search request; retrieving a current volatile data slice from a real-time data source of the retrieved set of data records, wherein the current volatile data slice corresponds to a stable data slice of the retrieved set of data records; generating a set of complete data records by respectively combining the stable data slices of the data records retrieved from the cache and the current volatile data slices retrieved from the real-time data source; and At least a subset of the complete set of data records is returned to one of the one or more clients.
10. The computing machine of claim 9, wherein the cache further stores volatile data slices of the plurality of data records, and the instructions causing the computing machine to retrieve the set of data records from the cache comprise: It is checked whether the volatile data slices of the set of data records correspond to the search criteria indicated in the search request.
11. The computing machine of claim 9, wherein the instructions further comprise: receiving a series of data records including the plurality of data records from at least one external data source; filtering data records whose stable data slices and / or volatile data slices do not meet a given threshold value in the received series of data records; and The remaining unfiltered data records are stored in the cache as the plurality of data records.
12. The computing machine of claim 9, further comprising in a front end module: In response to generating the set of complete data records, selecting the subset of the set of complete data records based on a given criterion; In response to returning the subset of the complete set of data records to one of the one or more clients, the subset is stored in a cache.
13. A non-transitory computer-readable storage medium, comprising instructions, which when executed by a processor of a computing machine, cause the computing machine to function as a front-end module for processing search requests in a distributed database environment, the distributed database environment comprising the front-end module, a client, a cache, and a real-time data source, wherein the distributed database environment stores a plurality of data records, wherein each data record comprises at least one stable data slice and at least one volatile data slice, wherein underlying data of the at least one stable data slice retrievable from the real-time data source changes at a first change rate and underlying data of the at least one volatile data slice retrievable from the real-time data source changes at a second change rate, and the second change rate is higher than the first change rate, wherein the cache stores at least the corresponding at least one stable data slice of the plurality of data records, the instructions comprising: receiving a search request from one of the one or more clients; In response to the search request, retrieving a set of data records from a cache, wherein a respective at least one stable data slice of the set of data records corresponds to a search criterion indicated in the search request; retrieving a current volatile data slice from a real-time data source of the retrieved set of data records, wherein the current volatile data slice corresponds to a stable data slice of the retrieved set of data records; generating a set of complete data records by respectively combining the stable data slices of the data records retrieved from the cache and the current volatile data slices retrieved from the real-time data source; and At least a subset of the complete set of data records is returned to one of the one or more clients.
