CN109063037A - A kind of querying method, service equipment, terminal device and computer readable storage medium - Google Patents

A kind of querying method, service equipment, terminal device and computer readable storage medium Download PDF

Info

Publication number
CN109063037A
CN109063037A CN201810782526.8A CN201810782526A CN109063037A CN 109063037 A CN109063037 A CN 109063037A CN 201810782526 A CN201810782526 A CN 201810782526A CN 109063037 A CN109063037 A CN 109063037A
Authority
CN
China
Prior art keywords
equipment
query task
query
terminal
task
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.)
Withdrawn
Application number
CN201810782526.8A
Other languages
Chinese (zh)
Inventor
不公告发明人
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ye Shuting
Original Assignee
Ye Shuting
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 Ye Shuting filed Critical Ye Shuting
Priority to CN201810782526.8A priority Critical patent/CN109063037A/en
Publication of CN109063037A publication Critical patent/CN109063037A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5027Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals
    • G06F9/5038Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resource being a machine, e.g. CPUs, Servers, Terminals considering the execution order of a plurality of tasks, e.g. taking priority or time dependency constraints into consideration

Abstract

The present invention relates to a kind of querying method, service equipment, terminal device and computer readable storage mediums.The querying method includes: the inquiry request that receiving terminal apparatus is sent, and the inquiry request includes at least one query task;At least one described query task is reassigned to one or more first terminal equipment in the terminal device to inquire;The query result that the first terminal equipment returns is received, the query result carries out inquiry acquisition from the first terminal equipment to database server;The query result is sent to the second terminal equipment for generating corresponding query task.The method can be realized the balanced of Internet resources and utilize, and improve data-handling efficiency.

Description

A kind of querying method, service equipment, terminal device and computer readable storage medium
Technical field
The present invention relates to technical field of data processing, and in particular to a kind of querying method, service equipment, terminal device and Computer readable storage medium.
Background technique
Currently, multiple client is by sending inquiry request to server end, server end feeds back query result respectively To multiple client, it is few even in idle state that it is easy to appear some client query quantity in this way, and some clients Inquiry quantity the case where being more than the load that can be born, cause that the unbalanced of network resource usage is resulted even in and appointed The excessive client of business amount can not work normally.
Summary of the invention
The embodiment of the present invention provides a kind of querying method, service equipment, terminal device and computer readable storage medium, It can be realized the balanced of Internet resources to utilize, improve the treatment effeciency of data.
In a first aspect, the embodiment of the invention provides a kind of querying methods, comprising:
The inquiry request that receiving terminal apparatus is sent, the inquiry request includes at least one query task;
At least one described query task is reassigned to one or more first terminals in the terminal device to set It is standby to be inquired;
Receive the query result that the first terminal equipment returns, the query result is from the first terminal equipment to number Inquiry acquisition is carried out according to library server;
The query result is sent to the second terminal equipment for generating corresponding query task.
Second aspect, further embodiment of this invention provide a kind of querying method, comprising:
Inquiry request is sent to service equipment, the inquiry request includes at least one query task;
The query task that the service equipment is redistributed is received, according to the query task redistributed to the database Server is inquired, and the query result of database server feedback is obtained;
The query result that will acquire is sent to the service equipment.
The third aspect, the embodiment of the invention provides a kind of service equipments, including processor, input equipment, output equipment And memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing Computer program, the computer program include program instruction, and the processor is configured for calling described program instruction, are held Row is using the service equipment as the querying method of executing subject.
Fourth aspect, the embodiment of the invention provides a kind of terminal devices, including processor, input equipment, output equipment And memory, the processor, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing Computer program, the computer program include program instruction, and the processor is configured for calling described program instruction, are held Row is using the first terminal equipment as the querying method of executing subject.
5th aspect, the embodiment of the invention provides a kind of computer readable storage medium, the computer storage medium It is stored with computer program, the computer program includes program instruction, and described program instruction makes institute when being executed by a processor Processor is stated to execute using the service equipment as the querying method of executing subject.
A kind of computer readable storage medium, the computer storage medium are stored with computer program, the computer Program includes program instruction, and described program instruction sets the processor execution with the first terminal Standby is executing subject.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for the second terminal equipment of corresponding query task, when the query task of terminal device is more than workload, the clothes Query task can be transferred to other terminal devices by business equipment, realized and utilized to the equilibrium of resource, also avoid simultaneously The case where excessive terminal device of task amount can not work normally.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples.
Fig. 1 is that the embodiment of the invention provides a kind of schematic flow diagrams of querying method;
Fig. 2 is a kind of schematic flow diagram for querying method that further embodiment of this invention provides;
Fig. 3 is that the embodiment provides a kind of schematic block diagrams of inquiry system;
Fig. 4 is that the embodiment provides a kind of schematic block diagrams of service equipment;
Fig. 5 is that the embodiment provides a kind of schematic block diagrams of terminal device;
Fig. 6 provides a kind of schematic block diagram of terminal device for another embodiment of the present invention;
Fig. 7 provides a kind of schematic block diagram of service equipment for another embodiment of the present invention;
Fig. 8 provides a kind of schematic block diagram of terminal device for another embodiment of the present invention.
Specific embodiment
It is clear in order to be more clear the purpose of the present invention, technical solution and advantageous effects, below in conjunction with this hair Attached drawing in bright embodiment, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described Embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, this field Those of ordinary skill's every other embodiment obtained without making creative work, belongs to protection of the present invention Range.
It should be appreciated that ought use in this specification and in the appended claims, term " includes " and "comprising" instruction Described feature, entirety, step, operation, the presence of element and/or component, but one or more of the other feature, whole is not precluded Body, step, operation, the presence or addition of element, component and/or its set.
It is also understood that mesh of the term used in this description of the invention merely for the sake of description specific embodiment And be not intended to limit the present invention.As description of the invention and it is used in the attached claims, unless on Other situations are hereafter clearly indicated, otherwise " one " of singular, "one" and "the" are intended to include plural form.
It should be further appreciated that terminal device described in the embodiment of the present invention is including but not limited to such as with touch Mobile phone, laptop computer or the tablet computer etc of sensing surface (for example, touch-screen display and/or touch tablet) Other portable devices.It is to be further understood that terminal device may include such as physical keyboard, mouse and/or control-rod One or more of the other physical user-interface device.
It should be further appreciated that the service equipment described in the embodiment of the present invention is provides service for terminal device Special purpose computer, composition be basically similar to a microcomputer, have processor, hard disk, memory, system bus etc..It is in network operation Under the control of system, coupled hard disk, tape, printer, Modem and various special communication equipment are supplied on network Customer rs site it is shared, also centralized calculation can be provided for the network user, information is delivered and data management etc. services.
It should be further appreciated that service equipment, terminal device and number described in some embodiments of offer of the invention It can be physical equipment according to library server, be also possible to be set to device, unit or module in physical equipment, in addition, described Service equipment, terminal device and database server can be realized in unified physics equipment, can also set in different physics Standby middle realization.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, is also possible to two or more units and is integrated in one unit.It is above-mentioned integrated Unit both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can be personal computer, service equipment or the network equipment etc.) executes each embodiment the method for the present invention All or part of the steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey The medium of sequence code.
In addition, distinguishing for convenience, spy illustrates herein, in subsequent description, will receive what service equipment was redistributed The terminal device of query task is known as " first terminal equipment ", will be created on the query result pair inquired in database server The terminal device for the query task answered is known as " second terminal equipment ", by there are corresponding in the memory space for generating service equipment The terminal device of the query task of query result is known as " third terminal equipment ", and purpose is used for the purpose of functionally carrying out area Point, they can indicate the same terminal device, can also indicate that different terminal devices, the embodiment of the present invention do not do this It limits.
Attached drawing 1 is please referred to, Fig. 1 is that the embodiment of the invention provides a kind of schematic flow diagram of querying method, the inquiries Method includes:
Step S01: the inquiry request that service equipment receiving terminal apparatus is sent, the inquiry request includes that at least one is looked into Inquiry task;
Step S02: at least one described query task is reassigned in the terminal device by the service equipment One or more first terminal equipment are inquired;
Step S03: the service equipment receives the query result that the first terminal equipment returns, the query result by The first terminal equipment carries out inquiry acquisition to database server;
Step S04: the service equipment sets the terminal that the query result is sent to the corresponding query task of generation One or more second terminal equipment in standby.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for one or more second terminal equipment in the terminal device of corresponding query task, when the query task of terminal device When more than workload, query task can be transferred to other terminal devices by the service equipment, be realized to resource Equilibrium utilizes, while also avoiding the case where excessive terminal device of task amount can not work normally.
The specific technical solution of querying method provided in this embodiment is described in detail below.It is mentioned to this implementation Before the querying method of confession is specifically described, it is to be understood that attached terminal device shown in Fig. 2 can be realized according to it Function can at least be divided into first terminal equipment, the terminal of second terminal equipment and third terminal equipment these three types is set Standby, its purpose is to facilitate description, they may refer to same terminal device also and may refer to different terminal devices, but simultaneously The non-instruction terminal device includes first terminal equipment, second terminal equipment and third terminal equipment.
The querying method provided in this embodiment includes:
Step S01, the inquiry request that service equipment receiving terminal apparatus is sent, the inquiry request includes that at least one is looked into Inquiry task.
In the present embodiment, the terminal device obtains the inquiry letter that user inputs for the input area of the terminal device Breath, for example, number of patent application, express delivery odd numbers etc., the input area can be touch tablet, microphone etc..The terminal device Corresponding inquiry request is generated based on the query information, and the inquiry request is sent to corresponding service equipment.Wherein, The inquiry request not only includes the mark of at least one query task corresponding with the query information, further include have it is described The mark of terminal device.After the service equipment receives at least one described query task, by each query task and generate The terminal device of the query task establishes corresponding relationship.
Step S02: at least one described query task is reassigned in the terminal device by the service equipment One or more first terminal equipment are inquired.
In the present embodiment, the service equipment has a memory space, the memory space can be present in it is described Database or hard disk in service equipment, after the inquiry request that the service equipment receiving terminal apparatus is sent, the service Equipment can get query task inventory after parsing to the inquiry request.
Further, one or more at least one described query task is reassigned in the terminal device Before a first terminal equipment is inquired, the method also includes: it determines in memory space and appoints with the presence or absence of with the inquiry The query result that business matches generates corresponding query task if so, the corresponding query result of the query task is sent to One or more first terminal equipment in the terminal device.Specifically, obtaining the query task inventory in service equipment Afterwards, the service equipment can transfer the storing data in the memory space, and determine in memory space with the presence or absence of with it is described The query result that query task matches, if so, the corresponding query result of the query task is sent to the corresponding inquiry of generation Third terminal equipment in the terminal device of request, if it is not, the query task is added in task list to be allocated, the clothes Business equipment determines that the service equipment will be deposited with the presence or absence of the query result to match with the query task in memory space again It is that the query task in the task list to be allocated distributes to one in the terminal device according to preset allocation rule A or multiple first terminal equipment are inquired.
It is appreciated that can be further improved the place to query task by assigning store function to the service equipment The phenomenon that managing efficiency, reducing excess load promotes resource utilization.
It should be understood that the query task all received can be reassigned to the terminal by the service equipment One or more first terminal equipment in equipment are inquired, and the query task being partially received can also be reassigned to One or more first terminal equipment in the terminal device are inquired.
It should be further appreciated that the service equipment the same time can be received at least one described query task into Row is redistributed, and can also be divided again every the preset period by least one described query task is received in the period Match, the preset period can be 30 seconds, 1 minute, 10 minutes, 1 hour etc..
It should be further appreciated that in other embodiments, whether there is and the inquiry in determining the memory space Before the step of query result that task matches, the service equipment can also be identified according to query task to the institute received It states at least one query task and carries out duplicate removal processing, duplicate query task is deleted in the inquiry inventory, wherein institute State duplicate removal processing specifically: when there are it is identical two or more query task mark when, in the query task Only retain one of them in inventory.It is appreciated that can be further improved by the duplicate removal processing to the query task To the treatment effeciency of query task, the phenomenon that reducing excess load, resource utilization is promoted.
Further, in some embodiments of the invention, the preset allocation rule can be mean allocation rule, The mean allocation rule is specifically as follows: at least one described query task is averagely allocated to one or more of first Terminal device is inquired, if inquiry is appointed after the query task is averagely allocated to one or more of first terminal equipment Business has remaining remainder, then by remaining query task be randomly assigned to one of them or in which multiple first terminal equipment into Row inquiry.Certainly, in other embodiments, the preset allocation rule can also be allocation rule in turn, specifically, to every A first terminal equipment assigns a corresponding inquiry threshold value, carries out in a certain order to the first terminal equipment Arrangement, when the query task quantity arrival first terminal equipment that the first first terminal equipment is assigned to is corresponding When inquiring threshold value, such as there are also remaining unappropriated query tasks, then remaining unappropriated query task are distributed to second A first terminal equipment, when the query task quantity that the second first terminal equipment is assigned to reaches described first When the corresponding inquiry threshold value of terminal device, such as there are also remaining unappropriated query tasks, then by remaining unappropriated inquiry Task distributes to the third first terminal equipment, repeatedly, the query task in the task list to be allocated It is fully assigned to one of them or in which multiple first terminal equipment.
Step S03: the service equipment receives the query result that the first terminal equipment returns, the query result by The first terminal equipment carries out inquiry acquisition to database server.
Specifically, at least one described query task is reassigned to the first terminal equipment by the service equipment Afterwards, the first terminal equipment generates data inquiry request to the database server according to the query task being assigned to, The data inquiry request includes at least the mark of at least one query task and counterpart terminal equipment.The database service After device receives the data inquiry request, the query task is parsed, obtains look into corresponding with the query task Inquiry condition, and according to these querying conditions, it obtains query result and query result is returned into the first terminal equipment, In, each corresponding query result of the query task.It is appreciated that the various working as the corresponding inquiry of the first terminal equipment When task more than one, the database server successively can send query result to corresponding first terminal equipment respectively, The corresponding query result of multiple queries task can also be sent simultaneously within the preset period, this is not limited by the present invention.
Further, after the service equipment receives the query result that the first terminal equipment returns, the clothes The query result is also stored in the storage element by business equipment.It is appreciated that when the terminal device is again to described When service equipment transmission inquiry request includes identical query task, query result, nothing can be obtained in the memory space Need to redistribute again and it is subsequent no longer need to obtain query result using the database server, therefore reduce the number According to the operating pressure of library server, the expense of Internet resources has been saved.
Step S04: the query result is sent to by the service equipment generates the second terminal that task is asked in corresponding inquiry Equipment.
After the service equipment receives the query result that the first terminal equipment returns, the service equipment will be looked into It askes result and is sent to the second terminal equipment for generating corresponding query task.The service equipment according to the query result obtain with The address of the corresponding second terminal equipment of the query result, wherein the second terminal equipment is to generate inquiry knot The terminal device of the corresponding query task of fruit.
Attached drawing 2 is referred to, Fig. 2 is a kind of schematic flow diagram for querying method that further embodiment of this invention provides, described Querying method includes:
Step S11: the inquiry request that service equipment receiving terminal apparatus is sent, the inquiry request includes that at least one is looked into Inquiry task;
Step S12: at least one described query task is reassigned in the terminal device by the service equipment One or more first terminal equipment are inquired;
Step S13: the first terminal equipment receives the query task that the service equipment is redistributed, according to dividing again The query task matched is inquired to the database server, obtains the query result of database server feedback;
Step S14: the query result that the first terminal equipment will acquire is sent to the corresponding query task of the generation Second terminal equipment.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for the second terminal equipment of corresponding query task, when the query task of terminal device is more than workload, the clothes Query task can be transferred to other terminal devices by business equipment, realized and utilized to the equilibrium of resource, also avoid simultaneously The case where excessive terminal device of task amount can not work normally.
The specific technical solution of querying method provided by the above embodiment is described in detail below.
Step S11, the inquiry request that service equipment receiving terminal apparatus is sent, the inquiry request includes that at least one is looked into Inquiry task.
In the present embodiment, the terminal device obtains the inquiry letter that user inputs for the input area of the terminal device Breath, for example, number of patent application, express delivery odd numbers etc., the input area can be touch tablet, microphone etc..The terminal device Corresponding inquiry request is generated based on the query information, and the inquiry request is sent to corresponding service equipment.Wherein, The inquiry request not only includes the mark of at least one query task corresponding with the query information, further include have it is described The mark of terminal device.After the service equipment receives at least one described query task, by each query task and generate The terminal device of the query task establishes corresponding relationship.
Step S12: at least one described query task is reassigned in the terminal device by the service equipment One or more first terminal equipment are inquired.
In the present embodiment, the service equipment has a memory space, the memory space can be present in it is described Database or hard disk in service equipment, after the inquiry request that the service equipment receiving terminal apparatus is sent, the service Equipment obtains query task inventory after parsing to the inquiry request.
Further, one or more at least one described query task is reassigned in the terminal device Before a first terminal equipment is inquired, the method also includes: it determines in memory space and appoints with the presence or absence of with the inquiry The query result that business matches generates corresponding query task if so, the corresponding query result of the query task is sent to One or more first terminal equipment in the terminal device.Specifically, obtaining the query task inventory in service equipment Afterwards, the service equipment can transfer the storing data in the memory space, and determine in memory space with the presence or absence of with it is described The query result that query task matches, if so, the corresponding query result of the query task is sent to the corresponding inquiry of generation Third terminal equipment in the terminal device of request, if it is not, the query task is added in task list to be allocated, the clothes Business equipment determines that the service equipment will be deposited with the presence or absence of the query result to match with the query task in memory space again It is that the query task in the task list to be allocated distributes to one in the terminal device according to preset allocation rule A or multiple first terminal equipment are inquired.It is appreciated that by assigning store function to the service equipment, it can be into one The phenomenon that step improves the treatment effeciency to query task, reduces excess load, promotes resource utilization.
It should be understood that the query task all received can be reassigned to the terminal by the service equipment One or more first terminal equipment in equipment are inquired, and the query task being partially received can also be reassigned to One or more first terminal equipment in the terminal device are inquired.
It should also be appreciated that the service equipment the same time can be received at least one described query task into Row is redistributed, and can also be divided again every the preset period by least one described query task is received in the period Match, the preset period can be 30 seconds, 1 minute, 10 minutes, 1 hour etc..
It should also be appreciated that in other embodiments, whether there is and the inquiry in determining the memory space Before the step of query result that task matches, the service equipment can also be identified according to query task to the institute received It states at least one query task and carries out duplicate removal processing, duplicate query task is deleted in the inquiry inventory, wherein institute State duplicate removal processing specifically: when there are it is identical two or more query task mark when, in the query task Only retain one of them in inventory.It is appreciated that can be further improved by the duplicate removal processing to the query task To the treatment effeciency of query task, the phenomenon that reducing excess load, resource utilization is promoted.
Further, in some embodiments of the invention, the preset allocation rule can be mean allocation rule, The mean allocation rule is specifically as follows: at least one described query task is averagely allocated to one or more of first Terminal device is inquired, if inquiry is appointed after the query task is averagely allocated to one or more of first terminal equipment Business has remaining remainder, then by remaining query task be randomly assigned to one of them or in which multiple first terminal equipment into Row inquiry.Certainly, in other embodiments, the preset allocation rule can also be allocation rule in turn, specifically, to every A first terminal equipment assigns a corresponding inquiry threshold value, carries out in a certain order to the first terminal equipment Arrangement, when the query task quantity arrival first terminal equipment that the first first terminal equipment is assigned to is corresponding When inquiring threshold value, such as there are also remaining unappropriated query tasks, then remaining unappropriated query task are distributed to second A first terminal equipment, when the query task quantity that the second first terminal equipment is assigned to reaches described first When the corresponding inquiry threshold value of terminal device, such as there are also remaining unappropriated query tasks, then by remaining unappropriated inquiry Task distributes to the third first terminal equipment, repeatedly, the query task in the task list to be allocated It is fully assigned to one of them or in which multiple first terminal equipment.
Step S13: the first terminal equipment receives the query task that the service equipment is redistributed, according to dividing again The query task matched is inquired to the database server, obtains the query result of database server feedback.
Specifically, at least one described query task is reassigned to the first terminal equipment by the service equipment Afterwards, the first terminal equipment generates data inquiry request to the database server according to the query task being assigned to, The data inquiry request includes at least the mark of at least one query task and counterpart terminal equipment.The database service After device receives the data inquiry request, the query task is parsed, obtains look into corresponding with the query task Inquiry condition, and according to these querying conditions, it obtains query result and query result is returned into the first terminal equipment, In, each corresponding query result of the query task.It is appreciated that the various working as the corresponding inquiry of the first terminal equipment When task more than one, the database server successively can send query result to corresponding first terminal equipment respectively, The corresponding query result of multiple queries task can also be sent simultaneously within the preset period, this is not limited by the present invention.
Step S14: the query result that the first terminal equipment will acquire is sent to the corresponding query task of the generation The terminal device in second terminal equipment.
It should be appreciated that when the second terminal equipment of first terminal equipment query task corresponding with generation is same When equipment, the first terminal equipment does not send corresponding query result and gives the second terminal equipment.
In the present embodiment, when the service equipment is reassigned to one or more of described terminal device first At least one described query task that terminal device is inquired all carry generate the query task the second terminal set Standby address information, the first terminal equipment obtain the address information of the corresponding second terminal equipment of each query task, when When the first terminal equipment obtains query result from the database server, the first terminal equipment is according to each looking into The query result that the address of the corresponding second terminal equipment of inquiry task will acquire is sent to described generate and corresponds to query task Query result is sent to the second of the corresponding query task of generation with by the service terminal by second terminal equipment, the present embodiment The other embodiments of the mode of terminal device are compared, and the distribution work to query result is realized by the first terminal equipment Make, further reduce the operating pressure of the service terminal, while also further improving the processing effect to query task Rate.
Further, the query result that the first terminal equipment will acquire is sent to the service equipment, the clothes The query result received is stored in the memory space by business equipment, wherein the first terminal equipment will be described Query result is sent to the second terminal equipment or the service equipment and can be while sending and can also successively send, This is with no restrictions.It is appreciated that including identical look into when the terminal device sends inquiry request to the service equipment again When inquiry task, query result can be obtained in the memory space, without redistribute again and subsequent utilization described in Database server obtains query result, therefore reduces the operating pressure of the database server, has saved Internet resources Expense.
Please refer to attached drawing 3, attached drawing 3 be the embodiment provides a kind of schematic block diagram of inquiry system, it is described Inquiry system includes service equipment, multiple terminal devices and database server, wherein multiple terminal devices and the database Server and service equipment communication connection.Multiple terminal devices are used to send inquiry request to the service equipment, The inquiry request includes at least one query task, and the service equipment for dividing at least one described query task again One or more first terminal equipment in terminal device described in dispensing are inquired.First terminal in the terminal device is set It is ready for use on and receives the query task that the service equipment is redistributed, taken according to the query task redistributed to the database Business device is inquired, and obtains the query result of database server feedback.The first terminal equipment is also used to look into described It askes result and is sent to the service equipment, in the present embodiment, the service equipment is used to save the query result to certainly In body memory space and it is sent to the one or more second terminals generated in the terminal device for corresponding to query task Equipment.In other embodiments, connection can be in communication with each other between multiple terminal devices, the first terminal equipment receives After the query result, the query result is transmitted directly to generate one in the terminal device of corresponding inquiry request Or multiple second terminal equipment.Further, the query result can also be sent the service by the first terminal equipment Equipment, in itself memory space being stored in so as to the service equipment.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for one or more second terminal equipment in the terminal device of corresponding query task, when the query task of terminal device When more than workload, query task can be transferred to other terminal devices by the service equipment, be realized to resource Equilibrium utilizes, while also avoiding the case where excessive terminal device of task amount can not work normally.
Attached drawing 4 is please referred to, Fig. 4 is a kind of schematic block diagram of service equipment provided in an embodiment of the present invention.The present embodiment Service equipment include the first receiving unit, task allocation unit, the second receiving unit, the first result allocation unit, confirmation form Member, the second result allocation unit and storage unit.
First receiving unit is used for the inquiry request that receiving terminal apparatus is sent, and the inquiry request includes at least one A query task;
Task allocation unit, one for being reassigned at least one described query task in the terminal device Or multiple first terminal equipment are inquired.
Second receiving unit is used to receive the query result of first terminal equipment feedback, the query result by The first terminal equipment obtains in database server.
The first result allocation unit, which is used to for the query result being sent to, generates correspond to query task second eventually End equipment.
The confirmation unit is used to determine in memory space with the presence or absence of the query result to match with the query task.
Second result allocation unit is used to look into when first confirmation unit confirms to exist in the memory space with described When the query result that inquiry task matches, the corresponding query result of the query task is sent to and generates corresponding inquiry request Third terminal equipment.
Query result is stored in the memory space by the storage unit for constituting the memory space.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for the second terminal equipment of corresponding query task, when the query task of terminal device is more than workload, the clothes Query task can be transferred to other terminal devices by business equipment, realized and utilized to the equilibrium of resource, also avoid simultaneously The case where excessive terminal device of task amount can not work normally.
Attached drawing 5 is please referred to, Fig. 5 is a kind of schematic block diagram of terminal device provided in an embodiment of the present invention.It needs to illustrate , the terminal device in the present embodiment means first terminal equipment described in above-described embodiment, including the first request unit, Third receiving unit, query unit and the first transmission unit.
First request unit is used to send inquiry request to service equipment, and the inquiry request includes that at least one is looked into Inquiry task;
The third receiving unit is for receiving the query task that the service equipment is redistributed.
The query unit is used to be inquired according to the query task redistributed to the database server, obtains The query result of database server feedback.
The query result that first transmission unit will acquire is sent to the service equipment.
It is appreciated that at least one described query task is reassigned to the end by the service equipment by the present invention One or more first terminal equipment in end equipment are inquired, and then query result is sent to life again by the service equipment At the method for the second terminal equipment of corresponding query task, when the query task of terminal device is more than workload, the clothes Query task can be transferred to other terminal devices by business equipment, realized and utilized to the equilibrium of resource, also avoid simultaneously The case where excessive terminal device of task amount can not work normally.
Attached drawing 6 is please referred to, Fig. 6 is a kind of schematic block diagram for terminal device that further embodiment of this invention provides.It needs Illustrate, the terminal device in the present embodiment means first terminal equipment described in above-described embodiment, including the first request Unit, third receiving unit, query unit, the first transmission unit and the second transmission unit.
First request unit is used to send inquiry request to service equipment, and the inquiry request includes that at least one is looked into Inquiry task;
The third receiving unit is for receiving the query task that the service equipment is redistributed.
The query unit is used to be inquired according to the query task redistributed to the database server, obtains The query result of database server feedback.
The query result that first transmission unit will acquire is sent to the service equipment.
Second transmission unit is used to for the query result that the query unit is got to be sent to the generation and correspond to The second terminal equipment of query task.
It is appreciated that the second terminal that query result is sent to the corresponding query task of generation is set by the service terminal Standby mode, make it is subsequent no longer need to be allocated query result by the service terminal, greatly reduce described The operating pressure of service terminal, while also further improving the treatment effeciency to query task.
Attached drawing 7 is please referred to, Fig. 7 is a kind of schematic block diagram for service equipment that further embodiment of this invention provides.It is described Service equipment includes processor, input equipment, output equipment and memory, the processor, input equipment, output equipment and is deposited Reservoir is connected with each other, wherein the memory is for storing computer program, and the computer program includes program instruction, institute It states processor to be configured for calling described program instruction, execute in the embodiment of the present invention using the service equipment as executing subject Each method.
Attached drawing 8 is please referred to, Fig. 8 is a kind of schematic block diagram for terminal device that further embodiment of this invention provides.It is a kind of Terminal device, the terminal device include processor, input equipment, output equipment and memory, and the processor, input are set Standby, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the computer program Including program instruction, the processor is configured for calling described program instruction, executes in the embodiment of the present invention with described the One terminal device is each method of executing subject.
The embodiment of the invention provides a kind of computer readable storage medium, the computer storage medium is stored with calculating Machine program, the computer program include program instruction, and described program instruction when being executed by a processor holds the processor Row is using the service equipment as each method of executing subject.
Another embodiment of the present invention provides a kind of computer readable storage medium, the computer storage medium is stored with Computer program, the computer program include program instruction, and described program instruction makes the processing when being executed by a processor Device is executed using the first terminal equipment as each method of executing subject.
The computer readable storage medium can be the internal storage unit of terminal described in aforementioned any embodiment, example Such as the hard disk or memory of terminal.The computer readable storage medium is also possible to the External memory equipment of the terminal, such as The plug-in type hard disk being equipped in the terminal, intelligent memory card (SmartMedia Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, the computer readable storage medium can also be wrapped both The internal storage unit for including the terminal also includes External memory equipment.The computer readable storage medium is described for storing Other programs and data needed for computer program and the terminal.The computer readable storage medium can be also used for temporarily Ground stores the data that has exported or will export.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure Member and algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware With the interchangeability of software, each exemplary composition and step are generally described according to function in the above description.This A little functions are implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Specially Industry technical staff can use different methods to achieve the described function each specific application, but this realization is not It is considered as beyond the scope of this invention.
It is apparent to those skilled in the art that for convenience of description and succinctly, the end of foregoing description The specific work process of end equipment, service equipment and unit and/module, can be with reference to corresponding in preceding method embodiment Journey, details are not described herein.
In each embodiment provided herein, it should be understood that disclosed terminal device, service equipment and look into System and method is ask, may be implemented in other ways.For example, Installation practice described above is only schematic , for example, the division of the unit, only a kind of logical function partition, there may be another division manner in actual implementation, Such as multiple units or components can be combined or can be integrated into another system, or some features can be ignored, or not hold Row.In addition, shown or discussed mutual coupling, direct-coupling or communication connection can be through some interfaces, dress It sets or the indirect coupling or communication connection of unit, is also possible to electricity, mechanical or other forms connections.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all in essence of the invention Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the present invention.

Claims (10)

1. a kind of querying method, which is characterized in that the described method includes:
The inquiry request that receiving terminal apparatus is sent, the inquiry request includes at least one query task;
By at least one described query task be reassigned to one or more first terminal equipment in the terminal device into Row inquiry;
Receive the query result that the first terminal equipment returns, the query result is from the first terminal equipment to database Server carries out inquiry acquisition;
The one or more first terminals query result being sent in the terminal device for generating corresponding query task Equipment.
2. the method according to claim 1, wherein described be reassigned at least one described query task Before one or more first terminal equipment in the terminal device are inquired, further includes:
It determines with the presence or absence of the query result to match with the query task in memory space, if so, by the query task Corresponding query result is sent to one or more first terminal equipment in the terminal device for generating corresponding query task.
3. according to the method described in claim 2, it is characterized in that, described be reassigned at least one described query task One or more first terminal equipment in the terminal device carry out inquiry and specifically include:
At least one described query task is averagely allocated to one or more of first terminal equipment to inquire, if by institute Stating query task after query task is averagely allocated to one or more of first terminal equipment has remaining remainder, then will be remaining Query task be randomly assigned to one of them or in which multiple first terminal equipment are inquired.
4. the method according to claim 1, wherein the inquiry knot for receiving the first terminal equipment and returning After fruit further include:
The query result received is stored in the memory space.
5. a kind of querying method, which is characterized in that the described method includes:
Inquiry request is sent to service equipment, the inquiry request includes at least one query task;
The query task that the service equipment is redistributed is received, according to the query task redistributed to the database service Device is inquired, and the query result of database server feedback is obtained;
The query result that will acquire is sent to the service equipment.
6. according to the method described in claim 5, it is characterized in that, the query result that will acquire is sent to the service Equipment further include:
The query result that will acquire is sent to the second terminal equipment for generating corresponding query task.
7. a kind of service equipment, which is characterized in that including processor, input equipment, output equipment and memory, the processing Device, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the meter Calculation machine program includes program instruction, and the processor is configured for calling described program instruction, executes claim 1-4 such as and appoints Method described in one.
8. a kind of terminal device, which is characterized in that including processor, input equipment, output equipment and memory, the processing Device, input equipment, output equipment and memory are connected with each other, wherein the memory is for storing computer program, the meter Calculation machine program includes program instruction, and the processor is configured for calling described program instruction, executes claim 5-6 such as and appoints Method described in one.
9. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, institute Stating computer program includes program instruction, and described program instruction makes the processor execute such as right 1 when being executed by a processor To 4 described in any item methods.
10. a kind of computer readable storage medium, which is characterized in that the computer storage medium is stored with computer program, The computer program includes program instruction, and described program instruction makes the processor execute such as right when being executed by a processor It is required that the described in any item methods of 5-6.
CN201810782526.8A 2018-07-17 2018-07-17 A kind of querying method, service equipment, terminal device and computer readable storage medium Withdrawn CN109063037A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810782526.8A CN109063037A (en) 2018-07-17 2018-07-17 A kind of querying method, service equipment, terminal device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810782526.8A CN109063037A (en) 2018-07-17 2018-07-17 A kind of querying method, service equipment, terminal device and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN109063037A true CN109063037A (en) 2018-12-21

Family

ID=64816889

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810782526.8A Withdrawn CN109063037A (en) 2018-07-17 2018-07-17 A kind of querying method, service equipment, terminal device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109063037A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754206A (en) * 2018-12-25 2019-05-14 湖南润安危物联科技发展有限公司 Querying method, device and the computer readable storage medium of dangerous cargo
CN111581237A (en) * 2019-02-15 2020-08-25 阿里巴巴集团控股有限公司 Data query method, device and system and electronic equipment
CN112818007A (en) * 2021-02-03 2021-05-18 中科驭数(北京)科技有限公司 Data processing method and device and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009642A (en) * 2006-12-31 2007-08-01 华为技术有限公司 A resource allocation method and device based on the task packet
CN101299211A (en) * 2007-04-30 2008-11-05 王霞 Distributed enquiring method of wireless radio frequency recognition data
CN102081625A (en) * 2009-11-30 2011-06-01 中国移动通信集团北京有限公司 Data query method and query server
CN102209051A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN103631914A (en) * 2013-11-30 2014-03-12 广东顺德中山大学卡内基梅隆大学国际联合研究院 Offline browsing method and system of massive internet content
CN107544849A (en) * 2017-09-30 2018-01-05 北京天元创新科技有限公司 A kind of WEB server concurrency management method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101009642A (en) * 2006-12-31 2007-08-01 华为技术有限公司 A resource allocation method and device based on the task packet
CN101299211A (en) * 2007-04-30 2008-11-05 王霞 Distributed enquiring method of wireless radio frequency recognition data
CN102081625A (en) * 2009-11-30 2011-06-01 中国移动通信集团北京有限公司 Data query method and query server
CN102209051A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing user information sharing
CN103631914A (en) * 2013-11-30 2014-03-12 广东顺德中山大学卡内基梅隆大学国际联合研究院 Offline browsing method and system of massive internet content
CN107544849A (en) * 2017-09-30 2018-01-05 北京天元创新科技有限公司 A kind of WEB server concurrency management method and system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109754206A (en) * 2018-12-25 2019-05-14 湖南润安危物联科技发展有限公司 Querying method, device and the computer readable storage medium of dangerous cargo
CN111581237A (en) * 2019-02-15 2020-08-25 阿里巴巴集团控股有限公司 Data query method, device and system and electronic equipment
CN111581237B (en) * 2019-02-15 2023-06-09 阿里巴巴集团控股有限公司 Data query method, device and system and electronic equipment
CN112818007A (en) * 2021-02-03 2021-05-18 中科驭数(北京)科技有限公司 Data processing method and device and readable storage medium

Similar Documents

Publication Publication Date Title
WO2020177533A1 (en) Electronic invoice identifier allocation method, and electronic ticket generating method, device and system
CN112165691B (en) Content delivery network scheduling method, device, server and medium
CN108182111A (en) Task scheduling system, method and apparatus
CN112667414A (en) Message queue-based message consumption method and device, computer equipment and medium
CN109063037A (en) A kind of querying method, service equipment, terminal device and computer readable storage medium
CN110162388A (en) A kind of method for scheduling task, system and terminal device
CN114051055B (en) Data transmission method and device in different systems
CN108897854A (en) A kind of monitoring method and device of overtime task
CN107682391B (en) Electronic device, server allocation control method, and computer-readable storage medium
CN109800083A (en) A kind of method, apparatus, system and storage medium that micro services collaboration is called
CN109450987A (en) Number generation method, apparatus and system and storage medium
CN111427551A (en) User code operation method of programming platform, equipment and storage medium
WO2022206430A1 (en) Method and apparatus for processing bill data by using off-chain trusted device
CN108900607A (en) A kind of processing method, device and the server of SMB agreement request
CN111857861A (en) Jenkins task management method, system, terminal and storage medium
CN103455481B (en) Digital code generates system and method
CN110489224A (en) A kind of method and apparatus of task schedule
CN109327555A (en) Distributed hair system, method and device
CN110389976A (en) A kind of dispatching method and device of multi-interface data
CN107705179A (en) Order management method and device
CN112990991A (en) Method and device for merging invoices
CN109241401A (en) State information searching method, client, server and computer-readable medium
CN108874666A (en) Automatic generation of test data, device, computer equipment and storage medium
CN110795237B (en) Resource processing method, device, electronic equipment and medium
CN110807058B (en) Method and system for exporting data

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20181221

WW01 Invention patent application withdrawn after publication