CN116775977A - Information query method, device, equipment and storage medium - Google Patents

Information query method, device, equipment and storage medium Download PDF

Info

Publication number
CN116775977A
CN116775977A CN202210222964.5A CN202210222964A CN116775977A CN 116775977 A CN116775977 A CN 116775977A CN 202210222964 A CN202210222964 A CN 202210222964A CN 116775977 A CN116775977 A CN 116775977A
Authority
CN
China
Prior art keywords
query
information
query request
information set
server
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
CN202210222964.5A
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.)
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Wodong Tianjun Information Technology 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 Beijing Jingdong Century Trading Co Ltd, Beijing Wodong Tianjun Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN202210222964.5A priority Critical patent/CN116775977A/en
Publication of CN116775977A publication Critical patent/CN116775977A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure discloses an information query method and an information query device. One embodiment of the method comprises the following steps: the following query steps are performed: receiving a query request sent by a client, and determining the number of requests corresponding to the query request; acquiring attribute information of each target object required by a query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server; the method comprises the steps that an object information set is sent to a client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of a query request; and repeating the query step in response to the query request not ending and the number of requests not reaching the preset value. The scheme realizes a flexible, rapid and comprehensive information query method and device.

Description

Information query method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to the technical field of information processing, and particularly relates to an information query method and device.
Background
After a user initiates a query request at a client in an existing query system (such as an air ticket query system), a server providing corresponding query service can acquire information from a service interface of a third party (such as an air ticket selling merchant), wait for each third party to return information (such as an air ticket quotation and the like) and display the information on a page, wherein the information displayed to the user depends on the interface speed of each third party. The information of each third party is relatively independent, the information feedback speed also depends on the response speed of the interface, if the data return speed of the third party is low, the page can be always in a loading state, and various operations (such as booking, ordering and the like) can be performed only after the data are completely loaded, so that the user experience is poor.
Disclosure of Invention
The embodiment of the disclosure provides an information query method, an information query device, information query equipment and a storage medium.
In a first aspect, embodiments of the present disclosure provide an information query method, including: the following query steps are performed: receiving a query request sent by a client, and determining the number of requests corresponding to the query request; acquiring attribute information of each target object required by a query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server; the method comprises the steps that an object information set is sent to a client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of a query request; and repeating the query step in response to the query request not ending and the number of requests not reaching the preset value.
In some embodiments, the preset object set is a set of predefined optimal target objects; in response to the object information set satisfying the return condition, sending the object information set to the client, comprising: responding to a set of the object information set which does not completely contain the optimal target object, and judging whether the number of the target objects in the object information set reaches a preset value or not; if the number of the target objects in the object information set does not reach the preset value, judging whether the duration of the query request reaches the preset duration; and if the duration of the query request reaches the preset duration, sending the object information set to the client.
In some embodiments, before determining whether the number of target objects in the object information set reaches the preset value, the method further includes: acquiring a first object set, wherein the first object set is different from a preset object set; judging whether the number of target objects in the object information set is smaller than the number of objects in the first object set; if the number of the target objects in the object information set is not less than the number of the objects in the first object set, sending the object information set to the client; if the number of the target objects in the object information set is smaller than the number of the objects in the first object set, downward execution is performed to judge whether the number of the target objects in the object information set reaches a preset value.
In some embodiments, the method further comprises: acquiring a second object set, wherein the second object set is a set of all objects conforming to the query request; responding to the condition that the second object set has no object in the object information set, and based on the comparison of the second object set and each target object in the object information set, sending an object acquisition request corresponding to the comparison result to a corresponding server; and the receiving service end updates the memory based on the object attribute information returned by the object acquisition request.
In some embodiments, the method further comprises: determining response speed of the server side and value information of the object returned by the server side based on the obtained sending time point of the object obtaining request, the returning time point of the server side and analysis results of the object attribute information returned by the server side; and updating the preset object set based on the response speed of the server and the value information of the objects returned by the server.
In a second aspect, embodiments of the present disclosure provide an information query method, including: responding to a received query instruction of a user, generating a query request corresponding to the query instruction, and sending the query request to a middle server; responding to the received object information set returned by the middle server according to the query request, and determining attribute information of each target object in the object information set; and updating the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that a user can complete corresponding operation based on the attribute information of each object in the display page.
In some embodiments, the method further comprises: and transmitting the query request to the middle server in response to the query request meeting a retransmission condition, wherein the retransmission condition is set based on the preset interval duration and/or the repetition identification in the received object information set.
In a third aspect, an embodiment of the present disclosure provides an information query apparatus, including: a query unit configured to perform the following query steps: receiving a query request sent by a client, and determining the number of requests corresponding to the query request; acquiring attribute information of each target object required by a query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server; the method comprises the steps that an object information set is sent to a client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of a query request; and the repeating unit is configured to repeatedly execute the query step in response to the query request not ending and the number of requests not reaching a preset value.
In some embodiments, the preset object set is a set of predefined optimal target objects; a query unit comprising: the first judging module is configured to respond to the set of the optimal target objects which are not completely contained in the object information set and judge whether the number of the target objects in the object information set reaches a preset value or not; the second judging module is configured to judge whether the duration of the query request reaches the preset duration or not if the number of the target objects in the object information set does not reach the preset value; the first sending module is configured to send the object information set to the client if the duration of the query request reaches the preset duration.
In some embodiments, the querying element further comprises: the acquisition module is configured to acquire a first object set, wherein the first object set is different from a preset object set; a third judging module configured to judge whether the number of target objects in the object information set is smaller than the number of objects in the first object set; the second sending module is configured to send the object information set to the client if the number of target objects in the object information set is not less than the number of objects in the first object set; and the execution module is configured to execute downward judgment on whether the number of the target objects in the object information set reaches a preset value if the number of the target objects in the object information set is smaller than the number of the objects in the first object set.
In some embodiments, the apparatus further comprises: the acquisition unit is configured to acquire a second object set, wherein the second object set is a set of all objects conforming to the query request; the sending unit is configured to respond to the fact that the second object set contains objects which are not in the object information set, and based on the comparison of the second object set and each target object in the object information set, an object acquisition request corresponding to the comparison result is sent to the corresponding server; the first updating unit is configured to receive object attribute information returned by the server side based on the object acquisition request and update the memory based on the object attribute information.
In some embodiments, the apparatus further comprises: a determining unit configured to determine a response speed of the server and value information of an object returned by the server based on the obtained sending time point of the object obtaining request, the returning time point of the server and an analysis result of the object attribute information returned by the server; and the second updating unit is configured to update the preset object set based on the response speed of the server side and the value information of the object returned by the server side.
In a fourth aspect, disclosed embodiments provide an information query apparatus, including: the sending unit is configured to respond to the received query instruction of the user, generate a query request corresponding to the query instruction and send the query request to the middle server; the receiving unit is configured to respond to the received object information set returned by the middle server according to the query request, and determine attribute information of each target object in the object information set; and the display unit is configured to update the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that a user can complete corresponding operation based on the attribute information of each object in the display page.
In some embodiments, the apparatus further comprises: and a retransmission unit configured to transmit a query request to the center server in response to the query request satisfying a retransmission condition set based on a preset interval duration and/or a repetition identification in the received object information set.
In a fifth aspect, embodiments of the present disclosure provide an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method as described in any one of the implementations of the first or second aspect.
In a sixth aspect, embodiments of the present disclosure provide a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform a method as described in any one of the implementations of the first or second aspects.
The information query method and device provided by the embodiment of the disclosure adopt the following query steps: the method comprises the steps of receiving a query request sent by a client, determining the number of requests corresponding to the query request, obtaining attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, updating the memory based on the object attribute information sent by a received server, sending the object information set to the client in response to the object information set meeting a return condition, setting the return condition based on the comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request, repeatedly executing the query step in response to the fact that the query request is not finished and the number of requests does not reach a preset value, and realizing a flexible, quick and comprehensive information query method and device in a mode of repeatedly querying and returning information for a plurality of times. The method solves the problem that the user experience is poor due to limited data integrity and low query speed in the existing information query, and by gradually displaying query information to the user, the user is prevented from displaying a white page or loading a middle page, the displayed information is ensured to be accurate and effective, the user can quickly respond to the data, and better experience is brought to the user.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the disclosure, nor is it intended to be used to limit the scope of the disclosure. Other features of the present disclosure will become apparent from the following specification.
Drawings
The drawings are for a better understanding of the present solution and are not to be construed as limiting the present disclosure.
FIG. 1 is an exemplary system architecture diagram in which some embodiments of the present disclosure may be applied;
FIG. 2 is a schematic diagram of a first embodiment of an information query method applied to a middle server according to the present disclosure;
FIG. 3 is a schematic diagram of one application scenario of the information query method applied to a middle server according to the present disclosure;
FIG. 4 is a schematic diagram of a second embodiment of an information query method applied to a middle server according to the present disclosure;
FIG. 5 is a schematic diagram of one embodiment of an information query method applied to a client, in accordance with the present disclosure;
FIG. 6 is a schematic diagram of an embodiment of an information query apparatus applied to a middle server according to the present disclosure;
FIG. 7 is a schematic diagram of an embodiment of an information query apparatus applied to a client according to the present disclosure;
Fig. 8 is a schematic structural diagram of an electronic device suitable for implementing embodiments of the present disclosure.
Detailed Description
Exemplary embodiments of the present disclosure are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present disclosure to facilitate understanding, and should be considered as merely exemplary. Accordingly, one of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
The terminology used in the present disclosure is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. As used in this disclosure and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any or all possible combinations of one or more of the associated listed items. It should be understood that although the terms first, second, third, etc. may be used in this disclosure to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present disclosure. The word "if" as used herein may be interpreted as "at … …" or "at … …" or "responsive to a determination", depending on the context.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may in fact be executed substantially concurrently or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
It should be noted that, without conflict, the embodiments of the present disclosure and features of the embodiments may be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings in conjunction with embodiments.
Fig. 1 illustrates an exemplary system architecture 100 to which the information query method or information query apparatus of embodiments of the present disclosure may be applied.
As shown in fig. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a middlebox server 105. The network 104 is the medium used to provide communication links between the terminal devices 101, 102, 103 and the central server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user can interact with the center server 105 through the network 104 using the terminal devices 101, 102, 103 to send a transmission request or receive transmission data, or the like. Various communication client applications, such as shopping class applications, pick-up class applications, web browser applications, search class applications, instant messaging tools, mailbox clients, social platform software, etc., may be installed on the terminal devices 101, 102, 103.
The terminal devices 101, 102, 103 may be hardware or software. When the terminal devices 101, 102, 103 are hardware, they may be various electronic devices with display screens supporting information browsing, including but not limited to smartphones, tablets, electronic book readers, laptop and desktop computers, and the like. The terminal devices 101, 102, 103 may interact with the server through the network 104 to acquire information or the like. When the terminal devices 101, 102, 103 are software, they can be installed in the above-listed electronic devices. It may be implemented as a plurality of software or software modules, for example, for providing distributed services, or as a single software or software module. The present invention is not particularly limited herein.
The intermediate server 105 may be an application server providing various services, such as an application server providing support for query requests of the terminal devices 101, 102, 103. The application server may perform analysis and other processing on the received data such as the query request, and feed back the analyzed query result (e.g., the object information set) to the terminal device.
The center server 105 may be hardware or software. When the server is hardware, the server may be implemented as a distributed server cluster formed by a plurality of servers, or may be implemented as a single server. When the server is software, it may be implemented as a plurality of software or software modules (e.g., to provide distributed services), or as a single software or software module. The present invention is not particularly limited herein.
It should be noted that, the operations performed by the middle server 105 may also be performed by other electronic devices.
It should be noted that, the information query method provided by the embodiments of the present disclosure is generally executed by the middle server 105, and the corresponding information query device is generally disposed in the middle server 105.
It should be understood that the number of terminal devices, networks and intermediate servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and intermediate servers, as desired for implementation.
With continued reference to fig. 2, a schematic diagram 200 of a first embodiment of an information query method according to the present disclosure is shown. The information query method is applied to the middle server and comprises the following steps:
step 201, the following query step is performed.
In step 2011, a query request sent by a client is received, and the number of requests corresponding to the query request is determined.
In this embodiment, the middle server executing the information query method may receive the query request sent by the client (for example, the terminal device shown in fig. 1) through a wired connection or a wireless connection, determine the query identifier of the query request, and determine the number of requests corresponding to the query request, where the method for determining the number of requests may be that the current number of requests is increased automatically when the same query identifier is continuously acquired, or may also be obtained by analyzing the query request.
It should be noted that the wireless connection may include, but is not limited to, 3G, 4G, 5G, wiFi, bluetooth, wiMAX, zigbee, UWB (ultra wideband), and other now known or later developed wireless connection methods.
In step 2012, the attribute information of each target object required for the query request is obtained from the memory, and an object information set including the attribute information of each target object is generated.
In this embodiment, the middle server may acquire attribute information of each target object required for the query request from the memory, and generate an object information set including the attribute information of each target object. The memory can be a local cache or a pre-designated local other memory, and the memory is updated based on the received object attribute information sent by the server, and the update can be real-time update or update according to a certain time rule. The specific content of the object and the attribute information of the object are illustrated herein, when the query request is an air ticket flight query request initiated by a user, the object may be a merchant or platform for providing an air ticket flight offer, and the attribute information of the object may be flight information, air ticket price information, other service content information and the like of the merchant or platform.
And step 2013, transmitting the object information set to the client in response to the object information set meeting the return condition.
In this embodiment, when the intermediate server determines that the object information set satisfies the return condition, the object information set is transmitted to the client that transmitted the query request. The return condition is set based on the comparison result of each target object in the object information set and the preset object set, the number of the target objects in the object information set and/or the duration of the query request. The preset object set may be a set of some kind of objects preset according to different needs of users or current services, for example, an object set with best service, an object set with lowest quotation, an object set closest to the object set, an object set arriving at the fastest speed, etc. The return conditions are not limited to the above-described examples.
Step 202, in response to the query request not ending and the number of requests not reaching the preset value, repeating the above-mentioned query steps.
In this embodiment, when the intermediate server determines that the query request is not terminated and the number of requests does not reach the preset value, the process jumps to step 201, and the above steps 2011 to 2013 are repeatedly executed.
With continued reference to fig. 3, the information query method 300 of the present embodiment operates in a middle server 301. The middle server 301 first performs the following query step 302: receiving a query request sent by a client, determining the number of requests corresponding to the query request, acquiring attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, updating the memory based on the received object attribute information sent by a server, sending the object information set to the client in response to the object information set meeting a return condition, setting the return condition based on the comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request, and then repeatedly executing the query step 303 until the query is ended by the middle server 301 in response to the query request not being ended and the number of requests not reaching a preset value.
The information query method provided in the above embodiment of the present disclosure employs the following query steps: the method comprises the steps of receiving a query request sent by a client, determining the number of requests corresponding to the query request, obtaining attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, updating the memory based on the object attribute information sent by a received server, sending the object information set to the client in response to the object information set meeting a return condition, setting the return condition based on the comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request, repeatedly executing the query step in response to the fact that the query request is not finished and the number of requests does not reach a preset value, and realizing a flexible, quick and comprehensive information query method and device in a mode of repeatedly querying and returning information for a plurality of times. The method solves the problem that the user experience is poor due to limited data integrity and low query speed in the existing information query, and by gradually displaying query information to the user, the user is prevented from displaying a white page or loading a middle page, the displayed information is ensured to be accurate and effective, the user can quickly respond to the data, and better experience is brought to the user.
With further reference to fig. 4, a schematic diagram 400 of a second embodiment of an information query method is shown. The method is applied to the middle server, and the flow of the method comprises the following steps:
step 401, the following query step is performed.
Step 4011, receiving a query request sent by a client, and determining the number of requests corresponding to the query request.
Step 4012, obtain attribute information of each target object required for the query request from the memory, and generate an object information set including attribute information of each target object.
In step 4013, in response to the set of object information sets not completely containing the optimal target object, it is determined whether the number of target objects in the object information sets reaches a preset value.
In this embodiment, the middle server uses a preset object set to perform a condition determination as to whether to send an object information set, where the preset object set is a set of preset optimal target objects. When the intermediate server determines that the object information set completely contains the set of optimal target objects, the object information set is transmitted to the client. If the intermediate server judges that the object information set does not completely contain the set of optimal target objects, judging whether the number of the target objects in the object information set reaches a preset value. The preset value may be preset based on the number of requests, for example: the preset number of the first request target objects is 5, the preset number of the second request target objects is 10, and the preset number of the third request target objects is 15, so that the number of the target objects is continuously increased. The set of optimal target objects is obtained using a trained algorithmic model.
In some optional implementations of this embodiment, before determining whether the number of target objects in the object information set reaches the preset value, the method further includes: acquiring a first object set, wherein the first object set can be any object set different from a preset object set, for example, a middle server acquires a set of all merchants or platforms configured in the basic data by calling a service interface; judging whether the number of target objects in the object information set is smaller than the number of objects in the first object set; if the number of the target objects in the object information set is not less than the number of the objects in the first object set, sending the object information set to the client; if the number of the target objects in the object information set is smaller than the number of the objects in the first object set, downward execution is performed to judge whether the number of the target objects in the object information set reaches a preset value. The condition judgment of the object set is increased, so that information inquiry is more flexible and diversified, and the information feedback efficiency is improved.
Step 4014, if the number of the target objects in the object information set does not reach the preset value, determining whether the duration of the query request reaches the preset duration.
In this embodiment, if the intermediate server determines that the number of target objects in the object information set reaches the preset value, the intermediate server sends the object information set to the client. If the middle server judges that the number of the target objects in the object information set does not reach the preset value, judging whether the duration of the query request reaches the preset duration again. The preset time period may be preset based on the number of requests, for example: the preset duration of the first request is 1.2 seconds, the preset duration of the second request is 2.5 seconds, and the preset duration of the third request is 4.3 seconds.
In step 4015, if the duration of the query request reaches the preset duration, the object information set is sent to the client.
In this embodiment, if the intermediate server determines that the duration of the query request reaches the preset duration, the object information set is sent to the client.
Step 402, in response to the query request not ending and the number of requests not reaching the preset value, repeating the above-mentioned query steps.
In this embodiment, when the intermediate server determines that the query request is not terminated and the number of requests does not reach the preset value, the process jumps to step 401, and the above steps 4011 to 4015 are repeatedly executed.
In some optional implementations of the present embodiment, the method further includes: acquiring a second object set, wherein the second object set is a set of all objects conforming to the query request; responding to the condition that the second object set has no object in the object information set, and based on the comparison of the second object set and each target object in the object information set, sending an object acquisition request corresponding to the comparison result to a corresponding server; the receiving server side updates the memory based on the object attribute information returned by the object acquisition request, and asynchronously updates the memory in the information inquiry process, so that the information inquiry content is more comprehensive and accurate. By adopting the distributed multithreading mode, loose coupling among systems is realized, and the expandability of the systems is increased.
In some optional implementations of the present embodiment, the method further includes: determining response speed of the server side and value information of the object returned by the server side based on the obtained sending time point of the object obtaining request, the returning time point of the server side and analysis results of the object attribute information returned by the server side, wherein the value information can comprise value giving information of the object, change rate of the value giving information of the object and the like; and updating the preset object set based on the response speed of the server and the value information of the objects returned by the server. The preset object set is dynamically screened, data support is provided for the preset object set, so that the content of information inquiry is more real and effective, high-quality service is provided for users, and user viscosity is improved.
In this embodiment, the specific operations of steps 4011 and 4012 are substantially the same as those of steps 2011 and 2012 in the embodiment shown in fig. 2, and are not described herein.
As can be seen from fig. 4, compared with the embodiment corresponding to fig. 2, the schematic diagram 400 of the information query method in this embodiment sequentially determines the number of target objects in the preset object set and the object information set, and the duration of the query request, so as to implement the focused and hierarchical information query.
With further reference to fig. 5, a schematic diagram 500 of one embodiment of an information query method according to the present disclosure is shown. The information query method is applied to a client and comprises the following steps:
in step 501, in response to receiving a query instruction of a user, a query request corresponding to the query instruction is generated, and the query request is sent to a middle server.
In this embodiment, after the execution body (for example, the above terminal device) receives the query instruction of the user through a wired connection or a wireless connection, a query request corresponding to the query instruction is generated, and the query request is sent to the middle server.
Step 502, in response to receiving the object information set returned by the intermediate server according to the query request, determining attribute information of each target object in the object information set.
In this embodiment, when the execution subject receives the object information set returned by the middle server according to the query request, the execution subject analyzes and obtains attribute information of each target object in the object information set.
In step 503, the display page is updated according to the difference between the attribute information of each target object and the attribute information of each object in the display page.
In this embodiment, the execution body may update the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that the user completes the corresponding operation based on the attribute information of each object in the display page.
In some optional implementations of the present embodiment, the method further includes: and transmitting the query request to the middle server in response to the query request meeting a retransmission condition, wherein the retransmission condition is set based on the preset interval duration and/or the repetition identification in the received object information set. And the sending of multiple requests is realized.
As can be seen from fig. 5, compared with the embodiment corresponding to fig. 2, the flow 500 of the information query method in this embodiment generates a query request corresponding to the query instruction by responding to a received query instruction of a user, sends the query request to the middle server, and responds to the received object information set returned by the middle server according to the query request, determines attribute information of each target object in the object information set, and updates the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that the user completes a corresponding operation based on the attribute information of each object in the display page. The updating of the page is not perceived by the user, so that the experience of the user is improved.
With further reference to fig. 6, as an implementation of the method shown in fig. 2 to 4, the disclosure provides an embodiment of an information query apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 2, and the embodiment of the apparatus may further include, in addition to the features described below, features identical to or corresponding to the embodiment of the method shown in fig. 2, and produce effects identical to or corresponding to the embodiment of the method shown in fig. 2, and the apparatus may be specifically applied to various electronic devices.
As shown in fig. 6, the information inquiry apparatus 600 of the present embodiment includes: a query unit 601 and a repetition unit 602, wherein the query unit is configured to perform the following query steps: receiving a query request sent by a client, and determining the number of requests corresponding to the query request; acquiring attribute information of each target object required by a query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server; the method comprises the steps that an object information set is sent to a client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of a query request; and the repeating unit is configured to repeatedly execute the query step in response to the query request not ending and the number of requests not reaching a preset value.
In this embodiment, the specific processing of the query unit 601 and the repeating unit 602 of the information query apparatus 600 and the technical effects thereof may refer to the related descriptions of the steps 201 to 202 in the corresponding embodiment of fig. 2, and are not described herein again.
In some optional implementations of this embodiment, the preset object set is a set of predefined optimal target objects; a query unit comprising: the first judging module is configured to respond to the set of the optimal target objects which are not completely contained in the object information set and judge whether the number of the target objects in the object information set reaches a preset value or not; the second judging module is configured to judge whether the duration of the query request reaches the preset duration or not if the number of the target objects in the object information set does not reach the preset value; the first sending module is configured to send the object information set to the client if the duration of the query request reaches the preset duration.
In some optional implementations of the present embodiment, the querying unit further includes: the acquisition module is configured to acquire a first object set, wherein the first object set is different from a preset object set; a third judging module configured to judge whether the number of target objects in the object information set is smaller than the number of objects in the first object set; the second sending module is configured to send the object information set to the client if the number of target objects in the object information set is not less than the number of objects in the first object set; and the execution module is configured to execute downward judgment on whether the number of the target objects in the object information set reaches a preset value if the number of the target objects in the object information set is smaller than the number of the objects in the first object set.
In some optional implementations of this embodiment, the apparatus further includes: the acquisition unit is configured to acquire a second object set, wherein the second object set is a set of all objects conforming to the query request; the sending unit is configured to respond to the fact that the second object set contains objects which are not in the object information set, and based on the comparison of the second object set and each target object in the object information set, an object acquisition request corresponding to the comparison result is sent to the corresponding server; the first updating unit is configured to receive object attribute information returned by the server side based on the object acquisition request and update the memory based on the object attribute information.
In some optional implementations of this embodiment, the apparatus further includes: a determining unit configured to determine a response speed of the server and value information of an object returned by the server based on the obtained sending time point of the object obtaining request, the returning time point of the server and an analysis result of the object attribute information returned by the server; and the second updating unit is configured to update the preset object set based on the response speed of the server side and the value information of the object returned by the server side.
With continued reference to fig. 7, as an implementation of the method shown in fig. 5, the disclosure provides an embodiment of an information query apparatus, where the embodiment of the apparatus corresponds to the embodiment of the method shown in fig. 5, and the embodiment of the apparatus may include, in addition to the features described below, the same or corresponding features as the embodiment of the method shown in fig. 5, and produce the same or corresponding effects as the embodiment of the method shown in fig. 5, and the apparatus may be specifically applied in various electronic devices.
As shown in fig. 7, the information query apparatus 700 of the present embodiment includes: the device comprises a sending unit 701, a receiving unit 702 and a display unit 703, wherein the sending unit is configured to respond to the received inquiry instruction of a user, generate an inquiry request corresponding to the inquiry instruction and send the inquiry request to a middle server; the receiving unit is configured to respond to the received object information set returned by the middle server according to the query request, and determine attribute information of each target object in the object information set; and the display unit is configured to update the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that a user can complete corresponding operation based on the attribute information of each object in the display page.
In this embodiment, the specific processes of the sending unit 701, the receiving unit 702, and the display unit 703 of the information query apparatus 700 and the technical effects thereof may refer to the relevant descriptions of steps 501 to 503 in the corresponding embodiment of fig. 5, and are not repeated here.
In some optional implementations of this embodiment, the apparatus further includes: and a retransmission unit configured to transmit a query request to the center server in response to the query request satisfying a retransmission condition set based on a preset interval duration and/or a repetition identification in the received object information set.
Referring now to fig. 8, a schematic diagram of an electronic device 800 suitable for use in implementing embodiments of the present disclosure is shown. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), and the like, and stationary terminals such as digital TVs, desktop computers, and the like. The electronic device shown in fig. 8 is merely an example, and should not impose any limitations on the functionality and scope of use of embodiments of the present disclosure.
As shown in fig. 8, the electronic device 800 may include a processing means (e.g., a central processor, a graphics processor, etc.) 801, which may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM) 802 or a program loaded from a storage means 808 into a Random Access Memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other by a bus 804. An input/output (I/O) interface 805 is also connected to the bus 804.
In general, the following devices may be connected to the I/O interface 805: input devices 806 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, and the like; an output device 807 including, for example, a Liquid Crystal Display (LCD), speakers, vibrators, etc.; storage 808 including, for example, magnetic tape, hard disk, etc.; communication means 809. The communication means 809 may allow the electronic device 800 to communicate wirelessly or by wire with other devices to exchange data. While fig. 8 shows an electronic device 800 having various means, it is to be understood that not all of the illustrated means are required to be implemented or provided. More or fewer devices may be implemented or provided instead. Each block shown in fig. 8 may represent one device or a plurality of devices as needed.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communication device 809, or installed from storage device 808, or installed from ROM 802. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 801.
It should be noted that the computer readable medium of the embodiments of the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In an embodiment of the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. Whereas in embodiments of the present disclosure, the computer-readable signal medium may comprise a data signal propagated in baseband or as part of a carrier wave, with computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be contained in the electronic device; or may exist alone without being incorporated into the electronic device. The computer readable medium carries one or more programs which, when executed by the electronic device, cause the electronic device to: determining information expressed by one row of records of at least one business data table and a target data table which are associated with the business topic according to the business topic; counting the occurrence frequency of each field in each service data table to obtain at least one target field with a statistic value meeting a preset condition, and taking each target field as each dimension of the target data table; selecting names of dimension members in each dimension table as attributes of corresponding dimensions; and determining attribute values of the dimensions based on the information expressed by one row record of the target data table and the attributes of the dimensions, and generating the target data table at least comprising the attribute values of the dimensions.
Computer program code for carrying out operations of embodiments of the present disclosure may be written in one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments described in the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The described units may also be provided in a processor, for example, described as: a processor includes a query unit and a retransmission unit. The names of these units do not constitute a limitation on the unit itself in some cases, for example, a query unit may also be described as "performing the following query steps: receiving a query request sent by a client, determining the number of requests corresponding to the query request, acquiring attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, updating the memory based on the received object attribute information sent by a server, sending the object information set to the client in response to the object information set meeting a return condition, wherein the return condition is set based on the comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by those skilled in the art that the scope of the invention in the embodiments of the present disclosure is not limited to the specific combination of the above technical features, but encompasses other technical features formed by any combination of the above technical features or their equivalents without departing from the spirit of the invention. Such as the above-described features, are mutually substituted with (but not limited to) the features having similar functions disclosed in the embodiments of the present disclosure.

Claims (11)

1. An information query method, comprising:
the following query steps are performed:
receiving a query request sent by a client, and determining the number of requests corresponding to the query request;
acquiring attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server;
the object information set is sent to the client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request;
And repeating the query step in response to the query request not ending and the number of requests not reaching a preset value.
2. The method of claim 1, wherein the set of preset objects is a set of predefined optimal target objects; the sending the object information set to the client in response to the object information set meeting a return condition includes:
responding to the set of the optimal target objects which are not completely contained in the object information set, and judging whether the number of the target objects in the object information set reaches a preset value or not;
if the number of the target objects in the object information set does not reach a preset value, judging whether the duration of the query request reaches a preset duration;
and if the duration of the query request reaches the preset duration, sending the object information set to the client.
3. The method of claim 2, further comprising, prior to said determining whether the number of target objects in the set of object information reaches a preset value:
acquiring a first object set, wherein the first object set is different from the preset object set;
judging whether the number of target objects in the object information set is smaller than the number of objects in the first object set;
If the number of the target objects in the object information set is not less than the number of the objects in the first object set, the object information set is sent to the client;
and if the number of the target objects in the object information set is smaller than the number of the objects in the first object set, executing the judgment downwards to judge whether the number of the target objects in the object information set reaches a preset value.
4. The method of claim 1, further comprising:
acquiring a second object set, wherein the second object set is a set of all objects conforming to the query request;
responding to the condition that the second object set has no object in the object information set, and based on the comparison of the second object set and each target object in the object information set, sending an object acquisition request corresponding to the comparison result to a corresponding server;
and receiving object attribute information returned by the server based on the object acquisition request, and updating the memory based on the object attribute information.
5. The method of claim 4, further comprising:
determining the response speed of the server and the value information of the object returned by the server based on the obtained sending time point of the object obtaining request, the returning time point of the server and the analysis result of the object attribute information returned by the server;
And updating the preset object set based on the response speed of the server and the value information of the objects returned by the server.
6. An information query method, comprising:
responding to a received query instruction of a user, generating a query request corresponding to the query instruction, and sending the query request to a middle server;
determining attribute information of each target object in the object information set in response to receiving the object information set returned by the middle server according to the query request;
and updating the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that the user can complete corresponding operation based on the attribute information of each object in the display page.
7. The method of claim 6, further comprising:
and transmitting the query request to a middle server in response to the query request meeting a retransmission condition, wherein the retransmission condition is set based on a preset interval duration and/or a received repeated identifier in the object information set.
8. An information query apparatus, comprising:
a query unit configured to perform the following query steps: receiving a query request sent by a client, and determining the number of requests corresponding to the query request; acquiring attribute information of each target object required by the query request from a memory, generating an object information set comprising the attribute information of each target object, and updating the memory based on the received object attribute information sent by a server; the object information set is sent to the client in response to the object information set meeting a return condition, wherein the return condition is set based on a comparison result of each target object in the object information set and a preset object set, the number of target objects in the object information set and/or the duration of the query request;
And the repeating unit is configured to repeatedly execute the query step in response to the query request not ending and the number of requests not reaching a preset value.
9. An information query apparatus, comprising:
the sending unit is configured to respond to the received query instruction of the user, generate a query request corresponding to the query instruction and send the query request to the middle server;
the receiving unit is configured to respond to the received object information set returned by the middle server according to the query request, and determine attribute information of each target object in the object information set;
and the display unit is configured to update the display page according to the difference between the attribute information of each target object and the attribute information of each object in the display page, so that the user can complete corresponding operation based on the attribute information of each object in the display page.
10. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-5 or the method of claims 6-7.
11. A non-transitory computer readable storage medium storing computer instructions for causing the computer to perform the method of any one of claims 1-5 or the method of claims 6-7.
CN202210222964.5A 2022-03-09 2022-03-09 Information query method, device, equipment and storage medium Pending CN116775977A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210222964.5A CN116775977A (en) 2022-03-09 2022-03-09 Information query method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210222964.5A CN116775977A (en) 2022-03-09 2022-03-09 Information query method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN116775977A true CN116775977A (en) 2023-09-19

Family

ID=87990075

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210222964.5A Pending CN116775977A (en) 2022-03-09 2022-03-09 Information query method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116775977A (en)

Similar Documents

Publication Publication Date Title
WO2018019139A1 (en) Information pushing method and device
CN110781373B (en) List updating method and device, readable medium and electronic equipment
CN110619078B (en) Method and device for pushing information
CN108810047B (en) Method and device for determining information push accuracy rate and server
CN112379982B (en) Task processing method, device, electronic equipment and computer readable storage medium
CN111246228A (en) Method, device, medium and electronic equipment for updating gift resources of live broadcast room
CN111163324B (en) Information processing method and device and electronic equipment
CN110618768B (en) Information presentation method and device
CN109992719B (en) Method and apparatus for determining push priority information
CN106897202B (en) Method and apparatus for outputting data
CN111309496A (en) Method, system, device, equipment and storage medium for realizing delay task
CN110619101B (en) Method and apparatus for processing information
CN110827037A (en) Data interaction method and device based on block chain
CN114417214A (en) Information display method and device and electronic equipment
CN116775977A (en) Information query method, device, equipment and storage medium
CN110187987B (en) Method and apparatus for processing requests
CN111143740B (en) Information processing method and device and electronic equipment
CN111367592B (en) Information processing method and device
CN111787043A (en) Data request method and device
CN112311842A (en) Method and device for information interaction
CN110619079A (en) Method and device for pushing information
CN111294657A (en) Information processing method and device
CN114513548B (en) Directional call information processing method and device
CN111652694B (en) Order processing method and device and electronic equipment
CN111291254A (en) Information processing method and device

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