CN114168623A - Method and device for acquiring information of object, electronic equipment and storage medium - Google Patents

Method and device for acquiring information of object, electronic equipment and storage medium Download PDF

Info

Publication number
CN114168623A
CN114168623A CN202111274710.XA CN202111274710A CN114168623A CN 114168623 A CN114168623 A CN 114168623A CN 202111274710 A CN202111274710 A CN 202111274710A CN 114168623 A CN114168623 A CN 114168623A
Authority
CN
China
Prior art keywords
price
bid
information
identification information
latest
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
CN202111274710.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.)
China Construction Bank Corp
Original Assignee
China Construction Bank Corp
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 China Construction Bank Corp filed Critical China Construction Bank Corp
Priority to CN202111274710.XA priority Critical patent/CN114168623A/en
Publication of CN114168623A publication Critical patent/CN114168623A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2471Distributed queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Accounting & Taxation (AREA)
  • Strategic Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Game Theory and Decision Science (AREA)
  • Human Computer Interaction (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Fuzzy Systems (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The present disclosure relates to a method and an apparatus for acquiring information of a subject matter, an electronic device, and a storage medium, and relates to the field of computer technologies, wherein the method includes: and under the condition that a price checking request aiming at the object is received, inquiring whether price information corresponding to the object identification information exists in the price cache server or not, and under the condition that the price information corresponding to the object identification information exists in the price cache server, acquiring the latest price information corresponding to the object identification information from the price cache server and returning the latest price information. Therefore, under the condition that the price of the object needs to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, the access pressure of the price database is reduced, and the efficiency of obtaining the latest price information of the object can be improved.

Description

Method and device for acquiring information of object, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for acquiring information of a target object, an electronic device, and a storage medium.
Background
With the popularization and development of the internet, bidding services can be developed online, so that users can conveniently bid through the network and check price information of target objects. In the related technology, when each user wants to check the current price of a target object, the foreground directly requests the background database to obtain the price of the target object and then returns the price to the foreground for display. However, this method increases the number of foreground accesses to the database, and is likely to cause significant effects such as increased database load, deteriorated database response, and low efficiency in obtaining the price of the object.
Disclosure of Invention
The present disclosure provides a method, an apparatus, an electronic device, and a storage medium for acquiring information of a target object, so as to at least solve the problems in the related art that the burden of a database is increased and the efficiency of acquiring the price of the target object is low in the process of checking the price information of the target object.
The technical scheme of the disclosure is as follows:
according to a first aspect of the embodiments of the present disclosure, there is provided a method for acquiring information of a subject, including: receiving a price viewing request, wherein the price viewing request comprises target identification information; responding to the price checking request, and inquiring whether price information corresponding to the target object identification information exists in a price cache server or not; and if the price information corresponding to the target object identification information exists in the price cache server, acquiring the latest price information corresponding to the target object identification information from the price cache server, and returning the latest price information.
In one embodiment of the present disclosure, when price information corresponding to the target object identification information does not exist in the price cache server, latest price information corresponding to the target object identification information is acquired from a database, and the latest price information is returned.
In one embodiment of the present disclosure, prior to the receiving a price viewing request, the method further comprises: acquiring the latest bid price corresponding to the target object identification information from a database; and taking the latest bid price as the latest price information, and caching the latest price information into the price cache server.
In an embodiment of the present disclosure, the obtaining a latest bid price corresponding to the target object identification information from the database includes: receiving a price query request, wherein the price query request comprises the object identification information of the object; acquiring the receiving time of the price inquiry request; obtaining, from the database, a plurality of bid prices and a plurality of bid times corresponding to the respective bid prices and the respective bid prices corresponding to the target object identification information; obtaining a target bidding time with the minimum time difference value with the receiving time according to the bidding time corresponding to each of the plurality of bidding prices; and taking the bid price corresponding to the target bid time as the latest bid price.
In an embodiment of the present disclosure, before the obtaining of the latest bid price corresponding to the target identification information from the database, the method further includes: receiving a bid request, wherein the bid request comprises bid price information corresponding to the target object identification information; acquiring the receiving time of the bid request, and taking the receiving time of the bid request as the bid time; and deleting the price information corresponding to the target object identification information in the price cache server and storing the bid price information and the bid time in a database when the price information of the target object identification information exists in the price cache server.
In one embodiment of the present disclosure, the method further comprises: and storing the bid price information and the bid time in a database when the price information of the target object identification information does not exist in the price cache server.
According to a second aspect of the embodiments of the present disclosure, there is provided an information acquisition apparatus of a subject matter, including: a first receiving module configured to receive a price viewing request, wherein the price viewing request includes target identification information; the query module is configured to respond to the price checking request and query whether price information corresponding to the target object identification information exists in the price cache server or not; a first processing module configured to, when price information corresponding to the target object identification information exists in the price cache server, acquire latest price information corresponding to the target object identification information from the price cache server, and return the latest price information.
A second processing module configured to, when price information corresponding to the target object identification information does not exist in the price cache server, obtain latest price information corresponding to the target object identification information from a database, and return the latest price information.
In one embodiment of the present disclosure, the apparatus further comprises: a first obtaining module configured to obtain a latest bid price corresponding to the target object identification information from a database; a caching module configured to take the latest bid price as the latest price information and cache the latest price information in the price caching server.
In one embodiment of the present disclosure, the first obtaining module includes: a receiving unit configured to receive a price query request, wherein the price query request includes the object identification information of the object; a first obtaining unit configured to obtain a reception time of the price inquiry request; a second acquisition unit configured to acquire, from the database, a plurality of bid prices corresponding to the target object identification information and a plurality of bid times corresponding to the respective bid prices; a third obtaining unit configured to obtain a target bid time having a smallest time difference with the reception time, according to a bid time corresponding to each of the plurality of bid prices; a determination unit configured to take a bid price corresponding to the target bid time as the latest bid price.
In one embodiment of the present disclosure, the apparatus further comprises: a second receiving module configured to receive a bid request, wherein the bid request includes bid price information corresponding to the target object identification information; a second obtaining module configured to obtain a receiving time of the bid request and take the receiving time of the bid request as a bid time; a third processing module configured to delete price information corresponding to the target object identification information in the price cache server and store the bid price information and the bid time in a database, when the price information of the target object identification information exists in the price cache server.
In one embodiment of the present disclosure, the apparatus further comprises: a fourth processing module configured to save the bid price information and the bid time in a database in a case where price information of the target object identification information does not exist in the price cache server.
According to a third aspect of the embodiments of the present disclosure, there is provided an electronic apparatus including: a processor; a memory for storing the processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information acquisition method of the subject matter set forth in the embodiments of the first aspect of the present disclosure.
According to a fourth aspect of the embodiments of the present disclosure, there is provided a storage medium, where instructions, when executed by a processor of an electronic device, enable the electronic device to perform the method for acquiring information of a subject matter set forth in the embodiments of the first aspect of the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the method for acquiring information of a subject matter set forth in the embodiments of the first aspect of the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
and under the condition that a price checking request aiming at the object is received, inquiring whether price information corresponding to the object identification information exists in the price cache server or not, and under the condition that the price information corresponding to the object identification information exists in the price cache server, acquiring the latest price information corresponding to the object identification information from the price cache server and returning the latest price information. Therefore, under the condition that the price of the object needs to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, the access pressure of the price database is reduced, and the efficiency of obtaining the latest price information of the object can be improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the disclosure and are not to be construed as limiting the disclosure.
Fig. 1 is a flowchart illustrating an information acquisition method for a subject matter according to a first embodiment of the present disclosure.
Fig. 2 is a flowchart illustrating another information acquisition method of a subject matter according to a second embodiment of the present disclosure.
Fig. 3 is a flowchart of an information acquisition method of another subject matter shown in a third embodiment of the present disclosure.
Fig. 4 is a flowchart of another method for acquiring information of a subject matter according to a fourth embodiment of the present disclosure.
Fig. 5 is a schematic structural diagram of an information acquisition apparatus of a subject matter shown in a fifth embodiment of the present disclosure.
Fig. 6 is a schematic structural view of an information acquisition apparatus of another object shown in a sixth embodiment of the present disclosure.
Fig. 7 is a schematic structural diagram of an electronic device for implementing an embodiment of the present disclosure.
Detailed Description
In order to make the technical solutions of the present disclosure better understood by those of ordinary skill in the art, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the accompanying drawings.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and in the above-described drawings are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the disclosure described herein are capable of operation in sequences other than those illustrated or otherwise described herein. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating an information acquisition method for a subject matter according to a first embodiment of the present disclosure.
The embodiment of the present disclosure is exemplified in that the information acquiring method of the subject matter is configured in an information acquiring apparatus of the subject matter, the information acquiring apparatus of the subject matter can be implemented by software and/or hardware, and the information acquiring apparatus of the subject matter can be configured in an electronic device, so that the electronic device can perform the information acquiring function of the subject matter.
The electronic device may be any device with computing capability, for example, a PC (Personal Computer), a mobile terminal, a server, and the like, and the mobile terminal may be a hardware device with various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and an in-vehicle device.
As shown in fig. 1, the information acquisition method of the subject matter may include the following steps.
Step 101, receiving a price viewing request, wherein the price viewing request comprises target identification information.
In some embodiments, the price view request may be triggered by triggering a view control on an interactive interface.
As an exemplary implementation manner, display resources corresponding to a plurality of object identification information may be displayed on an interactive interface, a price viewing control corresponding to each display resource may be displayed, a viewing control triggered by a user may be acquired, identification information of an object to be viewed may be determined according to the price viewing control triggered by the user, and a price viewing request including the identification information of the object may be generated.
The display resource may include, but is not limited to, an image, an animation, a video, and the like of a subject matter, and in an actual application process, the display resource may be set in combination with a specific business requirement, which is not specifically limited in this embodiment.
As another exemplary embodiment, display resources corresponding to a plurality of object identification information may be displayed on an interactive interface, object identification information selected by a selection operation may be acquired, and when it is detected that a price viewing control on the interactive interface is triggered, a price viewing request for the selected object identification information may be generated.
Step 102, responding to the price checking request, and inquiring whether price information corresponding to the target object identification information exists in the price cache server.
Step 103, determining whether price information corresponding to the target object identification information exists in the price cache server, if yes, executing step 104, otherwise, executing step 105.
And 104, acquiring the latest price information corresponding to the target object identification information from the price cache server, and returning the latest price information.
In some embodiments, in order to improve efficiency of obtaining the latest price information of the object by the user, the latest price information corresponding to the object identification information may be cached in the price cache server.
An exemplary embodiment of caching the latest price information corresponding to the object identifier in the price caching server is as follows: when a bid request for target object identification information is received and price information corresponding to the target object is cached in the price cache server, the price information corresponding to the target object cached in the price cache server may be deleted, the bid price information corresponding to the target object identification information in the bid request may be stored in the price database, and the bid price information may be cached in the price cache server as the latest price information.
In other embodiments, when there are multiple pieces of price information in the price caching server and there are bid times corresponding to the multiple pieces of price information, an implementation manner of caching recent price information corresponding to the object identification information in the price caching server may be: and determining the latest bidding time according to the bidding time corresponding to the plurality of price information, and taking the bidding price corresponding to the latest bidding time as the latest price information corresponding to the target object identification information.
Step 105, obtaining the latest price information corresponding to the target object identification information from the database, and returning the latest price information.
In some embodiments, an exemplary implementation of obtaining the latest price information corresponding to the target object identification information from the database is as follows: acquiring the receiving time of the price viewing request, and acquiring the bidding time corresponding to the object identification information and the bidding prices from the price database; obtaining a target bidding time with the minimum time difference value with the receiving time according to the bidding time corresponding to each of the bidding prices; and taking the bid price corresponding to the target bid time as the latest price information.
In other implementations, an exemplary implementation of obtaining the latest price information corresponding to the target object identification information from the database is to obtain, from the price database, a bid time corresponding to each of a plurality of bid prices corresponding to the target object identification information, determine, according to the plurality of bid times, a latest bid time, determine a bid price corresponding to the latest bid time, and use the bid price corresponding to the latest bid time as the latest price information.
In the information acquisition method for a target object according to the embodiment of the present disclosure, when a price check request for the target object is received, whether price information corresponding to target object identification information exists in a price cache server is queried, and when price information corresponding to the target object identification information exists in the price cache server, latest price information corresponding to the target object identification information is acquired from the price cache server and the latest price information is returned. Therefore, under the condition that the price of the object is required to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, and the access pressure of the price database is reduced.
Fig. 2 is a flowchart illustrating another information acquisition method of a subject matter according to a second embodiment of the present disclosure. Wherein fig. 2 is a further refinement of the above embodiment.
As shown in fig. 2, the method may include:
step 201, a latest bid price corresponding to the target object identification information is obtained from the database.
It should be noted that the above-mentioned obtaining of the latest bid price corresponding to the target object identification information from the database can be realized in various ways, and an exemplary description is as follows:
as an exemplary embodiment, a price query request may be received, wherein the price query request includes object identification information of an object; acquiring the receiving time of the price inquiry request; acquiring a plurality of bid prices corresponding to the target object identification information and a plurality of bid time corresponding to the bid prices from a database; obtaining a target bidding time with the minimum time difference value with the receiving time according to the bidding time corresponding to each of the bidding prices; and taking the bid price corresponding to the target bid time as the latest bid price.
As another exemplary embodiment, the latest bid time corresponding to the target object identification information may be acquired from the price database, the bid price corresponding to the latest bid time may be acquired, and the bid price corresponding to the latest bid time may be used as the latest price information corresponding to the target object identification information.
And step 202, taking the latest bid price as latest price information, and caching the latest price information into a price cache server.
Step 203, receiving a price viewing request, wherein the price viewing request comprises target identification information.
Step 204, responding to the price checking request, inquiring whether price information corresponding to the object identification information exists in the price cache server, if so, executing step 205, otherwise, executing step 206.
Step 205, obtaining the latest price information corresponding to the target object identification information from the price cache server, and returning the latest price information.
Step 206, the latest price information corresponding to the target object identification information is obtained from the database, and the latest price information is returned.
In the information acquisition method for an object according to the embodiment of the present disclosure, the latest price information corresponding to the object identification information of the price database is stored in the price cache server, so that the latest price information corresponding to the object identification information can be acquired from the price cache server and the latest price information can be returned when a price check request for the object is received. Therefore, under the condition that the price of the object is required to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, and the access pressure of the price database is reduced.
In some embodiments, in order to enable the user to obtain the latest price information of the target object, in the case that the price information corresponding to the target object identification information does not exist in the price cache server, the latest price information corresponding to the target object identification information is obtained from the database, and the latest price information is returned.
Fig. 3 is a flowchart of an information acquisition method of a subject matter according to a third embodiment of the present disclosure.
As shown in fig. 3, the method may include:
step 301, receiving a bid request, where the bid request includes bid price information corresponding to the target object identification information.
Step 302, obtaining the receiving time of the bid request, and using the receiving time of the bid request as the bid time.
Step 303, determining whether price information corresponding to the target object identification information exists in the price cache server, if yes, executing step 304, otherwise executing step 305.
Step 304, deleting the price information corresponding to the object identification information in the price cache server, and storing the bid price information and the bid time in a database.
The bid price information and the bid time can be saved directly to a database, step 305.
Step 306, the latest bid price corresponding to the target object identification information is obtained from the database.
And 307, taking the latest bid price as latest price information, and caching the latest price information into a price cache server.
Step 308, receiving a price viewing request, wherein the price viewing request comprises the object identification information.
Step 309, responding to the price checking request, querying whether price information corresponding to the object identification information exists in the price cache server.
In step 310, it is determined whether price information corresponding to the target object identification information exists in the price cache server, if yes, step 311 is executed, otherwise, step 312 is executed.
Step 311, obtaining the latest price information corresponding to the target object identification information from the price cache server, and returning the latest price information.
In step 312, the latest price information corresponding to the target object identification information is obtained from the database, and the latest price information is returned.
In this embodiment, in order to avoid the influence of the non-latest price information of the target object identification information cached in the price cache server on the efficiency of acquiring the latest price information corresponding to the target object identification information in the price cache server, in the process of bidding by the user, before the latest bid price corresponding to the target object identification information is stored in the price database, the price information of the target object identification information cached in the price cache server is deleted, the latest bid price corresponding to the target object identification information is acquired from the price server, and the latest price is stored in the price cache server as the latest price information corresponding to the target object identification information.
In some embodiments, in order to enable the user to obtain the latest price information of the target object, in the case that the price information corresponding to the target object identification information does not exist in the price cache server, the latest price information corresponding to the target object identification information is obtained from the database, and the latest price information is returned.
In order to make the present disclosure clear to those skilled in the art, the method of this embodiment is further described below with reference to fig. 4. As shown in fig. 4, the method may include:
step 401, the user a sends a bid request through a web page, where the bid request includes a bid price corresponding to the target identification information.
Step 402, deleting the price information corresponding to the target object identification information in the price cache server.
In some embodiments, the object identification information may be object owner key information, and the price cache server may find the corresponding price information according to the object owner key information, and delete the corresponding price information.
In this embodiment, the price cache server is used as a distributed price cache server, for example, the distributed price cache server may be memcached.
Step 403, storing the bid price corresponding to the object identification information in a price database.
Step 404, querying a price database, obtaining the latest bid price corresponding to the object identification information from the price database, and storing the latest bid price in a price cache server.
Step 405, obtaining the latest bid price of the object from the price cache server, and returning the latest bid price to the front end of the webpage corresponding to the user a, so as to display the latest bid price corresponding to the object identification information on the front end of the webpage.
And 406, receiving a price viewing request sent by the user B, wherein the price viewing request comprises the target identification information.
Step 407, obtaining the latest bid price corresponding to the object identification information from the price cache server, and displaying the latest bid price corresponding to the object identification on the front end of the webpage corresponding to the user B.
In the embodiment, under the condition that the user needs to check the latest bid price of the object, the latest bid price of the object is directly obtained from the price cache server, so that the access to the background database is reduced, the access pressure of the database when the access is increased is avoided, and the efficiency of obtaining the latest bid price of the object by the user can be improved by directly obtaining the latest bid price of the object in the cache server.
Fig. 5 is a schematic structural diagram of an information acquisition apparatus of a subject matter shown in a fifth embodiment of the present disclosure.
As shown in fig. 5, the information acquiring apparatus 50 of the subject matter includes a first receiving module 501, a querying module 502, and a first processing module 503, wherein:
a first receiving module 501 configured to receive a price viewing request, wherein the price viewing request includes object identification information of an object.
The query module 502 is configured to query whether price information corresponding to the target object identification information exists in the price cache server in response to the price check request.
The first processing module 503 is configured to, when price information corresponding to the target object identification information exists in the price cache server, obtain latest price information corresponding to the target object identification information from the price cache server, and return the latest price information.
In an embodiment of the present disclosure, on the basis of the embodiment of the apparatus shown in fig. 5, as shown in fig. 6, the apparatus may further include:
a second processing module 504, configured to, in a case that price information corresponding to the target object identification information does not exist in the price cache server, obtain latest price information corresponding to the target object identification information from the database, and return the latest price information.
In one embodiment of the present disclosure, as shown in fig. 6, the apparatus may further include:
the first obtaining module 505 is configured to obtain a latest bid price corresponding to the object identification information from the database.
A caching module 506 configured to take the latest bid price as the latest price information and cache the latest price information into the price caching server.
In an embodiment of the present disclosure, as shown in fig. 6, the first obtaining module 505 may include:
a receiving unit 5051 is configured to receive a price query request, wherein the price query request includes object identification information of an object.
A first obtaining unit 5052 is configured to obtain a receiving time of the price query request.
The second obtaining unit 5053 is configured to obtain, from the database, a plurality of bid prices corresponding to the target object identification information and a plurality of bid times corresponding to the bid prices.
A third obtaining unit 5054 is configured to obtain a target bid time having a smallest time difference from the reception time, based on a bid time corresponding to each of the plurality of bid prices.
The determination unit 5055 is configured to take the bid price corresponding to the target bid time as the latest bid price.
In one embodiment of the present disclosure, as shown in fig. 6, the apparatus further includes:
a second receiving module 507 configured to receive a bid request, wherein the bid request includes bid price information corresponding to the target object identification information.
A second obtaining module 508 configured to obtain a receiving time of the bid request and take the receiving time of the bid request as the bid time.
The third processing module 509 is configured to delete price information corresponding to the target object identification information in the price cache server and store the bid price information and the bid time in the database, when the price information of the target object identification information exists in the price cache server.
In one embodiment of the present disclosure, as shown in fig. 6, the apparatus further includes:
a fourth processing module 510 configured to save the bid price information and the bid time in the database in a case where the price information of the target object identification information does not exist in the price cache server.
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
The information acquiring apparatus for a target object according to the present disclosure inquires whether price information corresponding to target object identification information exists in a price cache server when a price check request for the target object is received, and acquires latest price information corresponding to the target object identification information from the price cache server and returns the latest price information when the price information corresponding to the target object identification information exists in the price cache server. Therefore, under the condition that the price of the object needs to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, the access pressure of the price database is reduced, and the efficiency of obtaining the latest price information of the object can be improved.
In order to implement the above embodiments, the embodiment of the present disclosure further provides an electronic device. Wherein, electronic equipment includes: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the instructions to implement the information acquisition method of the preceding subject matter.
As an example, fig. 7 is a schematic structural diagram of an electronic device 200 for implementing an embodiment of the present disclosure, and as shown in fig. 7, the electronic device 200 may further include:
a memory 210 and a processor 220, a bus 230 connecting different components (including the memory 210 and the processor 220), wherein the memory 210 stores a computer program, and when the processor 220 executes the program, the information acquisition method of the subject matter of the embodiments of the present disclosure is implemented.
Bus 230 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 200 typically includes a variety of electronic device readable media. Such media may be any available media that is accessible by electronic device 200 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 210 may also include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)240 and/or cache memory 250. The server 200 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 260 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 230 by one or more data media interfaces. Memory 210 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the disclosure.
A program/utility 280 having a set (at least one) of program modules 270, including but not limited to an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may comprise an implementation of a network environment, may be stored in, for example, the memory 210. The program modules 270 generally perform the functions and/or methodologies of the embodiments described in this disclosure.
Electronic device 200 may also communicate with one or more external devices 290 (e.g., keyboard, pointing device, display 291, etc.), with one or more devices that enable a user to interact with electronic device 200, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 200 to communicate with one or more other computing devices. Such communication may occur via input/output (I/O) interfaces 292. Also, the electronic device 200 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 293. As shown, the network adapter 293 communicates with the other modules of the electronic device 200 via the bus 230. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 200, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processor 220 executes various functional applications and data processing by executing programs stored in the memory 210.
It should be noted that, for the implementation process and the technical principle of the electronic device of the embodiment, reference is made to the foregoing explanation of the information obtaining method of the subject matter of the embodiment of the present disclosure, and details are not described here again.
The electronic device provided by the embodiment of the disclosure inquires whether price information corresponding to target object identification information exists in a price cache server or not when a price check request for the target object is received, and acquires latest price information corresponding to the target object identification information from the price cache server and returns the latest price information when the price information corresponding to the target object identification information exists in the price cache server. Therefore, under the condition that the price of the object needs to be checked, the latest price information of the object can be obtained from the price cache server, the price database is prevented from being accessed frequently, the access pressure of the price database is reduced, and the efficiency of obtaining the latest price information of the object can be improved.
In order to implement the above embodiments, the embodiments of the present disclosure further provide a storage medium.
Wherein the instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the foregoing information acquisition method of the subject matter.
To achieve the above embodiments, the present disclosure also provides a computer program product, which, when executed by a processor of an electronic device, enables the electronic device to perform the foregoing information acquisition method of the subject matter.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (15)

1. An information acquisition method for a subject matter, characterized by comprising:
receiving a price viewing request, wherein the price viewing request comprises target identification information;
responding to the price checking request, and inquiring whether price information corresponding to the target object identification information exists in a price cache server or not;
and if the price information corresponding to the target object identification information exists in the price cache server, acquiring the latest price information corresponding to the target object identification information from the price cache server, and returning the latest price information.
2. The method of claim 1, further comprising:
and under the condition that the price information corresponding to the target object identification information does not exist in the price cache server, acquiring the latest price information corresponding to the target object identification information from a database, and returning the latest price information.
3. The method of claim 1, wherein prior to said receiving a price review request, the method further comprises:
acquiring the latest bid price corresponding to the target object identification information from a database;
and taking the latest bid price as the latest price information, and caching the latest price information into the price cache server.
4. The method of claim 3, wherein the obtaining a latest bid price corresponding to the object identification information from the database comprises:
receiving a price query request, wherein the price query request comprises the object identification information of the object;
acquiring the receiving time of the price inquiry request;
obtaining, from the database, a plurality of bid prices and a plurality of bid times corresponding to the respective bid prices and the respective bid prices corresponding to the target object identification information;
obtaining a target bidding time with the minimum time difference value with the receiving time according to the bidding time corresponding to each of the plurality of bidding prices;
and taking the bid price corresponding to the target bid time as the latest bid price.
5. The method according to claim 3 or 4, wherein before the obtaining of the latest bid price corresponding to the target object identification information from the database, the method further comprises:
receiving a bid request, wherein the bid request comprises bid price information corresponding to the target object identification information;
acquiring the receiving time of the bid request, and taking the receiving time of the bid request as the bid time;
and deleting the price information corresponding to the target object identification information in the price cache server and storing the bid price information and the bid time in a database when the price information of the target object identification information exists in the price cache server.
6. The method of claim 5, further comprising:
and storing the bid price information and the bid time in a database when the price information of the target object identification information does not exist in the price cache server.
7. An information acquisition apparatus of a subject matter, characterized by comprising:
a first receiving module configured to receive a price viewing request, wherein the price viewing request includes target identification information;
the query module is configured to respond to the price checking request and query whether price information corresponding to the target object identification information exists in the price cache server or not;
a first processing module configured to, when price information corresponding to the target object identification information exists in the price cache server, acquire latest price information corresponding to the target object identification information from the price cache server, and return the latest price information.
8. The apparatus of claim 7, further comprising:
a second processing module configured to, when price information corresponding to the target object identification information does not exist in the price cache server, obtain latest price information corresponding to the target object identification information from a database, and return the latest price information.
9. The apparatus of claim 7, further comprising:
a first obtaining module configured to obtain a latest bid price corresponding to the target object identification information from a database;
a caching module configured to take the latest bid price as the latest price information and cache the latest price information in the price caching server.
10. The apparatus of claim 9, wherein the first obtaining module comprises:
a receiving unit configured to receive a price query request, wherein the price query request includes the object identification information of the object;
a first obtaining unit configured to obtain a reception time of the price inquiry request;
a second acquisition unit configured to acquire, from the database, a plurality of bid prices corresponding to the target object identification information and a plurality of bid times corresponding to the respective bid prices;
a third obtaining unit configured to obtain a target bid time having a smallest time difference with the reception time, according to a bid time corresponding to each of the plurality of bid prices;
a determination unit configured to take a bid price corresponding to the target bid time as the latest bid price.
11. The apparatus of claim 9 or 10, further comprising:
a second receiving module configured to receive a bid request, wherein the bid request includes bid price information corresponding to the target object identification information;
a second obtaining module configured to obtain a receiving time of the bid request and take the receiving time of the bid request as a bid time;
a third processing module configured to delete price information corresponding to the target object identification information in the price cache server and store the bid price information and the bid time in a database, when the price information of the target object identification information exists in the price cache server.
12. The apparatus of claim 11, further comprising:
a fourth processing module configured to save the bid price information and the bid time in a database in a case where price information of the target object identification information does not exist in the price cache server.
13. An electronic device, comprising:
a processor;
a memory for storing the processor-executable instructions;
wherein the processor is configured to execute the instructions to implement the method of any one of claims 1 to 6.
14. A storage medium having instructions that, when executed by a processor of an electronic device, enable the electronic device to perform the method of any of claims 1-6.
15. A computer program product comprising a computer program, characterized in that the computer program realizes the method of any of claims 1-6 when executed by a processor.
CN202111274710.XA 2021-10-29 2021-10-29 Method and device for acquiring information of object, electronic equipment and storage medium Pending CN114168623A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111274710.XA CN114168623A (en) 2021-10-29 2021-10-29 Method and device for acquiring information of object, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111274710.XA CN114168623A (en) 2021-10-29 2021-10-29 Method and device for acquiring information of object, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114168623A true CN114168623A (en) 2022-03-11

Family

ID=80477523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111274710.XA Pending CN114168623A (en) 2021-10-29 2021-10-29 Method and device for acquiring information of object, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114168623A (en)

Similar Documents

Publication Publication Date Title
CN111090628A (en) Data processing method and device, storage medium and electronic equipment
CN108959430B (en) Advertisement promotion data acquisition method, device and equipment
CN110175306B (en) Method and device for processing advertisement information
US20120079009A1 (en) Method and apparatus for choosing resources based on context and inheritance
CA3154763A1 (en) Data operation method, device and system
CN112580315A (en) Webpage table display method and device, terminal equipment and medium
US20200348840A1 (en) System and method for event driven storage management
US20220078161A1 (en) Method and apparatus for advertisement anti-blocking
CN113760977A (en) Information query method, device, equipment and storage medium
CN112100092B (en) Information caching method, device, equipment and medium
CN112395297A (en) Method, device and server for synchronizing work information
CN111881381A (en) Display method, device, equipment and storage medium
CN111985760A (en) Data content evaluation method and device, electronic equipment and storage medium
CN111767481A (en) Access processing method, device, equipment and storage medium
CN114168623A (en) Method and device for acquiring information of object, electronic equipment and storage medium
CN116028696A (en) Resource information acquisition method and device, electronic equipment and storage medium
CN113254819B (en) Page rendering method, system, equipment and storage medium
CN113110846A (en) Method and device for acquiring environment variable
CN112860750A (en) Data processing method and device, electronic equipment and storage medium
CN112099771A (en) Data processing method and device, electronic equipment and storage medium
CN107045549B (en) Method and device for acquiring page number of electronic book
CN111984857A (en) Information pushing method and device, electronic equipment and storage medium
CN113574518A (en) In-memory normalization of cache objects for reduced cache memory footprint
CN116048468A (en) Method, device, electronic equipment and medium for loading cache data and processing data
CN113988893B (en) Commodity information processing method, device, equipment and storage medium

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