CN106407194A - Information querying method and device - Google Patents
Information querying method and device Download PDFInfo
- Publication number
- CN106407194A CN106407194A CN201510448481.7A CN201510448481A CN106407194A CN 106407194 A CN106407194 A CN 106407194A CN 201510448481 A CN201510448481 A CN 201510448481A CN 106407194 A CN106407194 A CN 106407194A
- Authority
- CN
- China
- Prior art keywords
- information
- interconnected system
- request
- inquiry request
- query result
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2453—Query optimisation
- G06F16/24532—Query optimisation of parallel queries
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an information querying method and device. The information querying method includes: synchronously sending an information querying request to at least one associated system associated with the information querying request when the information querying request from an information request part is received; and sending a querying result of one associated system to the information request part when the querying result of one associated system of at least one associated system is received. According to the technical scheme of the invention, the information querying request can be synchronously sent to at least one associated system through a parallel querying manner, and then the querying time can be saved, the querying efficiency can be improved, and the defect that lots of querying time is expended due to a serial querying manner in the prior art can be avoided.
Description
Technical field
The present invention relates to inquiring technology field, particularly to a kind of information query method and device.
Background technology
At present, client, when carrying out inquiry business, is all using Series poll mode.Concrete processing procedure
As follows:When some inquiry request having multiple interconnected systems all may respond some client, client
This inquiry request can be sent to one of system by end, if then this system does not respond this inquiry request,
Client can send this inquiry request to another one system again, a certain in multiple interconnected systems
Individual system has responded this inquiry request, this poll-final, but the inquiry mode of this serial is relatively time-consuming,
Query rate is also slow, brings very big inconvenience to user, for example:All do not ring when there being i-1 interconnected system
Answer the inquiry request of client, when the inquiry request at i-th system ability customer in response end, this inquiry
The consumed time is Ttotal=T1+T2+ ...+Tn, and Ti is the elapsed time of i-th interconnected system of inquiry.
Content of the invention
The present invention provides a kind of information query method and device, in order to service inquiry is carried out by parallel mode,
To improve service inquiry speed, to reduce the service inquiry time.
The present invention provides a kind of information query method, including:Please in the information inquiry receiving information request side
When asking, by described information inquiry request synchronized transmission at least one being associated with described information inquiry request
Interconnected system;
When receiving the Query Result of one of at least one interconnected system described interconnected system, will be described
The Query Result of one interconnected system sends to described information requesting party.
In one embodiment, methods described also includes:
When each interconnected system at least one interconnected system described in preset time period does not all return institute
State Query Result or the described Query Result of return is space-time, send described information to described information requesting party
Inquiry request inquires about the information of failure.
In one embodiment, by described information inquiry request synchronized transmission to described information inquiry request
Before at least one associated interconnected system, methods described also includes:
At least one described interconnected system is determined according to described information inquiry request;
Determine the accounts information of each the described interconnected system at least one described interconnected system;And
Described by described information inquiry request synchronized transmission to being associated at least with described information inquiry request
One interconnected system, including:
Described information inquiry request is sent to described in each by the accounts information of interconnected system each described
Interconnected system.
In one embodiment, methods described also includes:
After sending the Query Result of one interconnected system to described information requesting party, receive and be derived from institute
State the confirmation of information request side, and disconnect the connection with interconnected system at least one described.
The present invention also provides a kind of information query device, including:First sending module, for receiving letter
During the information inquiring request of breath requesting party, described information inquiry request synchronized transmission is inquired about to described information
At least one associated interconnected system of request;
Second sending module, receives one of at least one interconnected system described interconnected system for working as
During Query Result, the Query Result of one interconnected system is sent to described information requesting party.
In one embodiment, described device also includes:
3rd sending module, for when each pass at least one interconnected system described in preset time period
Contact system does not all return described Query Result or the described Query Result of return is space-time, please to described information
The side of asking sends the information that described information inquiry request inquires about failure.
In one embodiment, the first determining module, for by described information inquiry request synchronized transmission extremely
Before at least one interconnected system being associated with described information inquiry request, according to described information inquiry request
Determine at least one described interconnected system;
Second determining module, for determining each described interconnected system at least one described interconnected system
Accounts information;And
Described first sending module includes:
Sending submodule, for passing through the accounts information of each described interconnected system by described information inquiry request
Send to interconnected system each described.
In one embodiment, described device also includes:
Receiver module, for sending the Query Result of one interconnected system to described information requesting party
Afterwards, receive the confirmation from described information requesting party;
Disconnect module, for disconnecting the connection with least one described interconnected system.
The technical scheme that embodiment of the disclosure provides can include following beneficial effect:
When receiving from the information inquiring request of client, can this information inquiring request synchronous concurrent
To at least one interconnected system that may complete this information inquiring request, then when this at least one interconnected system
In some system reply Query Result when it is possible to this Query Result is sent to information request side, and
Meaning this poll-final, thus farthest saving query time, improving query rate, it is to avoid make
Consume excessive query time with Series poll mode of the prior art.
Other features and advantages of the present invention will illustrate in the following description, and, partly from explanation
Become apparent in book, or understood by implementing the present invention.The purpose of the present invention and other advantages can
Realized by specifically noted structure in the specification write, claims and accompanying drawing and obtain
?.
Below by drawings and Examples, technical scheme is described in further detail.
Brief description
Accompanying drawing is used for providing a further understanding of the present invention, and constitutes a part for specification, with this
Bright embodiment is used for explaining the present invention together, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the information query method according to an exemplary embodiment.
Fig. 2 is the flow chart of another kind of information query method according to an exemplary embodiment.
Fig. 3 is the flow chart of another information query method according to an exemplary embodiment.
Fig. 4 is a kind of block diagram of the information query device according to an exemplary embodiment.
Fig. 5 is the block diagram of another kind of information query device according to an exemplary embodiment.
Fig. 6 is the block diagram of another information query device according to an exemplary embodiment.
Fig. 7 is the block diagram of another information query device according to an exemplary embodiment.
Specific embodiment
Below in conjunction with accompanying drawing, the preferred embodiments of the present invention are illustrated it will be appreciated that described herein
Preferred embodiment is merely to illustrate and explains the present invention, is not intended to limit the present invention.
In correlation technique, client, when carrying out inquiry business, is all using Series poll mode.Concrete place
Reason process is as follows:When some inquiry request having multiple interconnected systems all may respond some client
When, this inquiry request can be sent to one of system by client, if this system does not respond this inquiry and asks
Ask, client can send this inquiry request to another one system again, in multiple interconnected systems
Some system has responded this inquiry request, this poll-final, but the inquiry mode of this serial compares expense
When, query rate is also slow, brings very big inconvenience to user, for example:When having, i-1 interconnected system is equal
The inquiry request at non-customer in response end, when the inquiry request at i-th system ability customer in response end, this
Time consumed in inquiry is Ttotal=T1+T2+ ...+Ti, and Ti is the consumption of i-th interconnected system of inquiry
Time.
In order to solve above-mentioned technical problem, the embodiment of the present disclosure provides a kind of information query method, the method
Be applied to information inquiry program, system or device, as shown in figure 1, in step S101, receiving
To information request side information inquiring request when, by information inquiring request synchronized transmission to and information inquiring request
At least one associated interconnected system;
In step s 102, when the inquiry receiving one of at least one interconnected system interconnected system is tied
During fruit, the Query Result of an interconnected system is sent to information request side.
When receiving from the information inquiring request of information request side (as client), can be by this information
Inquiry request simultaneously and concurrently sends at least one interconnected system that may complete this information inquiring request, this
Sample, which interconnected system fast response time, first Query Result is obtained according to this information inquiring request, will rate
First return this Query Result, wherein, this information inquiring request includes various inquiries, for example:Service inquiry,
General data inquiry etc..
And work as certain the fastest system of response speed in this at least one interconnected system and get this inquiry knot
Fruit and after being returned it is possible to this Query Result is sent to information request side, and mean this inquiry
Terminate, and this inquiry take as Ttotal=min (T1, T2 ..., Tn), wherein, Ti is inquiry i-th
The elapsed time of individual interconnected system, namely the taking and looked into according to this information in n interconnected system of this inquiry
Asking requesting query to the time-consuming minimum system of Query Result, thus farthest saving query time, carrying
High query rate, it is to avoid consume excessive query time using Series poll mode of the prior art or keep away
Exempt from, when a system does not respond to this information inquiring request, just to send this information inquiring request to another
System, and waste the information inquiry time, certainly, this information query device can be arranged in client,
Can be arranged on outside client independent of client, and be located between client and at least one interconnected system,
It is connected with least one interconnected system with this client.
As shown in Fig. 2 in one embodiment, method also includes:
Step S201, when each interconnected system at least one interconnected system in preset time period is not all returned
Return Query Result or the Query Result of return is space-time, send information inquiring request inquiry to information request side
The information of failure.
When, in preset time period, each interconnected system at least one interconnected system does not all return this inquiry
The Query Result of result or return is space-time, illustrates that at least one interconnected system does not all inquire inquiry knot
Really, then the information of inquiry failure can be sent to information request side, so that information request side is no longer waiting for,
And adopt other modes to obtain Query Result, so that information request side can obtain Query Result as early as possible,
Wherein, preset time period Ttotal >=T1+T2+ ...+Tn, Ti are the consumptions of i-th interconnected system of inquiry
Use the time
In one embodiment, by information inquiring request synchronized transmission to being associated with information inquiring request
Before at least one interconnected system, method also includes:
At least one interconnected system is determined according to information inquiring request;By this information inquiring request synchronized transmission
To before at least one interconnected system, can according to the type of this information inquiring request, specifically inquiry content,
At least one interconnected system that the determination of the various information such as query time is associated most with this information inquiring request, with
Improve the probability obtaining Query Result.
Determine the accounts information of each interconnected system at least one interconnected system;And
Above-mentioned steps S101 can be performed as:
Information inquiring request is sent to each interconnected system by the accounts information of each interconnected system.
After the accounts information determining each interconnected system, this information inquiring request can be associated by each
The accounts information of system is sent to each interconnected system, to complete this inquiry in interconnected system.
As shown in figure 3, in one embodiment, method also includes:
Step S301, after sending the Query Result of an interconnected system to information request side, reception is derived from
The confirmation of information request side, and disconnect the connection with least one interconnected system.
The Query Result of the interconnected system that response speed is the fastest be sent to information request side (as client or
Person user) afterwards it can be determined that whether receiving confirmation;When receiving confirmation it may be determined that
Information request side have received this Query Result really, then information query device just can disconnect with this at least one
The connection of individual interconnected system, terminates this inquiry, so can avoid (as network delay) for some reason
And when making information request side also not receive Query Result, information query device is just associated with least one by mistake
System disconnects and wastes this Query Result, re-starts inquiry.
As shown in figure 4, the present invention also provides a kind of information query device, including:First sending module 401,
It is configured to, when receiving the information inquiring request of information request side, described information inquiry request synchronously be sent out
Deliver at least one interconnected system being associated with described information inquiry request;
Second sending module 402, is configured as receiving one of at least one interconnected system described pass
During the Query Result of contact system, the Query Result of one interconnected system is sent to described information request
Side.
As shown in figure 5, in one embodiment, described device also includes:
3rd sending module 501, is configured as at least one interconnected system described in preset time period
Each interconnected system all do not return described Query Result or the described Query Result of return is space-time, to institute
State information request side and send the information that described information inquiry request inquires about failure.
As shown in fig. 6, in one embodiment, described device also includes:First determining module 601, quilt
It is configured to extremely be associated at least described information inquiry request synchronized transmission with described information inquiry request
Before one interconnected system, at least one described interconnected system is determined according to described information inquiry request;
Second determining module 602, is configured to determine that each the described pass at least one described interconnected system
The accounts information of contact system;And
Described first sending module 401 includes:
Sending submodule 4011, is configured to for described information inquiry request to pass through each described interconnected system
Accounts information sends to interconnected system each described.
As shown in fig. 7, in one embodiment, described device also includes:
Receiver module 701, is configured to sending the Query Result of one interconnected system to described letter
After breath requesting party, receive the confirmation from described information requesting party;
Disconnect module 702, be configured to disconnect the connection with least one described interconnected system.
With regard to the device in above-described embodiment, wherein the concrete mode of unit execution operation is relevant
It has been described in detail in the embodiment of the method, explanation will be not set forth in detail herein.
Finally, the information query device in the present invention is fitted and is configured to terminal device.For example, it may be it is mobile
Phone, computer, digital broadcast terminal, messaging devices, game console, tablet device, medical treatment
Equipment, body-building equipment, personal digital assistant etc..
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment of software and hardware aspect.And, the present invention can adopt and wherein wrap one or more
Computer-usable storage medium containing computer usable program code (including but not limited to magnetic disc store and
Optical memory etc.) the upper computer program implemented form.
The present invention is to produce with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart of product and/or block diagram are describing.It should be understood that can by computer program instructions flowchart and
/ or block diagram in each flow process and/or the flow process in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions can be provided to all-purpose computer, special-purpose computer, embed
The processor of formula processor or other programmable data processing device is to produce a machine so that passing through to calculate
The instruction of the computing device of machine or other programmable data processing device produces for realizing in flow chart one
The device of the function of specifying in individual flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and computer or other programmable datas can be guided to process and set
So that being stored in this computer-readable memory in the standby computer-readable memory working in a specific way
Instruction produce and include the manufacture of command device, the realization of this command device is in one flow process or multiple of flow chart
The function of specifying in flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, makes
Obtain and series of operation steps is executed on computer or other programmable devices to produce computer implemented place
Reason, thus the instruction of execution is provided for realizing in flow chart one on computer or other programmable devices
The step of the function of specifying in flow process or multiple flow process and/or one square frame of block diagram or multiple square frame.
Obviously, those skilled in the art can carry out various changes and modification without deviating from this to the present invention
The spirit and scope of invention.So, if these modifications of the present invention and modification belong to the claims in the present invention
And its within the scope of equivalent technologies, then the present invention is also intended to comprise these changes and modification.
Claims (8)
1. a kind of information query method is it is characterised in that include:
When receiving the information inquiring request of information request side, by described information inquiry request synchronized transmission extremely
At least one interconnected system being associated with described information inquiry request;
When receiving the Query Result of one of at least one interconnected system described interconnected system, will be described
The Query Result of one interconnected system sends to described information requesting party.
2. method according to claim 1 is it is characterised in that methods described also includes:
When each interconnected system at least one interconnected system described in preset time period does not all return institute
State Query Result or the described Query Result of return is space-time, send described information to described information requesting party
Inquiry request inquires about the information of failure.
3. method according to claim 1 it is characterised in that
In be extremely associated described information inquiry request synchronized transmission with described information inquiry request at least one
Before individual interconnected system, methods described also includes:
At least one described interconnected system is determined according to described information inquiry request;
Determine the accounts information of each the described interconnected system at least one described interconnected system;And
Described information inquiry request synchronized transmission is at least one pass being associated with described information inquiry request
Contact system, including:
Described described information inquiry request is sent to each by the accounts information of interconnected system each described
Described interconnected system.
4. according to the method in any one of claims 1 to 3 it is characterised in that methods described also
Including:
After sending the Query Result of one interconnected system to described information requesting party, receive and be derived from institute
State the confirmation of information request side, and disconnect the connection with interconnected system at least one described.
5. a kind of information query device is it is characterised in that include:
First sending module, for when receiving the information inquiring request of information request side, by described information
Inquiry request synchronized transmission is at least one interconnected system being associated with described information inquiry request;
Second sending module, receives one of at least one interconnected system described interconnected system for working as
During Query Result, the Query Result of one interconnected system is sent to described information requesting party.
6. device according to claim 5 is it is characterised in that described device also includes:
3rd sending module, for when each pass at least one interconnected system described in preset time period
Contact system does not all return described Query Result or the described Query Result of return is space-time, please to described information
The side of asking sends the information that described information inquiry request inquires about failure.
7. device according to claim 5 it is characterised in that
First determining module, for asking described information inquiry request synchronized transmission to described information inquiry
Before seeking associated at least one interconnected system, determined described at least one according to described information inquiry request
Interconnected system;
Second determining module, for determining each described interconnected system at least one described interconnected system
Accounts information;And
Described first sending module includes:
Sending submodule, for passing through the accounts information of each described interconnected system by described information inquiry request
Send to interconnected system each described.
8. the device according to any one of claim 5 to 7 it is characterised in that described device also
Including:
Receiver module, for sending the Query Result of one interconnected system to described information requesting party
Afterwards, receive the confirmation from described information requesting party;
Disconnect module, for disconnecting the connection with least one described interconnected system.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510448481.7A CN106407194A (en) | 2015-07-27 | 2015-07-27 | Information querying method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510448481.7A CN106407194A (en) | 2015-07-27 | 2015-07-27 | Information querying method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106407194A true CN106407194A (en) | 2017-02-15 |
Family
ID=58009292
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510448481.7A Pending CN106407194A (en) | 2015-07-27 | 2015-07-27 | Information querying method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106407194A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909642A (en) * | 2017-02-20 | 2017-06-30 | 中国银行股份有限公司 | Database index method and system |
CN108595451A (en) * | 2017-12-04 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Service request processing method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103246746A (en) * | 2013-05-23 | 2013-08-14 | 百度在线网络技术(北京)有限公司 | Method, device and system for searching information |
CN103389985A (en) * | 2012-05-08 | 2013-11-13 | 百度在线网络技术(北京)有限公司 | Method and device for providing search result |
US20150074131A1 (en) * | 2013-09-09 | 2015-03-12 | Mobitv, Inc. | Leveraging social trends to identify relevant content |
CN104639957A (en) * | 2013-11-06 | 2015-05-20 | 株式会社Ntt都科摩 | Mobile multimedia terminal, video program recommendation method and server |
-
2015
- 2015-07-27 CN CN201510448481.7A patent/CN106407194A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103389985A (en) * | 2012-05-08 | 2013-11-13 | 百度在线网络技术(北京)有限公司 | Method and device for providing search result |
CN103246746A (en) * | 2013-05-23 | 2013-08-14 | 百度在线网络技术(北京)有限公司 | Method, device and system for searching information |
US20150074131A1 (en) * | 2013-09-09 | 2015-03-12 | Mobitv, Inc. | Leveraging social trends to identify relevant content |
CN104639957A (en) * | 2013-11-06 | 2015-05-20 | 株式会社Ntt都科摩 | Mobile multimedia terminal, video program recommendation method and server |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106909642A (en) * | 2017-02-20 | 2017-06-30 | 中国银行股份有限公司 | Database index method and system |
CN106909642B (en) * | 2017-02-20 | 2020-06-12 | 中国银行股份有限公司 | Database indexing method and system |
CN108595451A (en) * | 2017-12-04 | 2018-09-28 | 阿里巴巴集团控股有限公司 | Service request processing method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11876856B2 (en) | Method for computational-power sharing and related device | |
US9661558B2 (en) | Service constraint advertisement and discovery | |
CN105488837A (en) | Cloud computing based real-time off-screen rendering method, apparatus and system | |
WO2019205557A1 (en) | Resource subscription for internet of things device | |
WO2016023345A1 (en) | Gated upgrade method and apparatus | |
CN102185801A (en) | Information processing method in instant messaging and instant messaging tool | |
CN106533932A (en) | Method and device for pushing instant message | |
CN108650667A (en) | Terminal scheduling method and apparatus | |
US9602310B2 (en) | Associating system requests with SMS user responses | |
CN104462033A (en) | Method and device for realizing editing operation among devices | |
US10511569B2 (en) | Techniques for providing multi-modal multi-party calling | |
CN109392173A (en) | A kind of sending method of system information, acquisition methods and relevant device | |
CN110365931A (en) | The control method and device of multi-party call, electronic equipment, storage medium | |
CN104639546A (en) | Multi-biometric feature comprehensive authentication method, device and system | |
CN104601448A (en) | Method and device for handling virtual card | |
WO2019001073A1 (en) | Remote process calling method and apparatus, and computer device | |
CN106407194A (en) | Information querying method and device | |
US20150365133A1 (en) | Touch and Talk Auto-Configuring of Video Conferences Using Near Field Communication (NFC) | |
CN108234663B (en) | Method and device for acquiring data and computer equipment | |
WO2019119962A1 (en) | Information processing method, system, terminal, and computer readable storage medium | |
CN103428273B (en) | The method and apparatus of response inquiry is carried out in asynchronous system is mutual | |
CN105142118B (en) | The quick accidental access method of TD-LTE group system user | |
CN108322895B (en) | Message state query method, network device and gateway | |
CN113127546A (en) | Data processing method and device and electronic equipment | |
JP6218937B2 (en) | Service scheduling method, system, terminal, and storage medium based on clustering system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170215 |