TWI831023B - Query system and its data update method - Google Patents
Query system and its data update method Download PDFInfo
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 238000010586 diagram Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000010076 replication Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
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
本發明是有關於一種資料更新方法,特別是指一種查詢系統及其資料更新方法。 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
該查詢伺服器11經由一第一通訊網路101連接該資料庫伺服器12,且經由一第二通訊網路102連接一相關於一待查詢客戶的待查詢客戶端103。該查詢伺服器11儲存多筆查詢資料,每一查
詢資料對應一客戶。該資料庫伺服器12儲存一包括多名感興趣更新客戶的更新名單。
The
值得注意的是,在本實施例中,該待查詢客戶端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
本發明查詢系統資料更新方法的一第一實施例包含一查詢程序及一更新程序,是由圖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
在步驟202中,該查詢伺服器11回傳對應該待查詢客戶的查詢資料至該待查詢客戶端103。
In
在步驟203中,該查詢伺服器11產生並傳送一包括該待查詢客戶的名單更新請求至該資料庫伺服器12。
In
在步驟204中,該資料庫伺服器12根據該名單更新請求更新該更新名單,更新後的該更新名單包括該待查詢客戶。
In
值得注意的是,在本實施例中,該更新名單預設為空白,
當有客戶進行查詢時,該查詢伺服器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
參閱圖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
在步驟302中,該查詢伺服器11根據該等第一更新資料更新所有查詢資料。
In
在步驟303中,該資料庫伺服器12根據該更新名單及一第二更新週期週期性地傳送多筆對應該等感興趣更新客戶的第二更新資料至該查詢伺服器11,其中該第二更新週期小於該第一更新週期。
In
在步驟304中,該查詢伺服器11根據該等第二更新資料更新對應該等感興趣更新客戶的查詢資料。
In
值得注意的是,在本實施例中,該第一更新週期例如為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
該查詢伺服器41經由一第一通訊網路401連接該資料庫伺服器42,且經由一第二通訊網路402連接一相關於一待查詢客戶的待查詢客戶端403。該查詢伺服器41儲存多筆查詢資料、一軟體容器(Container)、多筆分別對應該等資料庫伺服器42的資料查詢次數,及多筆分別對應該等資料庫伺服器42的權重,每一查詢資料對應一客戶及一資料類別。每一資料庫伺服器42儲存一包括多名感興趣更新客戶的更新名單。
The
值得注意的是,在本實施例中,該資料類別例如為信用卡、貸款、收單之其中一者,該等資料庫伺服器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
本發明查詢系統資料更新方法的一第二實施例包含一查詢程序及一更新程序,是由圖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
在步驟502中,該查詢伺服器41執行該軟體容器以回傳對應該待查詢客戶的查詢資料至該待查詢客戶端403。
In
在步驟503中,該查詢伺服器41執行該軟體容器以產生並傳送一包括該待查詢客戶的名單更新請求至一對應該待查詢資料類別的目標資料庫伺服器42。
In
在步驟504中,該目標資料庫伺服器42根據該名單更新請求更新其儲存的更新名單,更新後的該更新名單包括該待查詢客戶。
In
在步驟505中,該查詢伺服器41執行該軟體容器以更新對應該目標資料庫伺服器42的資料查詢次數。
In
在步驟506中,該查詢伺服器41執行該軟體容器以根據該等資料查詢次數計算出一查詢數值。
In
值得注意的是,在本實施例中,該查詢數值V可以下式表示:
在步驟507中,該查詢伺服器41執行該軟體容器以判定
該查詢數值是否大於一門檻值。當判定出該查詢數值大於該門檻值時,流程進行步驟508;而當判定出該查詢數值是否不大於該門檻值時,則結束流程。
In
在步驟508中,該查詢伺服器41產生另一軟體容器。
In
要特別注意的是,該查詢數值大於該門檻值時,預判客戶將來會有大量查詢需求,因此該查詢伺服器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
參閱圖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
在步驟602中,該查詢伺服器41根據該等資料庫伺服器42所傳送的第一更新資料更新所有查詢資料。
In
在步驟603中,對於每一資料庫伺服器42,該資料庫伺服器42根據其儲存的更新名單及一第二更新週期週期性地傳送多筆對應該更新名單之感興趣更新客戶的第二更新資料至該查詢伺服器41,其中該第二更新週期小於該第一更新週期。
In
在步驟604中,對於每一第二更新資料,該查詢伺服器41
根據該第二更新資料更新對應該第二更新資料之感興趣更新客戶的查詢資料。
In
綜上所述,本發明查詢系統及其資料更新方法,藉由每一資料庫伺服器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
惟以上所述者,僅為本發明的實施例而已,當不能以此限定本發明實施的範圍,凡是依本發明申請專利範圍及專利說明書內容所作的簡單的等效變化與修飾,皆仍屬本發明專利涵蓋的範圍內。 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)
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)
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)
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 |