CN114371864A - Information updating method and device, electronic equipment and storage medium - Google Patents

Information updating method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114371864A
CN114371864A CN202210028813.6A CN202210028813A CN114371864A CN 114371864 A CN114371864 A CN 114371864A CN 202210028813 A CN202210028813 A CN 202210028813A CN 114371864 A CN114371864 A CN 114371864A
Authority
CN
China
Prior art keywords
information
target object
server
received
associated information
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
CN202210028813.6A
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 Dajia Internet Information Technology Co Ltd
Original Assignee
Beijing Dajia Internet 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 Dajia Internet Information Technology Co Ltd filed Critical Beijing Dajia Internet Information Technology Co Ltd
Priority to CN202210028813.6A priority Critical patent/CN114371864A/en
Publication of CN114371864A publication Critical patent/CN114371864A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The present disclosure relates to an information updating method, apparatus, electronic device and storage medium, including: receiving an object information change request, wherein the object information change request comprises various associated information of a target object required to be displayed in an object display page; comparing the received various associated information of the target object with the various associated information of the target object stored by the server; and updating the target associated information of the target object stored by the server according to the comparison result so as to provide the updated associated information of the target object in the object display page, wherein the target associated information is inconsistent with the received associated information of the target object. According to the method and the device, the processing pressure of the server for updating the object information can be greatly reduced, so that the information of the object can be ensured to be updated in time.

Description

Information updating method and device, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to an information updating method and apparatus, an electronic device, and a storage medium.
Background
With the development of science and technology, a plurality of agents can reside in the resource platform to display their own resources, for example, the resource agents can issue information of the resources through the resource platform, so that users can select the resources according to the information of the resources. And the resource main body can modify the information of the resources released on the resource platform according to the real-time actual need.
If multiple resource agents on the resource platform want to modify the information of the published resource at the same time, it may cause the server of the resource platform to crash due to too much processing pressure. In order to solve the above problem, in the related art, the information of the published resource may be allowed to be modified for different resource subjects in different time periods; or, only a certain number of resource subjects are allowed to modify the resource information at the same time, and other resource subjects with resource information modification needs to wait in a queue. This may cause the resource agent not to modify the information of the issued resource in time, resulting in delay of information update of the resource.
Disclosure of Invention
The present disclosure provides an information updating method, apparatus, electronic device and storage medium to at least solve the problem of information updating delay of resources in the related art described above.
According to a first aspect of the embodiments of the present disclosure, there is provided an information updating method applied to a server, the method including: receiving an object information change request, wherein the object information change request comprises various associated information of a target object required to be displayed in an object display page; comparing the received various associated information of the target object with the various associated information of the target object stored by the server; and updating the target associated information of the target object stored by the server according to the comparison result so as to provide the updated associated information of the target object in the object display page, wherein the target associated information is inconsistent with the received associated information of the target object.
Optionally, the comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server includes: determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server; wherein, according to the comparison result, updating the target associated information of the target object stored by the server includes: for each kind of association information, when the received kind of association information of the target object is different from the kind of association information of the target object stored by the server, replacing the kind of association information of the target object stored by the server with the received kind of association information of the target object.
Optionally, the server stores a plurality of kinds of associated information of each object in a field form; the determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server includes: respectively determining whether the received field value of the object information field of the target object is the same as the field value of the object information field of the target object stored by the server or not aiming at each object information field, wherein each object information field is in one-to-one correspondence with each kind of associated information; wherein, for each type of association information, when the received type of association information of the target object is different from the type of association information of the target object stored by the server, replacing the type of association information of the target object stored by the server with the received type of association information of the target object includes: replacing, for each object information field, a received field value of the object information field of the target object with a received field value of the object information field of the target object, when it is determined that the received field value of the object information field of the target object is different from a field value of the object information field of the target object, which has been stored by the server.
Optionally, the determining whether each received type of association information of the target object is the same as that stored by the server includes: and calling a difference searching tool configured in advance, and comparing whether each type of received associated information of the target object is the same as the type of associated information of the target object stored by the server or not through the difference searching tool.
Optionally, before the step of comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server, the information updating method further includes: determining a type of a database of the server; under the condition that the type of the database of the server is a memory database, replacing the various associated information of the target object stored in the memory database with the received various associated information of the target object; and under the condition that the type of the database of the server is not the memory database, executing the step of comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server.
Optionally, the multiple kinds of associated information of the target object at least include information of an object attribute dimension and information of an object replacement dimension; the comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server includes: comparing the received information of the object attribute dimension of the target object with the information of the object attribute dimension of the target object stored by the server, and comparing the received information of the object replacement dimension of the target object with the information of the object replacement dimension of the target object stored by the server.
According to a second aspect of the embodiments of the present disclosure, there is provided an information updating apparatus including: the object information display method comprises a receiving module, a display module and a display module, wherein the receiving module is configured to receive an object information change request, and the object information change request comprises various associated information of a target object required to be displayed in an object display page; the comparison module is configured to compare the received various kinds of associated information of the target object with various kinds of associated information of the target object stored by a server; and the updating module is configured to update the target associated information of the target object, which is stored by the server, according to the comparison result, so as to provide the updated associated information of the target object in the object display page, wherein the target associated information is information inconsistent with the received associated information of the target object.
Optionally, the alignment module is configured to: determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server; the update module is configured to: for each kind of association information, when the received kind of association information of the target object is different from the kind of association information of the target object stored by the server, replacing the kind of association information of the target object stored by the server with the received kind of association information of the target object.
Optionally, the server stores a plurality of kinds of associated information of each object in a field form; the alignment module is configured to: respectively determining whether the received field value of the object information field of the target object is the same as the field value of the object information field of the target object stored by the server or not aiming at each object information field, wherein each object information field is in one-to-one correspondence with each kind of associated information; the update module is configured to: replacing, for each object information field, a received field value of the object information field of the target object with a received field value of the object information field of the target object, when it is determined that the received field value of the object information field of the target object is different from a field value of the object information field of the target object, which has been stored by the server.
Optionally, the alignment module is configured to: and calling a difference searching tool configured in advance, and comparing whether each type of received associated information of the target object is the same as the type of associated information of the target object stored by the server or not through the difference searching tool.
Optionally, the information updating apparatus further includes: a determination module configured to determine a type of a database of the server; the replacing module is configured to replace the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object, which is stored in the memory database, under the condition that the type of the database of the server is the memory database; an execution module configured to execute the step of comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server, if the type of the database of the server is not an in-memory database.
Optionally, the multiple kinds of associated information of the target object at least include information of an object attribute dimension and information of an object replacement dimension; the alignment module is configured to: comparing the received information of the object attribute dimension of the target object with the information of the object attribute dimension of the target object stored by the server, and comparing the received information of the object replacement dimension of the target object with the information of the object replacement dimension of the target object stored by the 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 an information updating method according to the present disclosure.
According to a fourth aspect of embodiments of the present disclosure, there is provided a computer-readable storage medium in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform an information updating method according to the present disclosure.
According to a fifth aspect of embodiments of the present disclosure, there is provided a computer program resource comprising a computer program which, when executed by a processor, implements an information updating method according to the present disclosure.
The technical scheme provided by the embodiment of the disclosure at least brings the following beneficial effects:
the method and the device can update the associated information of the target object according to the comparison result of the received various associated information of the target object and the various associated information of the target object stored by the server, and not directly replace all the various associated information of the target object stored by the server with the received various associated information of the target object (namely, update all the associated information of the target object stored by the server), so that the processing pressure of the server is greatly reduced. The information updating method provided by the disclosure can greatly reduce the processing pressure of the server, so that the resource main body can modify the information of the object at any time according to the requirement, and the resource main body is not required to modify the information of the object at different time intervals, and is not required to queue up to modify the information of the object. Different resource subjects can modify the information of the object in time, and the information of the object can be timely updated.
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 an application scenario diagram illustrating an information updating method according to an exemplary embodiment of the present disclosure;
FIG. 2 is a flowchart illustrating an information update method according to an exemplary embodiment of the present disclosure;
FIG. 3 is a schematic diagram illustrating a particular implementation of an information update method according to an exemplary embodiment of the present disclosure;
fig. 4 is a block diagram illustrating an information updating apparatus according to an exemplary embodiment of the present disclosure;
fig. 5 is a block diagram illustrating an electronic device according to an exemplary 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 embodiments described in the following examples do not represent all embodiments 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.
In this case, the expression "at least one of the items" in the present disclosure means a case where three types of parallel expressions "any one of the items", "a combination of any plural ones of the items", and "the entirety of the items" are included. For example, "include at least one of a and B" includes the following three cases in parallel: (1) comprises A; (2) comprises B; (3) including a and B. For another example, "at least one of the first step and the second step is performed", which means that the following three cases are juxtaposed: (1) executing the step one; (2) executing the step two; (3) and executing the step one and the step two.
Fig. 1 is an application scenario diagram illustrating an information updating method according to an exemplary embodiment of the present disclosure.
Referring to fig. 1, a server 101 may receive an object information change request transmitted from a user terminal (e.g., a mobile phone 103_1, a computer 103_2, a tablet computer 103_3, etc.) through a network 102. By applying the information updating method disclosed by the invention to the scene, the associated information of the target object can be updated according to the comparison result of the received various associated information of the target object and the various associated information of the target object stored by the server, instead of directly replacing the various associated information of the target object stored by the server with the received various associated information of the target object (namely, updating the associated information of the target object stored by the server all at once), and the processing pressure of the server is greatly reduced. The information updating method provided by the disclosure can greatly reduce the processing pressure of the server, so that the resource main body can modify the information of the object at any time according to the requirement, and the resource main body is not required to modify the information of the object at different time intervals, and is not required to queue up to modify the information of the object. Different resource subjects can modify the information of the object in time, and the information of the object can be timely updated.
Fig. 2 is a flowchart illustrating an information updating method according to an exemplary embodiment of the present disclosure, applied to a server.
Referring to fig. 2, in step 201, an object information change request may be received. The object information change request may include various associated information of the target object that needs to be displayed on the object presentation page. The target object may be an object such as clothing, daily necessities, cosmetics, or food, and the disclosure is not limited thereto.
In step 202, the received various association information of the target object may be compared with various association information of the target object already stored by the server.
According to an exemplary embodiment of the present disclosure, the plurality of kinds of association information of the target object may include at least information of an object attribute dimension and information of an object replacement dimension. The received information of the object attribute dimension of the target object may be compared with information of the object attribute dimension of the target object already stored by the server, and the received information of the object replacement dimension of the target object may be compared with information of the object replacement dimension of the target object already stored by the server. The information of the object attribute dimension may include at least one of an object name, an object inventory, an object picture, an object size, and an object color, and the information of the object replacement dimension may include at least one of an object fallback rule and an object quantity limit rule. It should be noted that there may be many associated information for each object, but not every associated information needs to be updated frequently, and in fact, most associated information does not change frequently, for example, object name, object picture, object color, and so on. There is less associated information that may change frequently, e.g., object inventory, etc.
In step 203, the target associated information of the target object stored by the server may be updated according to the comparison result, so as to provide the updated associated information of the target object in the object display page. The target associated information is information inconsistent with the received associated information of the target object.
According to an exemplary embodiment of the present disclosure, it may be determined whether each type of association information of the received target object is the same as that type of association information of the target object already stored by the server. For each type of association information, when the type of association information of the received target object is different from the type of association information of the target object already stored by the server, the type of association information of the target object already stored by the server may be replaced with the type of association information of the received target object. When the received type of association information of the target object is the same as the type of association information of the target object already stored by the server, the type of association information of the target object already stored by the server may not be updated.
According to an exemplary embodiment of the present disclosure, the server may store a variety of association information of each object in the form of a field. For each object information field, it may be determined whether a field value of the object information field of the received target object is the same as a field value of the object information field of the target object already stored by the server. And each object information field corresponds to each kind of associated information one by one.
For example, after receiving an object information change request sent by a terminal of a resource subject, the server may compare a field value of a field of an object name of a received target object with a field value of a field of an object name of a target object already stored by the server; the received field value of the field of the object color of the target object may be compared with the field value of the field of the object color of the target object already stored by the server, and so on.
Next, for each object information field, when it is determined that a field value of the object information field of the received target object is different from a field value of the object information field of the target object already stored by the server, the field value of the object information field of the target object already stored by the server may be replaced with the field value of the object information field of the received target object.
For example, if the resource body only modifies the target object's inventory, the server may only update the field value of this field of the target object's object inventory from the previously stored field value to the received field value. While other associated information for the target object, i.e., other object information fields for the target object, such as object name, object picture, object size, object color, object fallback rules, object quota rules, etc., the field value of each of these other object information fields may be maintained as the previously stored field value.
It should be noted that, after the resource main body modifies only one or some related information of the object, for example, only modifies the object inventory, all related information related to the object will be sent to the server. In the related art, after the server receives the object information change request, all the associated information is updated in a full coverage manner no matter whether the associated information changes, but actually, the associated information which really needs to be updated is very little, and most of the associated information does not need to be updated. Therefore, the method of directly performing full-coverage update on all the associated information wastes many computing resources, resulting in excessive processing pressure of the server.
In the disclosure, only the changed associated information is updated, and the unchanged associated information, that is, the associated information of the resource main body is not modified, is not updated, so that the waste of computing resources can be avoided, and the pressure of the server is greatly reduced. Different resource subjects can modify the information of the object in time, and the information of the object can be updated on time.
According to an exemplary embodiment of the present disclosure, a pre-configured difference search tool may be invoked, by which it is compared whether each type of association information of the received target object is the same as that of the target object already stored by the server. For example, the difference lookup tool may be a diff tool. That is, each of the plurality of object information fields of the target object may be passed diff by diff using the diff tool. After Diff, if the field values of some object information fields are found to be changed, updating the field values of the changed object information fields, namely writing the received field values of the changed object information fields into the changed object information fields of the server; aiming at the object information field without field value change, unnecessary updating operation can not be carried out, the pressure of the server is greatly reduced, and the computing resource is saved. And, use diff instrument can not produce extra spending, use cost is lower.
According to an exemplary embodiment of the present disclosure, the type of the database of the server may also be determined. Under the condition that the type of the database of the server is the memory database, the various associated information of the target object stored in the memory database can be directly replaced by the received various associated information of the target object; in the case that the type of the database of the server is not the in-memory database, the received multiple kinds of associated information of the target object may be compared with the multiple kinds of associated information of the target object already stored by the server. It should be noted that, compared to the disk database, the data processing speed of the in-memory database is faster, and generally can reach more than 10 times of the data processing speed of the disk database. Therefore, if the server uses the in-memory database, the mode of updating only the changed associated information is not adopted, and all the associated information can be directly updated in a full coverage manner. At the moment, due to the faster data processing speed of the memory database, the number of resource main bodies of the object information is not limited on line in time period; or, the resource main bodies are not limited to modify the information of the objects in a queuing mode any more, the server is not crashed due to overlarge pressure, different resource main bodies can still modify the information of the objects in time, and the information of the objects can be updated on time.
It should be noted that although the data processing speed of the in-memory database is much faster than that of the disk database, the in-memory database is expensive and the use cost is high. Therefore, a disk database or an in-memory database can be selected and used according to actual conditions. If the server uses a disk database, the changed object information field can be determined by using a diff tool, and then only the field value of the changed object information field is updated, so that the pressure of the server can be reduced, the object information can be ensured to be updated on time, and the use cost is lower; in-memory databases can be used if higher data processing speeds are sought. At this time, even if all the associated information is directly updated in a full coverage manner, the number of resource bodies for modifying the object information online is not limited, the server is not crashed due to excessive pressure, the object information can still be ensured to be updated on time, and the use cost at this time is only greatly increased.
Fig. 3 is a schematic diagram illustrating a specific implementation of an information updating method according to an exemplary embodiment of the present disclosure.
Referring to fig. 3, in step 301, an object information change request may be received.
It should be noted that the object information change request may include various associated information of the target object that needs to be displayed in the object presentation page, such as an object name, an object inventory, an object picture, an object size, an object color, an object fallback rule, an object quota rule, and the like.
In step 302, a diff tool is called, and the received various association information of the target object and the various association information of the target object stored by the server are passed through the diff tool one by one.
For example, the received association information of the object name of the target object may be compared with the association information of the object name of the target object already stored by the server; the received association information of the object color of the target object may be compared with the association information of the object color of the target object already stored by the server, and the like.
In step 303, if a change in some kind of association information of the target object is found, the changed association information may be updated, that is, the association information of the target object already stored by the server may be replaced with the received association information of the target object.
In step 304, if the various associated information of the target object is found to have not changed, the various associated information of the target object that has been stored by the server is not updated.
Fig. 4 is a block diagram illustrating an information updating apparatus according to an exemplary embodiment of the present disclosure.
Referring to fig. 4, the apparatus 400 may include a receiving module 401, an comparing module 402, and an updating module 403.
A receiving module 401 configured to receive an object information change request, where the object information change request includes multiple kinds of associated information of a target object that needs to be displayed in an object display page;
a comparison module 402 configured to compare the received multiple kinds of associated information of the target object with multiple kinds of associated information of the target object stored by a server;
an updating module 403, configured to update, according to the comparison result, target associated information of the target object that has been stored by the server, so as to provide updated associated information of the target object in the object display page, where the target associated information is information inconsistent with the received associated information of the target object.
According to an exemplary embodiment of the present disclosure, the alignment module 402 is configured to:
determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server;
the update module 403 is configured to:
for each kind of association information, when the received kind of association information of the target object is different from the kind of association information of the target object stored by the server, replacing the kind of association information of the target object stored by the server with the received kind of association information of the target object.
According to an exemplary embodiment of the present disclosure, the server stores a variety of associated information of each object in the form of a field; the alignment module 402 is configured to:
respectively determining whether the received field value of the object information field of the target object is the same as the field value of the object information field of the target object stored by the server or not aiming at each object information field, wherein each object information field is in one-to-one correspondence with each kind of associated information;
the update module 403 is configured to:
replacing, for each object information field, a received field value of the object information field of the target object with a received field value of the object information field of the target object, when it is determined that the received field value of the object information field of the target object is different from a field value of the object information field of the target object, which has been stored by the server.
According to an exemplary embodiment of the present disclosure, the alignment module 402 is configured to:
and calling a difference searching tool configured in advance, and comparing whether each type of received associated information of the target object is the same as the type of associated information of the target object stored by the server or not through the difference searching tool.
According to an exemplary embodiment of the present disclosure, the information updating apparatus 400 may further include:
a determination module configured to determine a type of a database of the server;
the replacing module is configured to replace the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object, which is stored in the memory database, under the condition that the type of the database of the server is the memory database;
an execution module configured to execute the step of comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server, if the type of the database of the server is not an in-memory database.
According to an exemplary embodiment of the present disclosure, the plurality of kinds of association information of the target object includes at least information of an object attribute dimension and information of an object replacement dimension;
the alignment module 402 is configured to:
comparing the received information of the object attribute dimension of the target object with the information of the object attribute dimension of the target object stored by the server, and comparing the received information of the object replacement dimension of the target object with the information of the object replacement dimension of the target object stored by the server.
Fig. 5 is a block diagram illustrating an electronic device 500 according to an exemplary embodiment of the present disclosure.
Referring to fig. 5, an electronic device 500 includes at least one memory 501 and at least one processor 502, the at least one memory 501 having instructions stored therein, which when executed by the at least one processor 502, perform an information updating method according to an exemplary embodiment of the present disclosure.
By way of example, the electronic device 500 may be a PC computer, tablet device, personal digital assistant, smart phone, or other device capable of executing the instructions described above. Here, the electronic device 500 need not be a single electronic device, but can be any collection of devices or circuits that can execute the above instructions (or sets of instructions) individually or in combination. The electronic device 500 may also be part of an integrated control system or system manager, or may be configured as a portable electronic device that interfaces with local or remote (e.g., via wireless transmission).
In the electronic device 500, the processor 502 may include a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), a programmable logic device, a special-purpose processor system, a microcontroller, or a microprocessor. By way of example, and not limitation, processors may also include analog processors, digital processors, microprocessors, multi-core processors, processor arrays, network processors, and the like.
The processor 502 may execute instructions or code stored in the memory 501, wherein the memory 501 may also store data. The instructions and data may also be transmitted or received over a network via a network interface device, which may employ any known transmission protocol.
The memory 501 may be integrated with the processor 502, for example, by having RAM or flash memory disposed within an integrated circuit microprocessor or the like. Further, memory 501 may comprise a stand-alone device, such as an external disk drive, storage array, or any other storage device usable by a database system. The memory 501 and the processor 502 may be operatively coupled or may communicate with each other, e.g., through I/O ports, network connections, etc., such that the processor 502 is able to read files stored in the memory.
In addition, the electronic device 500 may also include a video display (such as a liquid crystal display) and a user interaction interface (such as a keyboard, mouse, touch input device, etc.). All components of the electronic device 500 may be connected to each other via a bus and/or a network.
According to an exemplary embodiment of the present disclosure, there may also be provided a computer-readable storage medium, in which instructions, when executed by a processor of an electronic device, enable the electronic device to perform the above-described information updating method. Examples of the computer-readable storage medium herein include: read-only memory (ROM), random-access programmable read-only memory (PROM), electrically erasable programmable read-only memory (EEPROM), random-access memory (RAM), dynamic random-access memory (DRAM), static random-access memory (SRAM), flash memory, non-volatile memory, CD-ROM, CD-R, CD + R, CD-RW, CD + RW, DVD-ROM, DVD-R, DVD + R, DVD-RW, DVD + RW, DVD-RAM, BD-ROM, BD-R, BD-R LTH, BD-RE, Blu-ray or compact disc memory, Hard Disk Drive (HDD), solid-state drive (SSD), card-type memory (such as a multimedia card, a Secure Digital (SD) card or a extreme digital (XD) card), magnetic tape, a floppy disk, a magneto-optical data storage device, an optical data storage device, a hard disk, a magnetic tape, a magneto-optical data storage device, a hard disk, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, a magnetic tape, a magnetic data storage device, A solid state disk, and any other device configured to store and provide a computer program and any associated data, data files, and data structures to a processor or computer in a non-transitory manner such that the processor or computer can execute the computer program. The computer program in the computer-readable storage medium described above can be run in an environment deployed in a computer apparatus, such as a client, a host, a proxy device, a server, and the like, and further, in one example, the computer program and any associated data, data files, and data structures are distributed across a networked computer system such that the computer program and any associated data, data files, and data structures are stored, accessed, and executed in a distributed fashion by one or more processors or computers.
According to an exemplary embodiment of the present disclosure, a computer program product may also be provided, comprising a computer program which, when executed by a processor, implements an information updating method according to the present disclosure.
According to the information updating method, the information updating device, the electronic equipment and the storage medium, the associated information of the target object can be updated according to the comparison result of the received various associated information of the target object and the various associated information of the target object stored by the server, instead of directly replacing the various associated information of the target object stored by the server with the received various associated information of the target object (namely, updating the associated information of the target object stored by the server once), and the processing pressure of the server is greatly reduced. The information updating method provided by the disclosure can greatly reduce the processing pressure of the server, so that the resource main body can modify the information of the object at any time according to the requirement, and the resource main body is not required to modify the information of the object at different time intervals, and is not required to queue up to modify the information of the object. Different resource subjects can modify the information of the object in time, and the information of the object can be timely updated. Further, a diff tool may be utilized to pass each of the plurality of object information fields of the target object diff by diff. After Diff, if the field values of some object information fields are found to be changed, the field values of the object information fields which are changed are updated; aiming at the object information field without field value change, unnecessary updating operation can not be carried out, the pressure of the server is greatly reduced, and the computing resource is saved. And, use diff instrument can not produce extra spending, use cost is lower. Further, the server may use an in-memory database to store and update various association information for the objects. Compared with a disk database, the data processing speed of the memory database is higher, the memory database is used for storing and updating various associated information of the object, and the higher data processing speed can further ensure that the information of the object is updated on time.
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 (10)

1. An information updating method applied to a server, the method comprising:
receiving an object information change request, wherein the object information change request comprises various associated information of a target object required to be displayed in an object display page;
comparing the received various associated information of the target object with the various associated information of the target object stored by the server;
and updating the target associated information of the target object stored by the server according to the comparison result so as to provide the updated associated information of the target object in the object display page, wherein the target associated information is inconsistent with the received associated information of the target object.
2. The information updating method according to claim 1, wherein the comparing the received multiple kinds of association information of the target object with the multiple kinds of association information of the target object already stored by the server comprises:
determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server;
wherein, according to the comparison result, updating the target associated information of the target object stored by the server includes:
for each kind of association information, when the received kind of association information of the target object is different from the kind of association information of the target object stored by the server, replacing the kind of association information of the target object stored by the server with the received kind of association information of the target object.
3. The information updating method according to claim 2, wherein the server stores a plurality of kinds of associated information of the respective objects in the form of fields; the determining whether each received associated information of the target object is the same as the associated information of the target object stored by the server includes:
respectively determining whether the received field value of the object information field of the target object is the same as the field value of the object information field of the target object stored by the server or not aiming at each object information field, wherein each object information field is in one-to-one correspondence with each kind of associated information;
wherein, for each type of association information, when the received type of association information of the target object is different from the type of association information of the target object stored by the server, replacing the type of association information of the target object stored by the server with the received type of association information of the target object includes:
replacing, for each object information field, a received field value of the object information field of the target object with a received field value of the object information field of the target object, when it is determined that the received field value of the object information field of the target object is different from a field value of the object information field of the target object, which has been stored by the server.
4. The information updating method according to claim 2, wherein the determining whether each received type of association information of the target object is the same as the type of association information of the target object already stored by the server comprises:
and calling a difference searching tool configured in advance, and comparing whether each type of received associated information of the target object is the same as the type of associated information of the target object stored by the server or not through the difference searching tool.
5. The information updating method according to claim 1, wherein before the step of comparing the received plurality of kinds of associated information of the target object with the plurality of kinds of associated information of the target object already stored by the server, the information updating method further comprises:
determining a type of a database of the server;
under the condition that the type of the database of the server is a memory database, replacing the various associated information of the target object stored in the memory database with the received various associated information of the target object;
and under the condition that the type of the database of the server is not the memory database, executing the step of comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server.
6. The information updating method according to claim 1, wherein the plurality of kinds of associated information of the target object include at least information of an object attribute dimension and information of an object replacement dimension;
the comparing the received multiple kinds of associated information of the target object with the multiple kinds of associated information of the target object stored by the server includes:
comparing the received information of the object attribute dimension of the target object with the information of the object attribute dimension of the target object stored by the server, and comparing the received information of the object replacement dimension of the target object with the information of the object replacement dimension of the target object stored by the server.
7. An information updating apparatus, comprising:
the object information display method comprises a receiving module, a display module and a display module, wherein the receiving module is configured to receive an object information change request, and the object information change request comprises various associated information of a target object required to be displayed in an object display page;
the comparison module is configured to compare the received various kinds of associated information of the target object with various kinds of associated information of the target object stored by a server;
and the updating module is configured to update the target associated information of the target object, which is stored by the server, according to the comparison result, so as to provide the updated associated information of the target object in the object display page, wherein the target associated information is information inconsistent with the received associated information of the target object.
8. 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 information updating method of any one of claims 1 to 6.
9. A computer-readable storage medium, wherein instructions in the computer-readable storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the information updating method of any one of claims 1 to 6.
10. A computer program resource comprising a computer program, characterized in that the computer program, when being executed by a processor, implements the information updating method of any one of claims 1 to 6.
CN202210028813.6A 2022-01-11 2022-01-11 Information updating method and device, electronic equipment and storage medium Pending CN114371864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210028813.6A CN114371864A (en) 2022-01-11 2022-01-11 Information updating method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210028813.6A CN114371864A (en) 2022-01-11 2022-01-11 Information updating method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114371864A true CN114371864A (en) 2022-04-19

Family

ID=81144668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210028813.6A Pending CN114371864A (en) 2022-01-11 2022-01-11 Information updating method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114371864A (en)

Similar Documents

Publication Publication Date Title
CN110377851B (en) Method and device for realizing multi-stage linkage drop-down frame and computer equipment
EP3252592A1 (en) Method and device for storing and reading data
US7143340B2 (en) Row sharing techniques for grid controls
EP3260993A1 (en) File operation method and device
CN110245069B (en) Page version testing method and device and page display method and device
US20170153909A1 (en) Methods and Devices for Acquiring Data Using Virtual Machine and Host Machine
CN105488125A (en) Page access method and apparatus
CN111061533A (en) Page multi-language display method and device, electronic equipment and computer storage medium
CN103597464A (en) Techniques for adapting an interpretive runtime application to multiple clients
US11429311B1 (en) Method and system for managing requests in a distributed system
CN116467975B (en) Data processing method, device, electronic equipment and storage medium
CN113918853A (en) Configuration method and configuration device of information display mode
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
CN109240660B (en) Access method of advertisement data, storage medium, electronic device and system
CN114371864A (en) Information updating method and device, electronic equipment and storage medium
US9230022B1 (en) Customizable result sets for application program interfaces
US11860889B2 (en) Cascading data impact visualization tool
CN115617338A (en) Method and device for quickly generating service page and readable storage medium
CN113268183B (en) List page countdown display method and device
CN113609152A (en) Data processing method and device and computing equipment
CN110188297B (en) Resource information display method, computing device and computer storage medium
US11816088B2 (en) Method and system for managing cross data source data access requests
CN114546241A (en) Video editing method and device, electronic equipment and storage medium
CN114996002A (en) Server resource allocation method and device, electronic equipment and storage medium
CN112527249A (en) Window processing method and device, electronic 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