WO2016082432A1 - Data query method and device - Google Patents

Data query method and device Download PDF

Info

Publication number
WO2016082432A1
WO2016082432A1 PCT/CN2015/076790 CN2015076790W WO2016082432A1 WO 2016082432 A1 WO2016082432 A1 WO 2016082432A1 CN 2015076790 W CN2015076790 W CN 2015076790W WO 2016082432 A1 WO2016082432 A1 WO 2016082432A1
Authority
WO
WIPO (PCT)
Prior art keywords
keyword
checked
query
service unit
query result
Prior art date
Application number
PCT/CN2015/076790
Other languages
French (fr)
Chinese (zh)
Inventor
冯电明
于同泉
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016082432A1 publication Critical patent/WO2016082432A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor

Abstract

A data query method and device, the method comprising: one or more functional units sending a to-be-queried keyword to a centralized service unit respectively via corresponding client units; the service unit employing the received to-be-queried keyword to obtain a query result from a data base; and if the query result indicates the query is failed, then the service unit employing the keyword of the failed query to obtain a query result from the data base according to a preset re-query period. Through the technical solution provided in an embodiment of the present invention, re-querying is performed by the service unit to shorten a re-query path, thus improving re-query efficiency.

Description

一种查询数据的方法和装置Method and device for querying data 技术领域Technical field
本文涉及通信领域中的数据库技术,尤其涉及一种查询数据的方法和装置。This paper relates to database technology in the field of communications, and in particular to a method and apparatus for querying data.
背景技术Background technique
在用于通信的设备如计算机网络设备中,经常遇到设备中两个或两个以上功能单元均需要从数据库查询数据的情况。其中,功能单元用于实现特定业务功能,例如用于实现双向转发检测(BFD)功能。目前,查询数据的方法包括:一个或者多个功能单元分别经由对应的客户单元向对应的服务单元发送待查关键字;服务单元转发接收到的待查关键字到数据库;数据库根据接收到的待查关键字进行查询,并将查询结果返回给服务单元;服务单元将接收到的查询结果返回给对应的客户单元;客户单元根据接收到的查询结果确定是否查询成功,如果查询成功,将查询结果中的已查关键字返回给对应的功能单元,如果查询失败,客户单元按照预先设置的重新查询周期向服务单元发送查询失败的待查关键字,以实现定期重新查询查询失败的待查关键字。In a device for communication, such as a computer network device, it is often encountered that two or more functional units in the device need to query data from a database. The functional unit is used to implement a specific service function, for example, to implement a bidirectional forwarding detection (BFD) function. At present, the method for querying data includes: one or more functional units respectively send a to-be-checked keyword to a corresponding service unit via a corresponding client unit; the service unit forwards the received pending keyword to a database; and the database is based on the received The keyword is searched and the query result is returned to the service unit; the service unit returns the received query result to the corresponding client unit; the client unit determines whether the query is successful according to the received query result, and if the query is successful, the query result is obtained. The checked keyword is returned to the corresponding functional unit. If the query fails, the client unit sends a query for the failed query to the service unit according to the pre-set re-query period, so as to implement the re-inquiring query for the failed query. .
目前的查询数据的方法中,如果查询失败,客户单元定期重新查询,一方面,由于重新查询的查询路径为:客户单元经由对应的服务单元到数据库,因此重新查询的查询路径较长,所需要的查询时间较长,从而使得重新查询的效率不高;另一方面,由于相似的重新查询功能需要实现在多个客户单元中,这样增加了实现资源。In the current method for querying data, if the query fails, the client unit periodically re-queries. On the one hand, since the query path of the re-query is: the client unit goes to the database via the corresponding service unit, the query path of the re-query is longer, and is required. The query time is longer, which makes the re-query less efficient; on the other hand, since the similar re-query function needs to be implemented in multiple client units, this increases the implementation resources.
发明内容Summary of the invention
为了解决上述技术问题,本发明实施例提供了一种查询数据方法和装置,能够缩短重新查询的查询路径,从而提高重新查询的查询效率。In order to solve the above technical problem, an embodiment of the present invention provides a method and apparatus for querying data, which can shorten the query path of re-query, thereby improving query efficiency of re-query.
本发明实施例公开了一种查询数据的方法,包括: The embodiment of the invention discloses a method for querying data, including:
一个或者多个功能单元分别经由对应的客户单元向统一的服务单元发送待查关键字;The one or more functional units respectively send the to-be-checked keywords to the unified service unit via the corresponding client unit;
服务单元采用接收到的待查关键字从数据库获得查询结果,如果查询结果显示查询失败,服务单元按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果。The service unit obtains the query result from the database by using the received keyword to be checked. If the query result indicates that the query fails, the service unit obtains the query result from the database by using the keyword that fails the query according to the preset re-query cycle.
所述服务单元采用待查关键字从数据库获得查询结果包括:The service unit obtains the query result from the database by using the keyword to be checked, including:
所述服务单元转发接收到的待查关键字到所述数据库;The service unit forwards the received to-be-checked keyword to the database;
所述数据库根据接收到的待查关键字进行查询,并将查询结果返回给所述服务单元。The database performs a query according to the received keyword to be checked, and returns the query result to the service unit.
如果所述查询结果显示查询成功,该方法还包括:所述服务单元将所述查询结果中的已查关键字经由所述客户单元发送给所述功能单元。If the query result indicates that the query is successful, the method further includes: the service unit transmitting the checked keyword in the query result to the functional unit via the client unit.
如果所述查询结果显示查询成功,该方法还包括:所述服务单元保存所述待查关键字与所述查询结果中的已查关键字之间的对应关系。If the query result indicates that the query is successful, the method further includes: the service unit saves a correspondence between the to-be-checked keyword and the checked keyword in the query result.
当获得用于通知重新查询的消息时,该方法还包括:When obtaining a message for notifying a re-query, the method further includes:
所述服务单元根据保存的对应关系确定是否存在需要重新查询的所述待查关键字,如果存在,采用确定出的待查关键字从所述数据库获得所述查询结果。The service unit determines, according to the saved correspondence, whether there is a to-be-searched keyword that needs to be re-queried, and if so, obtains the query result from the database by using the determined to-be-checked keyword.
当所述消息包括所述已查关键字时,所述确定是否存在包括:根据所述消息中的已查关键字和所述对应关系确定是否存在对应的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。When the message includes the checked keyword, the determining whether the presence comprises: determining whether there is a corresponding pending keyword according to the checked keyword and the corresponding relationship in the message, and if yes, determining The pending keyword is the pending keyword that needs to be re-queried.
当所述消息包括所述待查关键字时,所述确定是否存在包括:确定所述对应关系中是否存在所述消息中的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。When the message includes the to-be-checked keyword, the determining whether the presence of the keyword includes: determining whether the keyword to be checked in the message exists in the correspondence, and if yes, determining the to-be-checked keyword is required Re-query the pending keywords.
本发明实施例还公开了一种查询数据的装置,包括一个或一个以上功能单元、与功能单元一一对应的客户单元、一个服务单元、和一个数据库,其中,The embodiment of the invention further discloses an apparatus for querying data, comprising one or more functional units, a client unit corresponding to the functional unit, a service unit, and a database, wherein
功能单元,设置为经由对应的客户单元向服务单元发送待查关键字; a functional unit, configured to send a to-be-searched keyword to the service unit via the corresponding client unit;
客户单元,设置为转发功能单元与服务单元之间的信息;a client unit, configured to forward information between the functional unit and the service unit;
服务单元,设置为转发来自客户端的待查关键字到所述数据库;当来自数据库的查询结果显示查询失败时,按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果;a service unit, configured to forward the to-be-checked keyword from the client to the database; when the query result from the database indicates that the query fails, the query result is obtained from the database by using a keyword that fails the query according to a preset re-query cycle;
数据库,根据来自服务单元的待查关键字进行查询,并将查询结果返回给所述服务单元。The database queries the keywords to be checked from the service unit and returns the query results to the service unit.
所述服务单元还设置为:当所述查询结果显示查询成功时,将所述查询结果中的已查关键字经由所述客户单元发送给所述功能单元。The service unit is further configured to: when the query result indicates that the query is successful, send the checked keyword in the query result to the functional unit via the client unit.
所述服务单元还设置为:当所述查询结果显示查询成功时,保存所述待查关键字与所述查询结果中的已查关键字之间的对应关系。The service unit is further configured to: when the query result indicates that the query is successful, save a correspondence between the to-be-checked keyword and the checked keyword in the query result.
当获得用于通知重新查询的消息时,所述服务单元还设置为:根据保存的对应关系确定是否存在需要重新查询的所述待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。When the message for notifying the re-inquiry is obtained, the service unit is further configured to: determine, according to the saved correspondence, whether there is the to-be-searched keyword that needs to be re-queried, and when it is determined to exist, use the determined to-be-checked The keyword obtains the query result from the database.
当所述消息包括所述已查关键字,且获得所述消息时,所述服务单元具体设置为:When the message includes the checked keyword and the message is obtained, the service unit is specifically configured to:
根据所述消息中的已查关键字和所述对应关系确定是否存在对应的待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。Determining whether there is a corresponding to-be-searched keyword according to the checked keyword and the corresponding relationship in the message, and when the existence is determined, obtaining the query result from the database by using the determined to-be-checked keyword.
当所述消息包括所述待查关键字,且获得所述消息时,所述服务单元具体设置为:When the message includes the to-be-checked keyword and the message is obtained, the service unit is specifically configured to:
确定所述对应关系中是否存在所述消息中的待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。Determining whether there is a to-be-searched keyword in the message in the correspondence, and when it is determined to exist, obtaining the query result from the database by using the determined keyword to be checked.
与相关技术相比,本发明实施例技术方案包括:一个或者多个功能单元分别经由对应的客户单元向统一的服务单元发送待查关键字;服务单元采用接收到的待查关键字从数据库获得查询结果,如果查询结果显示查询失败,服务单元按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果。通过本发明实施例技术方案,实现了由服务单元进行重新查询,一方面,由于重新查询的查询路径为:服务单元到数据库,因此重新查询的 查询路径较短,从而提高了重新查询的查询效率;另一方面,由于在服务单元中实现了重新查询功能,避免了多个客户重复实现相似的重新查询功能,从而节省了实现资源。Compared with the related art, the technical solution of the embodiment of the present invention includes: one or more functional units respectively send a to-be-searched keyword to a unified service unit via a corresponding client unit; the service unit obtains the to-be-checked keyword from the database If the query result shows that the query fails, the service unit obtains the query result from the database by using the keyword that fails the query according to the preset re-query cycle. Through the technical solution of the embodiment of the present invention, the re-query by the service unit is implemented. On the one hand, since the query path of the re-query is: the service unit to the database, the re-query is performed. The query path is shorter, which improves the query efficiency of re-query. On the other hand, due to the re-query function implemented in the service unit, multiple clients are prevented from repeatedly implementing similar re-query functions, thereby saving resources.
本发明实施例的其它特征和优点将在随后的说明书中阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明实施例而了解。本发明实施例的目的和其他优点可通过在说明书、权利要求书以及附图中所特别指出的结构来实现和获得。Other features and advantages of the embodiments of the invention will be set forth in the description in the description in the claims The objectives and other advantages of the embodiments of the present invention can be realized and obtained by the structure of the invention.
附图概述BRIEF abstract
附图用来提供对本发明实施例技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明实施例的技术方案,并不构成对本发明实施例技术方案的限制。The accompanying drawings are used to provide a further understanding of the embodiments of the embodiments of the invention, and .
图1为本发明实施例查询数据的方法的流程图;1 is a flowchart of a method for querying data according to an embodiment of the present invention;
图2为本发明实施例查询数据的装置的组成结构示意图。FIG. 2 is a schematic structural diagram of a device for querying data according to an embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在一些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
图1为本发明实施例查询数据的方法的流程图,如图1所示,包括:FIG. 1 is a flowchart of a method for querying data according to an embodiment of the present invention. As shown in FIG. 1, the method includes:
步骤101:一个或者多个功能单元分别经由对应的客户单元向统一的服务单元发送待查关键字。Step 101: The one or more functional units respectively send the to-be-checked keywords to the unified service unit via the corresponding client unit.
这里强调的是,一个或者多个功能单元分别经由对应的客户单元向一个统一的服务单元发送待查关键字。It is emphasized here that one or more functional units respectively send the to-be-checked keywords to a unified service unit via the corresponding client unit.
步骤102:服务单元采用接收到的待查关键字从数据库获得查询结果,如果查询结果显示查询失败,服务单元按照预先设置的重新查询周期采用查 询失败的关键字从数据库获得查询结果。Step 102: The service unit obtains the query result from the database by using the received keyword to be checked. If the query result indicates that the query fails, the service unit checks according to a preset re-query cycle. The failed keyword is retrieved from the database.
其中,服务单元采用待查关键字从数据库获得查询结果包括:服务单元转发接收到的待查关键字到数据库;数据库根据接收到的待查关键字进行查询,并将查询结果返回给服务单元。The service unit obtains the query result from the database by using the to-be-checked keyword, and the service unit forwards the received candidate keyword to the database; the database performs the query according to the received keyword to be checked, and returns the query result to the service unit.
步骤102中的重新查询周期可以为分钟级时间,如1分钟、5分钟或10分钟等。The re-query cycle in step 102 can be a minute time, such as 1 minute, 5 minutes, or 10 minutes.
可选地,Optionally,
如果查询结果显示查询成功,本发明实施例方法还包括:服务单元将查询结果中的已查关键字经由客户单元发送给功能单元。If the query result indicates that the query is successful, the method of the embodiment of the present invention further includes: the service unit sends the checked keyword in the query result to the functional unit via the client unit.
可选地,Optionally,
如果查询结果显示查询成功,本发明实施例方法还包括:服务单元保存待查关键字与查询结果中的已查关键字之间的对应关系。If the query result indicates that the query is successful, the method of the embodiment of the present invention further includes: the service unit saves the correspondence between the keyword to be checked and the checked keyword in the query result.
相应地,Correspondingly,
当获得用于通知重新查询的消息时,本发明实施例方法还包括:服务单元根据保存的对应关系确定是否存在需要重新查询的待查关键字,如果存在,采用确定出的待查关键字从数据库获得查询结果;如果不存在,结束。When the message for informing the re-inquiry is obtained, the method of the embodiment of the present invention further includes: the service unit determines, according to the saved correspondence, whether there is a to-be-searched keyword that needs to be re-queried, and if yes, uses the determined keyword to be checked from The database gets the result of the query; if it doesn't exist, it ends.
当消息包括已查关键字时,上述确定是否存在包括:根据消息中的已查关键字和对应关系确定是否存在对应的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。When the message includes the checked keyword, whether the foregoing determination includes: determining whether there is a corresponding candidate to be checked according to the checked keyword and the corresponding relationship in the message, and if yes, determining the to-be-checked keyword needs to be re-queried. The keyword to be checked.
当消息包括待查关键字时,上述确定是否存在包括:确定对应关系中是否存在消息中的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。When the message includes the to-be-checked keyword, whether the presence or absence of the above-mentioned determination includes: determining whether there is a to-be-searched keyword in the message in the correspondence, and if so, determining the to-be-checked keyword is a to-be-checked keyword that needs to be re-queried.
图2为本发明实施例查询数据的装置,如图2,包括一个或一个以上功能单元、与功能单元一一对应的客户单元、一个服务单元、和一个数据库,其中,2 is an apparatus for querying data according to an embodiment of the present invention. FIG. 2 includes one or more functional units, a client unit corresponding to a functional unit, a service unit, and a database, where
功能单元,设置为经由对应的客户单元向服务单元发送待查关键字。The functional unit is configured to send the to-be-checked keyword to the service unit via the corresponding client unit.
客户单元,设置为转发功能单元与服务单元之间的信息。 A client unit, set to forward information between a functional unit and a service unit.
服务单元,设置为转发来自客户端的待查关键字到数据库;当来自数据库的查询结果显示查询失败时,按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果。The service unit is configured to forward the to-be-searched keyword from the client to the database; when the query result from the database indicates that the query fails, the query result is obtained from the database according to the preset re-query period using the keyword that fails the query.
数据库,设置为根据来自服务单元的待查关键字进行查询,并将查询结果返回给服务单元。The database is set to query based on the pending keyword from the service unit and return the query result to the service unit.
可选地,Optionally,
服务单元还设置为:当查询结果显示查询成功时,将查询结果中的已查关键字经由客户单元发送给功能单元。The service unit is further configured to: when the query result shows that the query is successful, send the checked keyword in the query result to the functional unit via the client unit.
可选地,Optionally,
服务单元还设置为:当查询结果显示查询成功时,保存待查关键字与查询结果中的已查关键字之间的对应关系。The service unit is further configured to: when the query result indicates that the query is successful, save the correspondence between the checked keyword and the checked keyword in the query result.
可选地,Optionally,
当获得用于通知重新查询的消息时,服务单元还设置为:根据保存的对应关系确定是否存在需要重新查询的待查关键字,当确定出存在时,采用确定出的待查关键字从数据库获得查询结果。When the message for notifying the re-inquiry is obtained, the service unit is further configured to: determine, according to the saved correspondence, whether there is a to-be-checked keyword that needs to be re-queried, and when it is determined to exist, use the determined keyword to be checked from the database. Get the query results.
当消息包括已查关键字时,且获得消息时,服务单元是设置为:根据消息中的已查关键字和对应关系确定是否存在对应的待查关键字,当确定出存在时,采用确定出的待查关键字从数据库获得查询结果。When the message includes the checked keyword, and the message is obtained, the service unit is configured to: determine whether there is a corresponding pending keyword according to the checked keyword and the corresponding relationship in the message, and when it is determined to exist, determine to use The pending keyword gets the query result from the database.
当消息包括待查关键字,且获得消息时,服务单元是设置为:确定对应关系中是否存在消息中的待查关键字,当确定出存在时,采用确定出的待查关键字从数据库获得查询结果。When the message includes the to-be-checked keyword and the message is obtained, the service unit is configured to: determine whether there is a to-be-checked keyword in the message in the correspondence, and when it is determined to exist, use the determined keyword to be checked to obtain from the database. search result.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件 结合。All or part of the steps of the above embodiments may also be implemented using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or a plurality of modules or steps may be implemented as a single integrated circuit module. Thus, the invention is not limited to any particular hardware and software. Combine.
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
通过本发明实施例技术方案,实现了由服务单元进行重新查询,一方面,由于重新查询的查询路径为:服务单元到数据库,因此重新查询的查询路径较短,从而提高了重新查询的查询效率;另一方面,由于在服务单元中实现了重新查询功能,避免了多个客户重复实现相似的重新查询功能,从而节省了实现资源。 Through the technical solution of the embodiment of the present invention, the re-query is implemented by the service unit. On the one hand, since the query path of the re-query is: the service unit to the database, the query path of the re-query is shorter, thereby improving the query efficiency of the re-query. On the other hand, since the re-query function is implemented in the service unit, multiple clients are prevented from repeatedly implementing similar re-query functions, thereby saving resource realization.

Claims (14)

  1. 一种查询数据的方法,包括:A method of querying data, including:
    一个或者多个功能单元分别经由对应的客户单元向统一的服务单元发送待查关键字;The one or more functional units respectively send the to-be-checked keywords to the unified service unit via the corresponding client unit;
    所述服务单元采用接收到的待查关键字从数据库获得查询结果,如果查询结果显示查询失败,所述服务单元按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果。The service unit obtains the query result from the database by using the received keyword to be checked. If the query result indicates that the query fails, the service unit obtains the query result from the database by using the keyword that fails the query according to the preset re-query cycle.
  2. 根据权利要求1所述的方法,其中,所述服务单元采用待查关键字从数据库获得查询结果包括:The method according to claim 1, wherein the service unit obtains the query result from the database by using the to-be-checked keyword, including:
    所述服务单元转发接收到的待查关键字到所述数据库;The service unit forwards the received to-be-checked keyword to the database;
    所述数据库根据接收到的待查关键字进行查询,并将查询结果返回给所述服务单元。The database performs a query according to the received keyword to be checked, and returns the query result to the service unit.
  3. 根据权利要求1所述的方法,如果所述查询结果显示查询成功,该方法还包括:所述服务单元将所述查询结果中的已查关键字经由所述客户单元发送给所述功能单元。The method according to claim 1, if the query result indicates that the query is successful, the method further comprises: the service unit transmitting the checked keyword in the query result to the functional unit via the client unit.
  4. 根据权利要求3所述的方法,如果所述查询结果显示查询成功,该方法还包括:所述服务单元保存所述待查关键字与所述查询结果中的已查关键字之间的对应关系。The method according to claim 3, if the query result indicates that the query is successful, the method further comprises: the service unit saving a correspondence between the to-be-checked keyword and the checked keyword in the query result .
  5. 根据权利要求4所述的方法,当所述服务单元获得用于通知重新查询的消息时,该方法还包括:The method according to claim 4, when the service unit obtains a message for notifying a re-query, the method further comprises:
    所述服务单元根据保存的对应关系确定是否存在需要重新查询的所述待查关键字,如果存在,采用确定出的待查关键字从所述数据库获得所述查询结果。The service unit determines, according to the saved correspondence, whether there is a to-be-searched keyword that needs to be re-queried, and if so, obtains the query result from the database by using the determined to-be-checked keyword.
  6. 根据权利要求5所述的方法,其中,所述消息包括所述已查关键字;所述确定是否存在需要重新查询的所述待查关键字包括:根据所述消息中的已查关键字和所述对应关系确定是否存在对应的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。 The method according to claim 5, wherein the message includes the checked keyword; the determining whether there is a to-be-searched keyword that needs to be re-queried includes: according to the checked keyword and the message The corresponding relationship determines whether there is a corresponding keyword to be checked. If yes, the determined keyword to be checked is a to-be-checked keyword that needs to be re-queried.
  7. 根据权利要求5所述的方法,其中,所述消息包括所述待查关键字;所述确定是否存在需要重新查询的所述待查关键字包括:确定所述对应关系中是否存在所述消息中的待查关键字,如果存在,确定出的待查关键字为需要重新查询的待查关键字。The method according to claim 5, wherein the message includes the to-be-checked keyword; the determining whether there is a to-be-checked keyword that needs to be re-queried includes: determining whether the message exists in the correspondence relationship The keyword to be checked in the case, if it exists, the identified keyword to be checked is the to-be-checked keyword that needs to be re-queried.
  8. 一种查询数据的装置,包括一个或者多个功能单元、与功能单元一一对应的客户单元、一个服务单元、和一个数据库,其中,An apparatus for querying data, comprising: one or more functional units, a client unit corresponding to the functional unit, a service unit, and a database, wherein
    所述功能单元,设置为经由对应的客户单元向服务单元发送待查关键字;The function unit is configured to send a to-be-searched keyword to the service unit via the corresponding client unit;
    所述客户单元,设置为转发功能单元与服务单元之间的信息;The client unit is configured to forward information between the function unit and the service unit;
    所述服务单元,设置为转发来自客户端的待查关键字到所述数据库;当来自数据库的查询结果显示查询失败时,按照预先设置的重新查询周期采用查询失败的关键字从数据库获得查询结果;The service unit is configured to forward the to-be-checked keyword from the client to the database; when the query result from the database indicates that the query fails, the query result is obtained from the database by using a keyword that fails the query according to a preset re-query cycle;
    所述数据库,设置为根据来自服务单元的待查关键字进行查询,并将查询结果返回给所述服务单元。The database is configured to perform a query according to the to-be-checked keyword from the service unit, and return the query result to the service unit.
  9. 根据权利要求8所述的装置,其中,所述服务单元还设置为:当所述查询结果显示查询成功时,将所述查询结果中的已查关键字经由所述客户单元发送给所述功能单元。The apparatus according to claim 8, wherein the service unit is further configured to: when the query result indicates that the query is successful, send the checked keyword in the query result to the function via the client unit unit.
  10. 根据权利要求8所述的装置,其中,所述服务单元还设置为:当所述查询结果显示查询成功时,保存所述待查关键字与所述查询结果中的已查关键字之间的对应关系。The apparatus according to claim 8, wherein the service unit is further configured to: save the check keyword between the checked keyword and the checked keyword in the query result when the query result indicates that the query is successful Correspondence relationship.
  11. 根据权利要求10所述的装置,当获得用于通知重新查询的消息时,所述服务单元还设置为:根据保存的对应关系确定是否存在需要重新查询的所述待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。The apparatus according to claim 10, when obtaining a message for notifying a re-query, the service unit is further configured to: determine, according to the saved correspondence, whether there is the to-be-checked keyword that needs to be re-queried, when it is determined When present, the query result is obtained from the database using the determined key to be checked.
  12. 根据权利要求11所述的装置,其中,所述消息包括所述已查关键字;当获得所述消息时,所述服务单元是设置为:The apparatus of claim 11, wherein the message comprises the checked keyword; when the message is obtained, the service unit is set to:
    根据所述消息中的已查关键字和所述对应关系确定是否存在对应的待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。 Determining whether there is a corresponding to-be-searched keyword according to the checked keyword and the corresponding relationship in the message, and when the existence is determined, obtaining the query result from the database by using the determined to-be-checked keyword.
  13. 根据权利要求11所述的装置,其中,所述消息包括所述待查关键字;当获得所述消息时,所述服务单元是设置为:The apparatus of claim 11, wherein the message comprises the to-be-checked keyword; when the message is obtained, the service unit is set to:
    确定所述对应关系中是否存在所述消息中的待查关键字,当确定出存在时,采用确定出的待查关键字从所述数据库获得所述查询结果。Determining whether there is a to-be-searched keyword in the message in the correspondence, and when it is determined to exist, obtaining the query result from the database by using the determined keyword to be checked.
  14. 一种计算机可读存储介质,存储有程序指令,当该程序指令被执行时可实现权利要求1-7任一项所述的方法。 A computer readable storage medium storing program instructions that, when executed, implement the method of any of claims 1-7.
PCT/CN2015/076790 2014-11-27 2015-04-16 Data query method and device WO2016082432A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410706125.6 2014-11-27
CN201410706125.6A CN105701111A (en) 2014-11-27 2014-11-27 Data query method and apparatus

Publications (1)

Publication Number Publication Date
WO2016082432A1 true WO2016082432A1 (en) 2016-06-02

Family

ID=56073470

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/076790 WO2016082432A1 (en) 2014-11-27 2015-04-16 Data query method and device

Country Status (2)

Country Link
CN (1) CN105701111A (en)
WO (1) WO2016082432A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825505A (en) * 2019-10-29 2020-02-21 深圳前海环融联易信息科技服务有限公司 Task scheduling method and device, computer equipment and storage medium
CN112115227A (en) * 2020-08-14 2020-12-22 咪咕文化科技有限公司 Data query method and device, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888416A (en) * 2010-07-20 2010-11-17 中兴通讯股份有限公司 Multi-platform application fused release platform and application downloading method
CN103745321A (en) * 2014-01-21 2014-04-23 王水洋 Cross-platform management system and method of realizing cross management
CN103795763A (en) * 2012-11-02 2014-05-14 中兴通讯股份有限公司 Method for providing unified services and unified service platform in ubiquitous network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005055982A (en) * 2003-08-06 2005-03-03 Canon Inc Information processing method, information processing program and device
CN103139270A (en) * 2011-12-01 2013-06-05 上海博腾信息科技有限公司 Cloud computing application system
CN102625486B (en) * 2012-04-16 2014-12-10 中国科学院声学研究所 Agent node, sensor network, and method for acquiring sensor network data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888416A (en) * 2010-07-20 2010-11-17 中兴通讯股份有限公司 Multi-platform application fused release platform and application downloading method
CN103795763A (en) * 2012-11-02 2014-05-14 中兴通讯股份有限公司 Method for providing unified services and unified service platform in ubiquitous network
CN103745321A (en) * 2014-01-21 2014-04-23 王水洋 Cross-platform management system and method of realizing cross management

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825505A (en) * 2019-10-29 2020-02-21 深圳前海环融联易信息科技服务有限公司 Task scheduling method and device, computer equipment and storage medium
CN110825505B (en) * 2019-10-29 2024-03-29 深圳前海环融联易信息科技服务有限公司 Task scheduling method, device, computer equipment and storage medium
CN112115227A (en) * 2020-08-14 2020-12-22 咪咕文化科技有限公司 Data query method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN105701111A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
KR102152556B1 (en) Service processing and consensus method and device
US9330161B2 (en) Creating global aggregated namespaces for storage management
US9317555B2 (en) Query method for a distributed database system and query apparatus
US10574752B2 (en) Distributed data storage method, apparatus, and system
WO2019024676A1 (en) Alliance-chain-based out-of-chain data access method and system
CN105786808B (en) A kind of method and apparatus for distributed execution relationship type computations
WO2018040722A1 (en) Table data query method and device
WO2020173080A1 (en) Method and apparatus for querying call chain information
CN103729471A (en) Method and device for database query
EP3188051B1 (en) Systems and methods for search template generation
US8812492B2 (en) Automatic and dynamic design of cache groups
WO2016070751A1 (en) Distributed cache range querying method, device, and system
CN108289034A (en) A kind of fault discovery method and apparatus
CN103136342A (en) Searching method, system and searching server of application programs (APP)
US9813331B2 (en) Assessing response routes in a network
CN103823846A (en) Method for storing and querying big data on basis of graph theories
CN104580428B (en) A kind of data routing method, data administrator and distributed memory system
US20120317275A1 (en) Methods and devices for node distribution
KR20220058556A (en) Anonymization and randomization of device LCD
US20170374154A1 (en) Generating a response to a client device in an internet of things domain
US10652081B1 (en) Facilitating resilient and fault tolerant asynchronous messaging
WO2016070750A1 (en) Distributed buffering range querying method, device, and system
WO2016082432A1 (en) Data query method and device
US10853370B2 (en) Devices and/or methods to provide a query response based on ephemeral data
US20230043889A1 (en) Message Processing Method and Device, Storage Medium, and Electronic Device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15863842

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15863842

Country of ref document: EP

Kind code of ref document: A1