TWI831023B - Query system and its data update method - Google Patents

Query system and its data update method Download PDF

Info

Publication number
TWI831023B
TWI831023B TW110123530A TW110123530A TWI831023B TW I831023 B TWI831023 B TW I831023B TW 110123530 A TW110123530 A TW 110123530A TW 110123530 A TW110123530 A TW 110123530A TW I831023 B TWI831023 B TW I831023B
Authority
TW
Taiwan
Prior art keywords
query
update
server
data
queried
Prior art date
Application number
TW110123530A
Other languages
Chinese (zh)
Other versions
TW202301147A (en
Inventor
譚蓓華
楊明憲
Original Assignee
中國信託商業銀行股份有限公司
Filing date
Publication date
Application filed by 中國信託商業銀行股份有限公司 filed Critical 中國信託商業銀行股份有限公司
Priority to TW110123530A priority Critical patent/TWI831023B/en
Publication of TW202301147A publication Critical patent/TW202301147A/en
Application granted granted Critical
Publication of TWI831023B publication Critical patent/TWI831023B/en

Links

Images

Abstract

一種查詢系統資料更新方法,該查詢系統包括一儲存多筆查詢資料的查詢伺服器及至少一資料庫伺服器,每一資料庫伺服器儲存一包括多名感興趣更新客戶的更新名單,包含以下步驟:(A)對於每一資料庫伺服器,根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器,以致該查詢伺服器更新所有查詢資料;及(B)對於每一資料庫伺服器,根據該更新名單及一小於該第一更新週期的第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器,以致該查詢伺服器更新對應該等感興趣更新客戶的查詢資料。A query system data update method. The query system includes a query server that stores multiple query data and at least one database server. Each database server stores an update list including multiple interested update customers, including the following Steps: (A) For each database server, periodically transmit a plurality of first update data corresponding to all customers to the query server according to a first update cycle, so that the query server updates all query data; and (B) For each database server, periodically transmit a plurality of second update data corresponding to the interested update customers to the query server based on the update list and a second update cycle that is smaller than the first update cycle. server, causing the query server to update query data corresponding to the clients interested in updating the query.

Description

查詢系統及其資料更新方法Query system and its data update method

本發明是有關於一種資料更新方法,特別是指一種查詢系統及其資料更新方法。 The present invention relates to a data updating method, in particular to a query system and its data updating method.

現有查詢系統裡的資料都是以一固定頻率進行更新,例如1天更新一次,然而單一固定頻率更新可能無法滿足迫切想知道最新資訊的客戶。 The data in the existing query system is updated at a fixed frequency, such as once a day. However, a single fixed frequency update may not satisfy customers who are eager to know the latest information.

但如果為了提升客戶的體驗而縮短資料的更新頻率,系統需要在短時間內更新所有客戶的資料,資訊量非常的龐大,需耗費系統大量的資源。 However, if the data update frequency is shortened in order to improve customer experience, the system needs to update all customer data in a short period of time. The amount of information is very large and consumes a lot of system resources.

如何提升客戶的體驗又不會耗費系統大量的資源遂成為一重要課題。 How to improve customer experience without consuming a lot of system resources has become an important issue.

因此,本發明的目的,即在提供一種耗費系統少量資源提升客戶的體驗的查詢系統資料更新方法。 Therefore, the purpose of the present invention is to provide a query system data updating method that consumes a small amount of system resources to improve customer experience.

於是,本發明查詢系統資料更新方法,該查詢系統包括一查詢伺服器及至少一資料庫伺服器,該查詢伺服器經由一第一通訊網路連接該至少一資料庫伺服器,該查詢伺服器儲存多筆查詢資料,每一查詢資料對應一客戶,每一資料庫伺服器儲存一更新名單,該更新名單包括多名感興趣更新客戶,該查詢系統資料更新方法包含一步驟(A)及一步驟(B)。 Therefore, the query system data update method of the present invention includes a query server and at least one database server. The query server is connected to the at least one database server through a first communication network. The query server stores Multiple query data, each query data corresponds to a customer, each database server stores an update list, the update list includes multiple customers who are interested in updating, the query system data update method includes one step (A) and one step (B).

在該步驟(A)中,對於每一資料庫伺服器,該資料庫伺服器根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器,以致該查詢伺服器根據該等第一更新資料更新所有查詢資料。 In this step (A), for each database server, the database server periodically transmits a plurality of first update data corresponding to all customers to the query server according to a first update cycle, so that the query The server updates all query data based on the first updated data.

在該步驟(B)中,對於每一資料庫伺服器,該資料庫伺服器根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器,以致該查詢伺服器根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料,其中該第二更新週期小於該第一更新週期。 In this step (B), for each database server, the database server periodically transmits a plurality of second update data corresponding to the interested update customers based on the update list and a second update cycle. The query server causes the query server to update query data corresponding to the interested update clients based on the second update data, wherein the second update period is smaller than the first update period.

本發明的另一目的,即在提供一種耗費系統少量資源提升客戶的體驗的查詢系統。 Another object of the present invention is to provide a query system that consumes a small amount of system resources to improve customer experience.

於是,本發明查詢系統包含一查詢伺服器及至少一資料庫伺服器。 Therefore, the query system of the present invention includes a query server and at least one database server.

該查詢伺服器儲存多筆查詢資料,每一查詢資料對應一 客戶。 The query server stores multiple query data, each query data corresponds to a customer.

該至少一資料庫伺服器經由一第一通訊網路連接該查詢伺服器,每一資料庫伺服器儲存一更新名單,該更新名單包括多名感興趣更新客戶。 The at least one database server is connected to the query server through a first communication network, and each database server stores an update list, and the update list includes a plurality of interested update customers.

對於每一資料庫伺服器,該資料庫伺服器根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器,以致該查詢伺服器根據該等第一更新資料更新所有查詢資料。 For each database server, the database server periodically sends a plurality of first update data corresponding to all customers to the query server according to a first update cycle, so that the query server responds to the first updates Data updates all query data.

對於每一資料庫伺服器,該資料庫伺服器根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器,以致該查詢伺服器根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料,其中該第二更新週期小於該第一更新週期。 For each database server, the database server periodically transmits a plurality of second update data corresponding to the interested update customers to the query server based on the update list and a second update cycle, so that the query The server updates the query data corresponding to the interested update customers based on the second update data, wherein the second update period is shorter than the first update period.

本發明之功效在於:藉由該資料庫伺服器根據該更新名單及該第二更新週期週期性地傳送對應該等感興趣更新客戶的該等第二更新資料至該查詢伺服器,僅縮短該等感興趣更新客戶的更新資料時間,達到以耗費系統少量的資源提高客戶體驗之功效。 The effect of the present invention is that the database server periodically transmits the second update data corresponding to the interested update customers to the query server according to the update list and the second update cycle, thereby only shortening the Waiting for the updated information time for users who are interested in updating can achieve the effect of improving the user experience by consuming a small amount of system resources.

11:查詢伺服器 11: Query server

12:資料庫伺服器 12: Database server

101:第一通訊網路 101:First Communication Network

102:第二通訊網路 102:Second Communication Network

103:待查詢客戶端 103: Client to be queried

201~204:查詢程序 201~204: Query program

301~304:更新程序 301~304:Update program

41:查詢伺服器 41:Query server

42:資料庫伺服器 42: Database server

401:第一通訊網路 401:First Communications Network

402:第二通訊網路 402: Second communication network

403:待查詢客戶端 403: Client to be queried

501~508:查詢程序 501~508: Query program

601~604:更新程序 601~604:Update program

本發明的其他的特徵及功效,將於參照圖式的實施方式 中清楚地呈現,其中:圖1是一方塊圖,說明本發明查詢系統的一第一實施例;圖2是一流程圖,說明本發明查詢系統資料更新方法的一第一實施例的一查詢程序;圖3是一流程圖,說明本發明查詢系統資料更新方法的該第一實施例的一更新程序;圖4是一方塊圖,說明本發明查詢系統的一第二實施例;圖5是一流程圖,說明本發明查詢系統資料更新方法的一第二實施例的一查詢程序;及圖6是一流程圖,說明本發明查詢系統資料更新方法的該第二實施例的一更新程序。 Other features and effects of the present invention will be described with reference to the embodiments of the drawings. is clearly presented in, wherein: Figure 1 is a block diagram illustrating a first embodiment of the query system of the present invention; Figure 2 is a flow chart illustrating a query of a first embodiment of the query system data update method of the present invention. Procedure; Figure 3 is a flow chart illustrating an update procedure of the first embodiment of the query system data update method of the present invention; Figure 4 is a block diagram illustrating a second embodiment of the query system of the present invention; Figure 5 is A flow chart illustrating a query procedure of a second embodiment of the query system data update method of the present invention; and FIG. 6 is a flow chart illustrating an update procedure of the second embodiment of the query system data update method of the present invention.

在本發明被詳細描述之前,應當注意在以下的說明內容中,類似的元件是以相同的編號來表示。 Before the present invention is described in detail, it should be noted that in the following description, similar elements are designated with the same numbering.

參閱圖1,說明本發明查詢系統的一第一實施例,包含一一查詢伺服器11及一資料庫伺服器12。 Referring to Figure 1, a first embodiment of the query system of the present invention is illustrated, including a query server 11 and a database server 12.

該查詢伺服器11經由一第一通訊網路101連接該資料庫伺服器12,且經由一第二通訊網路102連接一相關於一待查詢客戶的待查詢客戶端103。該查詢伺服器11儲存多筆查詢資料,每一查 詢資料對應一客戶。該資料庫伺服器12儲存一包括多名感興趣更新客戶的更新名單。 The query server 11 is connected to the database server 12 via a first communication network 101, and is connected to a client 103 to be queried related to a client to be queried via a second communication network 102. The query server 11 stores multiple query data. Each query The inquiry information corresponds to a customer. The database server 12 stores an update list including a plurality of interested update clients.

值得注意的是,在本實施例中,該待查詢客戶端103例如為智慧型電子裝置或電腦,該第一通訊網路101例如為內部網(Intranet),該第二通訊網路102例如為網際網路(Internet),但不以此為限。 It is worth noting that in this embodiment, the client 103 to be queried is, for example, a smart electronic device or a computer, the first communication network 101 is, for example, an intranet, and the second communication network 102 is, for example, the Internet. (Internet), but not limited to this.

本發明查詢系統資料更新方法的一第一實施例包含一查詢程序及一更新程序,是由圖1所示的本發明查詢系統的該第一實施例來實現。 A first embodiment of the query system data updating method of the present invention includes a query program and an update program, which is implemented by the first embodiment of the query system of the present invention shown in FIG. 1 .

參閱圖1、2,以下說明本發明查詢系統資料更新方法的該第一實施例之該查詢程序的步驟流程。 Referring to Figures 1 and 2, the following describes the step flow of the query program of the first embodiment of the query system data update method of the present invention.

在步驟201中,該待查詢客戶端103產生並傳送一包括該待查詢客戶的查詢請求至該查詢伺服器11。 In step 201, the client 103 to be queried generates and sends a query request including the client to be queried to the query server 11.

在步驟202中,該查詢伺服器11回傳對應該待查詢客戶的查詢資料至該待查詢客戶端103。 In step 202, the query server 11 returns query data corresponding to the client to be queried to the client 103 to be queried.

在步驟203中,該查詢伺服器11產生並傳送一包括該待查詢客戶的名單更新請求至該資料庫伺服器12。 In step 203, the query server 11 generates and sends a list update request including the customer to be queried to the database server 12.

在步驟204中,該資料庫伺服器12根據該名單更新請求更新該更新名單,更新後的該更新名單包括該待查詢客戶。 In step 204, the database server 12 updates the update list according to the list update request, and the updated update list includes the customer to be queried.

值得注意的是,在本實施例中,該更新名單預設為空白, 當有客戶進行查詢時,該查詢伺服器11會產生並傳送名單更新請求至該資料庫伺服器12,以致該資料庫伺服器12將進行查詢的客戶作為感興趣更新客戶新增至該更新名單中,在其他實施方式中,亦可以其他方式加增感興趣更新客戶至該更新名單,不以此為限。 It is worth noting that in this embodiment, the update list is blank by default. When a customer makes an inquiry, the inquiry server 11 will generate and send a list update request to the database server 12, so that the database server 12 will add the inquiry customer to the update list as an interested update customer. In other implementations, customers interested in updating can also be added to the update list in other ways, but are not limited to this.

參閱圖1、3,以下說明本發明查詢系統資料更新方法的該第一實施例之該更新程序的步驟流程。 Referring to Figures 1 and 3, the following describes the step flow of the update procedure of the first embodiment of the query system data update method of the present invention.

在步驟301中,該資料庫伺服器12根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器11。 In step 301, the database server 12 periodically transmits a plurality of first update data corresponding to all customers to the query server 11 according to a first update cycle.

在步驟302中,該查詢伺服器11根據該等第一更新資料更新所有查詢資料。 In step 302, the query server 11 updates all query data according to the first updated data.

在步驟303中,該資料庫伺服器12根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器11,其中該第二更新週期小於該第一更新週期。 In step 303, the database server 12 periodically transmits a plurality of second update data corresponding to the interested update customers to the query server 11 according to the update list and a second update cycle, wherein the second update data is sent to the query server 11. The update period is smaller than the first update period.

在步驟304中,該查詢伺服器11根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料。 In step 304, the query server 11 updates the query data corresponding to the interested update customers based on the second update data.

值得注意的是,在本實施例中,該第一更新週期例如為1天,該第二更新週期例如為12小時。 It is worth noting that in this embodiment, the first update period is, for example, one day, and the second update period is, for example, 12 hours.

參閱圖4,說明本發明查詢系統的一第二實施例,包含一 一查詢伺服器41及多個分別對應多個資料類別的資料庫伺服器42。 Referring to Figure 4, a second embodiment of the query system of the present invention is illustrated, including a A query server 41 and a plurality of database servers 42 respectively corresponding to a plurality of data types.

該查詢伺服器41經由一第一通訊網路401連接該資料庫伺服器42,且經由一第二通訊網路402連接一相關於一待查詢客戶的待查詢客戶端403。該查詢伺服器41儲存多筆查詢資料、一軟體容器(Container)、多筆分別對應該等資料庫伺服器42的資料查詢次數,及多筆分別對應該等資料庫伺服器42的權重,每一查詢資料對應一客戶及一資料類別。每一資料庫伺服器42儲存一包括多名感興趣更新客戶的更新名單。 The query server 41 is connected to the database server 42 via a first communication network 401, and is connected to a client 403 to be queried related to a client to be queried via a second communication network 402. The query server 41 stores multiple query data, a software container (Container), multiple query times corresponding to the database servers 42, and weights corresponding to the database servers 42. Each query server 41 stores multiple query data. One query data corresponds to one customer and one data category. Each database server 42 stores an update list including a plurality of clients interested in updating.

值得注意的是,在本實施例中,該資料類別例如為信用卡、貸款、收單之其中一者,該等資料庫伺服器42例如為信用卡資料庫伺服器、貸款資料庫伺服器、收單資料庫伺服器,該軟體容器用以提供查詢微服務(Microservices),但不以此為限。 It is worth noting that in this embodiment, the data type is, for example, one of credit card, loan, and acquirer, and the database servers 42 are, for example, a credit card database server, a loan database server, and an acquirer. Database server, this software container is used to provide query microservices (Microservices), but is not limited to this.

本發明查詢系統資料更新方法的一第二實施例包含一查詢程序及一更新程序,是由圖4所示的本發明查詢系統的該第二實施例來實現。 A second embodiment of the query system data updating method of the present invention includes a query program and an update program, which is implemented by the second embodiment of the query system of the present invention as shown in FIG. 4 .

參閱圖4、5,以下說明本發明查詢系統資料更新方法的該第二實施例之該查詢程序的步驟流程。 Referring to Figures 4 and 5, the following describes the step flow of the query program of the second embodiment of the query system data update method of the present invention.

在步驟501中,該待查詢客戶端403產生並傳送一包括該待查詢客戶及一待查詢資料類別的查詢請求至該查詢伺服器41。 In step 501, the client 403 to be queried generates and sends a query request including the client to be queried and a data category to be queried to the query server 41.

在步驟502中,該查詢伺服器41執行該軟體容器以回傳對應該待查詢客戶的查詢資料至該待查詢客戶端403。 In step 502, the query server 41 executes the software container to return query data corresponding to the client to be queried to the client 403 to be queried.

在步驟503中,該查詢伺服器41執行該軟體容器以產生並傳送一包括該待查詢客戶的名單更新請求至一對應該待查詢資料類別的目標資料庫伺服器42。 In step 503, the query server 41 executes the software container to generate and send a list update request including the customer to be queried to a target database server 42 of the data type to be queried.

在步驟504中,該目標資料庫伺服器42根據該名單更新請求更新其儲存的更新名單,更新後的該更新名單包括該待查詢客戶。 In step 504, the target database server 42 updates its stored update list according to the list update request, and the updated update list includes the customer to be queried.

在步驟505中,該查詢伺服器41執行該軟體容器以更新對應該目標資料庫伺服器42的資料查詢次數。 In step 505, the query server 41 executes the software container to update the number of data queries corresponding to the target database server 42.

在步驟506中,該查詢伺服器41執行該軟體容器以根據該等資料查詢次數計算出一查詢數值。 In step 506, the query server 41 executes the software container to calculate a query value based on the data query times.

值得注意的是,在本實施例中,該查詢數值V可以下式表示:

Figure 110123530-A0305-02-0009-1
M為該等資料庫伺服器42的數量,W i 為第i個資料庫伺服器42對應的權重,N i 為第i個資料庫伺服器42對應的查詢次數,在其他實施方式中,該查詢數值亦可為該等查詢次數的總和,不以此為限。 It is worth noting that in this embodiment, the query value V can be expressed by the following formula:
Figure 110123530-A0305-02-0009-1
M is the number of these database servers 42, Wi is the weight corresponding to the i- th database server 42, Ni is the number of queries corresponding to the i- th database server 42, in other embodiments, The query value can also be the sum of the number of queries, but is not limited to this.

在步驟507中,該查詢伺服器41執行該軟體容器以判定 該查詢數值是否大於一門檻值。當判定出該查詢數值大於該門檻值時,流程進行步驟508;而當判定出該查詢數值是否不大於該門檻值時,則結束流程。 In step 507, the query server 41 executes the software container to determine The query value is greater than a threshold value. When it is determined that the query value is greater than the threshold value, the process proceeds to step 508; and when it is determined that the query value is not greater than the threshold value, the process ends.

在步驟508中,該查詢伺服器41產生另一軟體容器。 In step 508, the query server 41 generates another software container.

要特別注意的是,該查詢數值大於該門檻值時,預判客戶將來會有大量查詢需求,因此該查詢伺服器41利用容器瞬時複製增容的特性,產生另一軟體容器進而增加系統服務(即查詢微服務)。 It is important to note that when the query value is greater than the threshold, it is predicted that the customer will have a large number of query needs in the future, so the query server 41 uses the characteristics of instantaneous replication and capacity expansion of the container to generate another software container to increase system services ( i.e. query microservices).

參閱圖4、6,以下說明本發明查詢系統資料更新方法的該第二實施例之該更新程序的步驟流程。 Referring to Figures 4 and 6, the following describes the step flow of the update procedure of the second embodiment of the query system data update method of the present invention.

在步驟601中,對於每一資料庫伺服器42,該資料庫伺服器42根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器41。 In step 601, for each database server 42, the database server 42 periodically transmits a plurality of first update data corresponding to all customers to the query server 41 according to a first update cycle.

在步驟602中,該查詢伺服器41根據該等資料庫伺服器42所傳送的第一更新資料更新所有查詢資料。 In step 602, the query server 41 updates all query data according to the first update data sent by the database servers 42.

在步驟603中,對於每一資料庫伺服器42,該資料庫伺服器42根據其儲存的更新名單及一第二更新週期週期性地傳送多筆對應該更新名單之感興趣更新客戶的第二更新資料至該查詢伺服器41,其中該第二更新週期小於該第一更新週期。 In step 603, for each database server 42, the database server 42 periodically transmits a plurality of second updates corresponding to the interested update clients of the update list based on the update list it stores and a second update cycle. Update data to the query server 41, wherein the second update period is smaller than the first update period.

在步驟604中,對於每一第二更新資料,該查詢伺服器41 根據該第二更新資料更新對應該第二更新資料之感興趣更新客戶的查詢資料。 In step 604, for each second updated data, the query server 41 Update the query information of the interested customer based on the second updated information.

綜上所述,本發明查詢系統及其資料更新方法,藉由每一資料庫伺服器42根據該更新名單及該第二更新週期週期性地傳送對應該等感興趣更新客戶的該等第二更新資料至該查詢伺服器41,僅縮短該等感興趣更新客戶的更新資料時間,達到以耗費系統少量的資源提高客戶體驗之功效,此外,藉由該查詢伺服器41根據該查詢數值及該門檻值,預判出客戶將來會有大量查詢需求時,產生另一軟體容器進而增加系統服務,故確實能達成本發明的目的。 In summary, the query system and its data update method of the present invention periodically transmit the second updates corresponding to the interested update customers through each database server 42 according to the update list and the second update cycle. Updating data to the query server 41 only shortens the data update time for customers who are interested in updating, achieving the effect of improving customer experience by consuming a small amount of system resources. In addition, the query server 41 uses the query value and the Threshold value, when it is predicted that the customer will have a large number of query needs in the future, another software container will be generated to increase system services, so the purpose of the present invention can indeed be achieved.

惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 However, the above are only examples of the present invention. They cannot be used to limit the scope of the present invention. All simple equivalent changes and modifications made based on the patent scope of the present invention and the contents of the patent specification are still within the scope of the present invention. within the scope covered by the patent of this invention.

11:查詢伺服器 11: Query server

12:資料庫伺服器 12: Database server

101:第一通訊網路 101:First Communication Network

102:第二通訊網路 102:Second Communication Network

103:待查詢客戶端 103: Client to be queried

Claims (6)

一種查詢系統資料更新方法,該查詢系統包括一查詢伺服器及多個分別對應多個資料類別的資料庫伺服器,該查詢伺服器經由一第一通訊網路連接該等資料庫伺服器,並經由一第二通訊網路連接一相關於一待查詢客戶的待查詢客戶端,該查詢伺服器儲存多筆查詢資料,每一查詢資料對應一客戶,每一資料庫伺服器儲存一更新名單,該更新名單包括多名感興趣更新客戶,該查詢系統資料更新方法包含以下步驟:(A)對於每一資料庫伺服器,該資料庫伺服器根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器,以致該查詢伺服器根據該等第一更新資料更新所有查詢資料;及(B)對於每一資料庫伺服器,該資料庫伺服器根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器,以致該查詢伺服器根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料,其中該第二更新週期小於該第一更新週期;(C)當該查詢伺服器接收到來自該待查詢客戶端的一包括該待查詢客戶及一待查詢資料類別的查詢請求時,該查詢伺服器產生一包括該待查詢客戶的名單更新請求,並傳送該名單更新請求至一對應該待查詢資料類別的目標資料庫伺服器;及 (D)對應該待查詢資料類別的該目標資料庫伺服器根據該名單更新請求更新該更新名單,更新後的該更新名單包括該待查詢客戶。 A method for updating data in a query system. The query system includes a query server and a plurality of database servers corresponding to multiple data categories. The query server is connected to the database servers through a first communication network, and is connected to the database servers via a first communication network. A second communication network is connected to a client to be queried related to a client to be queried. The query server stores a plurality of query data, each query data corresponds to a customer, and each database server stores an update list. The update The list includes multiple customers who are interested in updating. The query system data update method includes the following steps: (A) For each database server, the database server periodically transmits multiple records corresponding to all customers according to a first update cycle. of the first updated data to the query server, causing the query server to update all query data based on the first updated data; and (B) for each database server, the database server based on the updated list and A second update cycle periodically transmits a plurality of second update data corresponding to the interested update customers to the query server, so that the query server updates the second update data corresponding to the interested update customers based on the second update data. Query data, wherein the second update period is less than the first update period; (C) when the query server receives a query request from the client to be queried that includes the client to be queried and a data category to be queried, the The query server generates a list update request including the customer to be queried, and sends the list update request to a target database server of the data category to be queried; and (D) The target database server corresponding to the type of data to be queried updates the update list according to the list update request, and the updated update list includes the customer to be queried. 請求項1所述的查詢系統資料更新方法,該查詢伺服器還儲存有一軟體容器及多筆分別對應該等資料庫伺服器的資料查詢次數,其中,在步驟(D)中,該查詢伺服器執行該軟體容器以產生並傳送該名單更新請求至該目標資料庫伺服器,該方法還包含以下步驟:(E)該查詢伺服器執行該軟體容器以根據該等資料查詢次數計算出一查詢數值;(F)該查詢伺服器執行該軟體容器以判定該查詢數值是否大於一門檻值;及(G)當該查詢伺服器判定出該查詢數值大於該門檻值時,該查詢伺服器產生另一軟體容器。 In the query system data update method described in claim 1, the query server also stores a software container and a plurality of data query times corresponding to the database servers, wherein, in step (D), the query server Executing the software container to generate and transmit the list update request to the target database server, the method further includes the following steps: (E) the query server executes the software container to calculate a query value based on the number of data queries ; (F) The query server executes the software container to determine whether the query value is greater than a threshold; and (G) When the query server determines that the query value is greater than the threshold, the query server generates another Software container. 如請求項2所述的查詢系統資料更新方法,該查詢伺服器還儲存有多筆分別對應該等資料庫伺服器的權重,其中,在步驟(E)中該查詢數值V以下式表示:
Figure 110123530-A0305-02-0014-3
M為該等資料庫伺服器的數量,W i 為第i個資料庫伺服器對應的權重,N i 為第i個資料庫伺服器對應的查詢次數。
As in the query system data update method described in request item 2, the query server also stores a plurality of weights corresponding to the database servers, wherein the query value V in step (E) is expressed by the following formula:
Figure 110123530-A0305-02-0014-3
M is the number of such database servers, Wi is the weight corresponding to the i- th database server, and N i is the number of queries corresponding to the i- th database server.
一種查詢系統,包含:一查詢伺服器,經由一第二通訊網路連接一相關於一待查詢客戶的待查詢客戶端,儲存多筆查詢資料,每一查 詢資料對應一客戶;及多個資料庫伺服器,分別對應多個資料類別,經由一第一通訊網路連接該查詢伺服器,每一資料庫伺服器儲存一更新名單,該更新名單包括多名感興趣更新客戶;其中,對於每一資料庫伺服器,該資料庫伺服器根據一第一更新週期週期性地傳送多筆對應所有客戶的第一更新資料至該查詢伺服器,以致該查詢伺服器根據該等第一更新資料更新所有查詢資料;對於每一資料庫伺服器,該資料庫伺服器根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器,以致該查詢伺服器根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料,其中該第二更新週期小於該第一更新週期;當該查詢伺服器接收到來自該待查詢客戶端的一包括該待查詢客戶及一待查詢資料類別的查詢請求時,該查詢伺服器產生一包括該待查詢客戶的名單更新請求,並傳送該名單更新請求至一對應該待查詢資料類別的目標資料庫伺服器;對應該待查詢資料類別的該目標資料庫伺服器根據該名單更新請求更新該更新名單,更新後的該更新名單包括該待查詢客戶。 A query system includes: a query server connected to a client to be queried related to a client to be queried via a second communication network, and storing a plurality of query data. Each query The query data corresponds to one customer; and multiple database servers respectively correspond to multiple data categories. The query server is connected to the query server through a first communication network. Each database server stores an update list, and the update list includes multiple Customers interested in updating; wherein, for each database server, the database server periodically transmits a plurality of first update data corresponding to all customers to the query server according to a first update cycle, so that the query server The server updates all query data based on the first update data; for each database server, the database server periodically sends a plurality of updates corresponding to the interested customers based on the update list and a second update cycle. The second update data is sent to the query server, so that the query server updates the query data corresponding to the interested update customers based on the second update data, wherein the second update period is less than the first update period; when the query When the server receives a query request from the client to be queried that includes the customer to be queried and a data category to be queried, the query server generates a list update request including the customer to be queried, and sends the list update request to A pair of target database servers corresponding to the type of data to be queried; the target database server corresponding to the type of data to be queried updates the update list according to the list update request, and the updated update list includes the customer to be queried. 如請求項4所述的查詢系統,其中,該查詢伺服器還儲存有一軟體容器及多筆分別對應該等資料庫伺服器的資料查 詢次數,該查詢伺服器執行該軟體容器以產生並傳送該名單更新請求至該目標資料庫伺服器,並根據該等資料查詢次數計算出一查詢數值,且判定該查詢數值是否大於一門檻值,該查詢伺服器判定出該查詢數值大於該門檻值時,該查詢伺服器產生另一軟體容器。 The query system as described in claim 4, wherein the query server also stores a software container and a plurality of data queries respectively corresponding to the database servers. The query server executes the software container to generate and send the list update request to the target database server, calculates a query value based on the number of data queries, and determines whether the query value is greater than a threshold. , when the query server determines that the query value is greater than the threshold, the query server generates another software container. 如請求項5所述的查詢系統,其中,該查詢伺服器還儲存有多筆分別對應該等資料庫伺服器的權重,該查詢數值V以下式表示:
Figure 110123530-A0305-02-0016-2
M為該等資料庫伺服器的數量,W i 為第i個資料庫伺服器對應的權重,N i 為第i個資料庫伺服器對應的查詢次數。
The query system as described in claim 5, wherein the query server also stores a plurality of weights corresponding to the database servers, and the query value V is expressed by the following formula:
Figure 110123530-A0305-02-0016-2
M is the number of such database servers, Wi is the weight corresponding to the i- th database server, and N i is the number of queries corresponding to the i- th database server.
TW110123530A 2021-06-28 Query system and its data update method TWI831023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW110123530A TWI831023B (en) 2021-06-28 Query system and its data update method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW110123530A TWI831023B (en) 2021-06-28 Query system and its data update method

Publications (2)

Publication Number Publication Date
TW202301147A TW202301147A (en) 2023-01-01
TWI831023B true TWI831023B (en) 2024-02-01

Family

ID=

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10678807B1 (en) 2009-12-07 2020-06-09 Google Llc Generating real-time search results

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10678807B1 (en) 2009-12-07 2020-06-09 Google Llc Generating real-time search results

Similar Documents

Publication Publication Date Title
US8185561B1 (en) Scalable user clustering based on set similarity
US9948531B2 (en) Predictive prefetching to reduce document generation times
US9208189B2 (en) Distributed request processing
EP2904737B1 (en) Consistency-based service-level agreements in cloud storage environments
US20180255125A1 (en) Providing virtual markers based upon network connectivity
KR101723779B1 (en) Bottom-up optimized search system and method
WO2011047474A1 (en) Systems and methods for social graph data analytics to determine connectivity within a community
CN108647357B (en) Data query method and device
CN108984574B (en) Data processing method and device
US11720708B2 (en) Privacy preserving data collection and analysis
CN111522846B (en) Data aggregation method based on time sequence intermediate state data structure
US8868525B2 (en) Distributed information synchronization
US11360944B2 (en) Reconciliation of data in a distributed system
TWI831023B (en) Query system and its data update method
US20120011143A1 (en) Publish and Subscribe Data Delivery System and Method Using Keys
TWM618289U (en) Query system
TW202301147A (en) Query system and data updating method thereof capable of improving customer experience with only a small amount of system resource
CN115129964A (en) Method for pushing content item to be recommended, pushing system and electronic equipment
CN111865576A (en) Method and device for synchronizing URL classification data
CN114253951B (en) Data processing method, system and second server
CN115599380A (en) Page file generation method and device
CN111737008A (en) Resource data processing method and device, computer equipment and storage medium
CN116846748A (en) Network configuration management method and related device
Aswini et al. Dynamic Environment and Snowflake Schema in Real Time Data Services