CN109063140A - A kind of data query method, transfer server and computer readable storage medium - Google Patents

A kind of data query method, transfer server and computer readable storage medium Download PDF

Info

Publication number
CN109063140A
CN109063140A CN201810879759.XA CN201810879759A CN109063140A CN 109063140 A CN109063140 A CN 109063140A CN 201810879759 A CN201810879759 A CN 201810879759A CN 109063140 A CN109063140 A CN 109063140A
Authority
CN
China
Prior art keywords
client
query
inquiry
inquiry request
polling routine
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
Application number
CN201810879759.XA
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.)
Fujian Mailiao Automation Equipment Co Ltd
Original Assignee
Fujian Mailiao Automation Equipment Co Ltd
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 Fujian Mailiao Automation Equipment Co Ltd filed Critical Fujian Mailiao Automation Equipment Co Ltd
Priority to CN201810879759.XA priority Critical patent/CN109063140A/en
Publication of CN109063140A publication Critical patent/CN109063140A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of data query methods, comprising: the load quantity of first client is determined according to the inquiry the upper limit of the number of the first client;At least one first client receives query task inventory, and is inquired the first inquiry request in query task inventory in load quantity to obtain the first query result, and the first obtained query result is sent to a transfer server and is cached;First client sends polling routine and at least one second client is given to be inquired, and polling routine includes the second inquiry request outside load quantity;After polling routine is clicked, the second client receives the second inquiry request and is inquired to obtain the second query result, and the second obtained query result is fed back to first client, while being sent to transfer server and being cached.Which also discloses a kind of transfer servers and a kind of computer readable storage medium.It can make to be inquired more than the second inquiry request outside load quantity.

Description

A kind of data query method, transfer server and computer readable storage medium
Technical field
The present invention relates to technical field of information management more particularly to a kind of data query methods, server and client.
Background technique
Currently, generally having multiple client in carrying out information query process and being inquired by being sent to query service device Query result is fed back to multiple client by request, query service device respectively again, and it is easy to appear some client queries in this way Quantity is few even in idle state, and the inquiry quantity of some clients has been more than inquiry the upper limit of the number, or even can not be normal Work, thus causes to the unbalanced of network resource usage.
Summary of the invention
For overcome the deficiencies in the prior art, one of the objects of the present invention is to provide one kind, the present invention provides a kind of energy Enough realize data query method, transfer server and computer readable storage medium that the equilibrium of Internet resources utilizes.
An object of the present invention is implemented with the following technical solutions:
A kind of data query method characterized by comprising
The load quantity of first client is determined according to the inquiry the upper limit of the number of the first client;
At least one described first client receives query task inventory, and in the query task inventory in the volume The first inquiry request in fixed number amount is inquired to obtain the first query result, and the first obtained query result is sent to one A transfer server is cached;
First client sends polling routine and at least one second client is given to be inquired, the polling routine packet Include the second inquiry request outside load quantity;
After the polling routine is clicked, second client receives the second inquiry request and is inquired to obtain second Query result, and the second obtained query result is fed back to first client, while being sent to the transfer server It is cached.
Further, the polling routine further includes inquiry instruction and feedback command, when the polling routine is clicked, Start the inquiry instruction and inquire the second inquiry request outside the load quantity, and by the feedback process described the Two query results feed back to first client.
Further, the polling routine further includes the instruction that gives bonus, described rubescent when the polling routine is clicked Packet instruction generates electronics red packet to second client.
Further, first client sends polling routine to second client by social software.
Further, the acquisition methods of the query task inventory are as follows: the acquisition methods of the query task inventory are as follows: institute State that transfer server obtains that first client sends comprising first inquiry request and second inquiry request Remove duplicate query task after query task, regenerates the query task inventory.
Further, first client is inquired to obtain first query result by query service device, Second client is inquired to obtain first query result by the query service device.
The second object of the present invention is implemented with the following technical solutions:
A kind of transfer server comprising processor and memory interconnected, the memory are calculated for storing Machine program, the computer program include program instruction, and the processor executes above-mentioned number for calling described program to instruct According to querying method.
Further, the processor includes receiving module, cache module, deduplication module and transmission mould interconnected Block;The receiving module receives first inquiry request, second inquiry request, first query result and described Second query result;The cache module looks into received first inquiry request, second inquiry request, described first It askes result and second query result is cached;The deduplication module looks into first inquiry request and described second It askes duplicate query task in request and carries out duplicate removal;The sending module sends the query task inventory to described at least one First client.
The third object of the present invention is implemented with the following technical solutions:
A kind of computer readable storage medium, the computer-readable recording medium storage computer program, the calculating Machine program includes program instruction, and described program instruction makes the processor execute above-mentioned data query when being executed by a processor Method.
Compared with prior art, the beneficial effects of the present invention are:
For notebook data querying method after the inquiry the upper limit of the number of first client, first client sends inquiry Program gives at least one second client to be inquired, and the polling routine includes the second inquiry request outside load quantity, Thus the second inquiry request in larger query task inventory can be given second client to be inquired, and can make to surpass The second inquiry request crossed outside load quantity is inquired, while second client will not be in idle condition.
Detailed description of the invention
Fig. 1 is the functional flow diagram of data query method of the present invention;
Fig. 2 is the flow chart of data query method of the present invention;
Fig. 3 is the structural schematic diagram of the polling routine of data query method of the present invention;
Fig. 4 is the structural schematic diagram of transfer server of the present invention;
Fig. 5 is the structural schematic diagram of the processor of transfer server of the present invention;
Fig. 6 is the structural schematic diagram of computer readable storage medium of the present invention.
Specific embodiment
In the following, being described further in conjunction with attached drawing and specific embodiment to the present invention:
As shown in Figs. 1-2, a kind of data query method disclosed by the invention, comprising the following steps:
S1, the load quantity that first client 100 is determined according to the inquiry the upper limit of the number of the first client 100;
S2, at least one described first client 100 receive query task inventory, and in the query task inventory The first inquiry request in the load quantity is inquired to obtain the first query result, and the first obtained query result is sent out A transfer server 300 is given to be cached;
S3, first client 100 send polling routine 110 and at least one second client 400 are given to be inquired, institute Stating polling routine 110 includes the second inquiry request 111 outside load quantity;
S4, after the polling routine 110 is clicked, second client 400 receives the second inquiry request 111 and carries out Inquiry obtains the second query result, and the second obtained query result is fed back to first client 100, is sent to simultaneously The transfer server 300 is cached.
In the above-described embodiment, notebook data querying method is after the inquiry the upper limit of the number of first client 100, institute It states the first client 100 transmission polling routine 110 to be inquired at least one second client 400, the polling routine 110 It, thus can be the second inquiry request in larger query task inventory including the second inquiry request 111 outside load quantity 111, which give second client 400, is inquired, and can make to be looked into more than the second inquiry request 111 outside load quantity It askes, while second client 400 will not be in idle condition.Wherein, load quantity is generally the first client 100 and exists Inquiry the upper limit of the number in certain time;The query task inventory includes that first inquiry request and second inquiry are asked Ask 111;First client 100 can pass through wired or wireless carry out communication connection with second client 400;Wherein, The transfer server 300 can cache first query result and second query result according to preset time; If there is multiple first clients 100 receive first inquiry in the query task inventory in load quantity It requests, first inquiry request in query task inventory described in the optimal mean allocation of each first client 100;Institute Stating the first inquiry request and second inquiry request 111 includes the query task for inquiring data.
Preferably, as shown in figure 3, the polling routine 110 further includes inquiry instruction 112 and feedback command 113, when described When polling routine 110 is clicked, starts the inquiry instruction 112 and inquires the second inquiry request 111 outside the load quantity, And second query result is fed back to by the feedback process by first client 100.
It should be understood that polling routine 110 is similar to a kind of " link " containing inquiry instruction 112, when polling routine 110 is by the After the user of two clients 400 clicks, query service device 200 or net can be arrived according to second inquiry request 111 " switching " Corresponding with second inquiry request 111 second query result is inquired in standing, finally by feedback command 113 described the Two query results return to first client 100.
Preferably, in order to encourage the user of the second client 400 to click the polling routine 110, the polling routine 110 It further include the instruction that gives bonus, when the polling routine 110 is clicked, the instruction that gives bonus generates electronics red packet to described the Two clients 400.Wherein, which may include digital coin, discount coupon and deduction certificate etc., such as wechat red packet; The electronics red packet can be arranged in giving bonus in the polling routine 110 instruct by the first client 100, when the electronics red packet After being clicked by the user of second client 400, which will be shown in second client 400.
It preferably, is computer to promote the use of the first client 100 and second client 400 described in this method Or mobile phone, it is possible to understand that, first client 100 and second client 400 can also be on mobile phones or computer Corresponding software.
Preferably, for the ease of sending the polling routine 110, first client 100 is sent by social software Polling routine 110 gives second client 400.Wherein social software includes wechat, QQ (Tencent's instant message applications) and footpath between fields Footpath between fields etc..
Preferably, it is inquired to reduce repetition, the acquisition methods of the query task inventory are as follows: the transfer server 300 obtain the inquiry comprising first inquiry request and second inquiry request 111 that first client 100 is sent Remove duplicate query task after task, regenerates the query task inventory.This method can be reduced repetition inquiry, give inquiry clothes Business device 200 or query web reduce burden, also simplify the query task inventory.
Preferably, in order to preferably inquire data result, first client 100 is carried out by query service device 200 Inquiry obtains first query result, and second client 400 is inquired to obtain by the query service device 200 First query result.
For a better understanding of the present invention, it now enumerates following using implementation method of the invention:
First with the computer or mobile phone of first company for the first client 100, the server of the said firm is transfer server 300, The computer or mobile phone of the company B cooperated with first company are the second client 400;Xian Jia company needs to inquire query service device 200 It is interior to disclose legal data information, in order to reduce the pressure of query service device 200, the client of data information to be inquired is arranged Inquire load quantity.
Xian Jia company wants to be gone to inquire the data information with method of the invention, inquiry proostracum company server can be to first The query task of every computer of company or mobile phones enquiring carries out duplicate removal to mitigate inquiry pressure, and generates query task inventory, then The every computer or mobile phone (the first client 100) for query task inventory being issued first company, when every computer of first company or hand Load quantity is still greater than in the data information quantity in machine inquiry query service device 200, at this point, first company can be by chatting Its software sends the polling routine 110 containing the second inquiry request 111 outside load quantity and carries out assistance inquiry to company B, The transfer server 300 of first company caches the status information inquired simultaneously.Due to the computer or mobile phone (of company B Two clients 400) with the difference of first company, the load quantity of inquiry is not also used, as long as company B clicks described look into Program 110 is ask, company B can continue through the unfinished inquiry of the inquiry of the inquiry request outside load quantity first company and appoint Business, first company can also be given bonus by the polling routine 110 to company B in the middle, it is possible to understand that, first company and company B It also may include multiple subsidiaries.
It is to be appreciated that notebook data querying method can also apply to the inquiry of other systems data.
As shown in figure 4, the invention also discloses a kind of transfer servers 310 comprising 320 He of processor interconnected Memory 330, for the memory 330 for storing computer program, the computer program includes program instruction 331, described Processor 320 executes above-mentioned data query method for calling described program to instruct 331.The transfer server 310 is available Notebook data querying method inquires the data outside load quantity within a certain period of time.
Wherein, as shown in figure 5, the processor 320 includes receiving module 321 interconnected, cache module 322, goes Molality block 323 and sending module 324.The processor 320 can be received by the receiving module 321 first inquiry request, Second inquiry request 111, first query result and second query result;The cache module 322 can be right First inquiry request, second inquiry request 111, first query result and second query result carry out It caches and generates data cached;The processor 320 can remove first inquiry request and described by the deduplication module 323 Duplicate query task in second inquiry request 111.
The processor 320 also can confirm that whether be included in the query task inventory it is described it is data cached in have inquiry As a result the first inquiry request;If so, passing through institute from the data cached middle query result for obtaining first inquiry request It states sending module 324 and is sent to the first client 100 that need to inquire first inquiry request.In addition, the processor 320 The query task inventory can be sent to the first client 100 described at least one by the sending module 324.
As shown in fig. 6, the invention also discloses a kind of computer readable storage medium 500, the computer-readable storage Medium 500 stores computer program 520, and the computer program 520 includes program instruction 521, and quilt is worked as in described program instruction 521 Processor 320 makes the processor 320 execute above-mentioned data query method when executing.The computer readable storage medium 500 Inquire the data outside load quantity within a certain period of time using notebook data querying method.
The second inquiry request 111 outside load quantity is sent to second client by summary, notebook data querying method End 400 is inquired, and is avoided the puzzlement that can not continue inquiry because of limiting for query service device 200, is also increased indirectly The quantity of inquiring client terminal, enables query task timely to complete, and has also reasonably used Internet resources.
The basic principles, main features and advantages of the invention have been shown and described above.The technical staff of the industry should Understand, the present invention is not limited to the above embodiments, and only illustrating for the description in above embodiments and description is of the invention Principle, without departing from the spirit and scope of the present invention, various changes and improvements may be made to the invention, these change and change Into all fall within the protetion scope of the claimed invention.The claimed scope of the invention is by appended claims and its equivalent It defines.

Claims (10)

1. a kind of data query method characterized by comprising
The load quantity of first client is determined according to the inquiry the upper limit of the number of the first client;
At least one described first client receives query task inventory, and in the query task inventory in the nominal number The first inquiry request in amount is inquired to obtain the first query result, and the first obtained query result is sent in one Turn server to be cached;
First client sends polling routine and at least one second client is given to be inquired, and the polling routine is included in The second inquiry request outside load quantity;
After the polling routine is clicked, second client receives the second inquiry request and is inquired to obtain the second inquiry As a result, and the second obtained query result is fed back to first client, while being sent to the transfer server and carrying out Caching.
2. data query method according to claim 1, it is characterised in that: the polling routine further includes inquiry instruction and anti- Feedback instruction starts second inquiry of the inquiry instruction inquiry outside the load quantity when the polling routine is clicked Request, and second query result is fed back to by the feedback process by first client.
3. data query method according to claim 2, it is characterised in that: the polling routine further includes the instruction that gives bonus, When the polling routine is clicked, the instruction that gives bonus generates electronics red packet to second client.
4. data query method according to claim 1, it is characterised in that: first client is sent by social software Polling routine gives second client.
5. data query method according to claim 1, which is characterized in that the acquisition methods of the query task inventory are as follows: What the transfer server obtained the first client transmission includes first inquiry request and second inquiry request Query task after remove duplicate query task, regenerate the query task inventory.
6. data query method according to claim 1, it is characterised in that: first client and second client It is computer or mobile phone.
7. data query method according to claim 1, it is characterised in that: first client by query service device into Row inquiry obtains first query result, and second client is inquired to obtain described by the query service device The first query result.
8. a kind of transfer server, it is characterised in that: it includes processor and memory interconnected, and the memory is used for Computer program is stored, the computer program includes program instruction, and the processor is executed for calling described program to instruct Data query method as described in claim 1-7.
9. transfer server according to claim 8, it is characterised in that: the processor includes reception mould interconnected Block, cache module, deduplication module and sending module;The receiving module receives first inquiry request, second inquiry Request, first query result and second query result;The cache module asks received first inquiry It asks, second inquiry request, first query result and second query result are cached;The deduplication module Duplicate removal is carried out to query task duplicate in first inquiry request and second inquiry request;The sending module is sent The query task inventory gives at least one described first client.
10. a kind of computer readable storage medium, it is characterised in that: the computer-readable recording medium storage computer journey Sequence, the computer program include program instruction, and described program instruction executes the processor such as The described in any item data query methods of claim 1-7.
CN201810879759.XA 2018-08-03 2018-08-03 A kind of data query method, transfer server and computer readable storage medium Pending CN109063140A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810879759.XA CN109063140A (en) 2018-08-03 2018-08-03 A kind of data query method, transfer server and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810879759.XA CN109063140A (en) 2018-08-03 2018-08-03 A kind of data query method, transfer server and computer readable storage medium

Publications (1)

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

Family

ID=64833164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810879759.XA Pending CN109063140A (en) 2018-08-03 2018-08-03 A kind of data query method, transfer server and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109063140A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656959A (en) * 2018-12-24 2019-04-19 拉扎斯网络科技(上海)有限公司 A kind of data query method, apparatus, electronic equipment and storage medium
CN109951351A (en) * 2019-01-15 2019-06-28 兴业证券股份有限公司 Network test method and system based on market
CN111046061A (en) * 2019-12-13 2020-04-21 医渡云(北京)技术有限公司 Data query method, device, system, equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209047A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing
CN102904937A (en) * 2012-09-25 2013-01-30 百度在线网络技术(北京)有限公司 Method and system for mobile terminal to access webpage, browser and transfer server
CN103248684A (en) * 2013-04-28 2013-08-14 北京奇虎科技有限公司 Resource acquiring method and device on Internet
CN103631914A (en) * 2013-11-30 2014-03-12 广东顺德中山大学卡内基梅隆大学国际联合研究院 Offline browsing method and system of massive internet content
CN104144387A (en) * 2013-05-08 2014-11-12 董礼貌 Instant messaging device, method and system based on email boxes
CN105391969A (en) * 2015-12-14 2016-03-09 广东亿迅科技有限公司 Distributed video conference system and terminal conference participating method
CN106254462A (en) * 2016-08-05 2016-12-21 北京奇虎科技有限公司 Method, server and the system of a kind of remote assistance realizing mobile terminal
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN106485434A (en) * 2015-08-25 2017-03-08 上海玑智自动化科技有限公司 The dispatching method of automatic conveying device and system
WO2017064612A1 (en) * 2015-10-11 2017-04-20 Noggle Ag System and method for searching files across a plurality of clients
CN106888135A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 The querying method and device of a kind of task status
CN107274210A (en) * 2017-04-21 2017-10-20 杨克宁 A kind of advertisement management method, storage medium, server and system
CN107547670A (en) * 2016-06-28 2018-01-05 阿里巴巴集团控股有限公司 The querying method and device of a kind of domain-name information
CN107832126A (en) * 2017-10-20 2018-03-23 平安科技(深圳)有限公司 The method of adjustment and its terminal of a kind of thread

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102209047A (en) * 2011-05-24 2011-10-05 苏州阔地网络科技有限公司 Instant messaging system and method for realizing information sharing
CN102904937A (en) * 2012-09-25 2013-01-30 百度在线网络技术(北京)有限公司 Method and system for mobile terminal to access webpage, browser and transfer server
CN103248684A (en) * 2013-04-28 2013-08-14 北京奇虎科技有限公司 Resource acquiring method and device on Internet
CN104144387A (en) * 2013-05-08 2014-11-12 董礼貌 Instant messaging device, method and system based on email boxes
CN103631914A (en) * 2013-11-30 2014-03-12 广东顺德中山大学卡内基梅隆大学国际联合研究院 Offline browsing method and system of massive internet content
CN106485434A (en) * 2015-08-25 2017-03-08 上海玑智自动化科技有限公司 The dispatching method of automatic conveying device and system
WO2017064612A1 (en) * 2015-10-11 2017-04-20 Noggle Ag System and method for searching files across a plurality of clients
CN105391969A (en) * 2015-12-14 2016-03-09 广东亿迅科技有限公司 Distributed video conference system and terminal conference participating method
CN106888135A (en) * 2015-12-15 2017-06-23 阿里巴巴集团控股有限公司 The querying method and device of a kind of task status
CN106489145A (en) * 2015-12-28 2017-03-08 华为技术有限公司 The access method of web site, device and Web site system
CN107547670A (en) * 2016-06-28 2018-01-05 阿里巴巴集团控股有限公司 The querying method and device of a kind of domain-name information
CN106254462A (en) * 2016-08-05 2016-12-21 北京奇虎科技有限公司 Method, server and the system of a kind of remote assistance realizing mobile terminal
CN107274210A (en) * 2017-04-21 2017-10-20 杨克宁 A kind of advertisement management method, storage medium, server and system
CN107832126A (en) * 2017-10-20 2018-03-23 平安科技(深圳)有限公司 The method of adjustment and its terminal of a kind of thread

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109656959A (en) * 2018-12-24 2019-04-19 拉扎斯网络科技(上海)有限公司 A kind of data query method, apparatus, electronic equipment and storage medium
CN109951351A (en) * 2019-01-15 2019-06-28 兴业证券股份有限公司 Network test method and system based on market
CN109951351B (en) * 2019-01-15 2022-11-11 兴业证券股份有限公司 Network testing method and system based on market conditions
CN111046061A (en) * 2019-12-13 2020-04-21 医渡云(北京)技术有限公司 Data query method, device, system, equipment and storage medium
CN111046061B (en) * 2019-12-13 2023-08-25 医渡云(北京)技术有限公司 Data query method, device, system, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN109145020A (en) Information query method, from server, client and computer readable storage medium
CA2644124A1 (en) Managing rich presence collections
CN107181806B (en) Distributed service processing system and method based on dubbo
CN102281190A (en) Networking method for load balancing apparatus, server and client access method
CA2642824A1 (en) Managing rich presence collections
CN101719929A (en) Method for realizing real-time data transmission under Web Service
CN110430274A (en) A kind of document down loading method and system based on cloud storage
CN109063140A (en) A kind of data query method, transfer server and computer readable storage medium
CN104601702B (en) Cluster remote procedure calling (PRC) method and system
CN106790552B (en) A kind of content providing system based on content distributing network
CN102882974A (en) Method for saving website access resource by website identification version number
JP2007026006A (en) Information exchange system, management server, network load reduction method for use therewith, and its program
CN110134896A (en) A kind of the monitoring process and intelligent buffer method of proxy server
CN102710535B (en) A kind of data capture method and equipment
CN105208133A (en) Server, load balancer as well as server load balancing method and system
CN106411919B (en) Web pushing method based on event bus
CN105978936A (en) CDN server and data caching method thereof
CN103095785A (en) Remote procedure call method and system, client and server
CN111124717A (en) Message delivery method, system and computer storage medium
CN108259605B (en) Data calling system and method based on multiple data centers
CN102023997B (en) Data query system, construction method thereof and corresponding data query method
CN107332703B (en) Method and device for checking multi-application logs
CN110798495A (en) Method and server for end-to-end message push in cluster architecture mode
CN110380967B (en) SSE technology-based server message pushing method
CN105391712B (en) A kind of data rapid transmission method and device based on Transmission Control Protocol

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