CN111859200B - Method, device and equipment for updating mark of target object - Google Patents

Method, device and equipment for updating mark of target object Download PDF

Info

Publication number
CN111859200B
CN111859200B CN202010559817.8A CN202010559817A CN111859200B CN 111859200 B CN111859200 B CN 111859200B CN 202010559817 A CN202010559817 A CN 202010559817A CN 111859200 B CN111859200 B CN 111859200B
Authority
CN
China
Prior art keywords
target object
mark
current
updating
priority
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.)
Active
Application number
CN202010559817.8A
Other languages
Chinese (zh)
Other versions
CN111859200A (en
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.)
Koubei Shanghai Information Technology Co Ltd
Original Assignee
Koubei Shanghai 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 Koubei Shanghai Information Technology Co Ltd filed Critical Koubei Shanghai Information Technology Co Ltd
Priority to CN202010559817.8A priority Critical patent/CN111859200B/en
Publication of CN111859200A publication Critical patent/CN111859200A/en
Application granted granted Critical
Publication of CN111859200B publication Critical patent/CN111859200B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/955Retrieval from the web using information identifiers, e.g. uniform resource locators [URL]
    • G06F16/9562Bookmark management
    • 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/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • G06Q30/0257User requested
    • G06Q30/0258Registration
    • 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/0241Advertisements
    • G06Q30/0277Online advertisement

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • General Engineering & Computer Science (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application discloses a method for updating a mark of a target object, which is characterized by comprising the following steps: obtaining an update request for updating the mark of the target object; according to the update request, the priority of the current update operation and the time stamp information of the current update operation are obtained; and carrying out updating operation on the mark of the target object according to the priority of the current updating operation and the time stamp information of the current updating operation. By adopting the method, the problems that the marking method of the target object in the prior art cannot update the mark of the target object in real time and cannot meet the service scene with higher real-time requirement can be solved.

Description

Method, device and equipment for updating mark of target object
Technical Field
The present application relates to the field of computer technology, and in particular, to a method for updating a target object, a device for updating a target object, an electronic device, and a computer-readable storage medium.
Background
The electronic commerce field has a directional delivery scene, namely, a specific commodity can only be seen by a specific crowd in a specific period (such as a great promotion), and each user needs to be marked in the scene.
In the prior art, a common target object marking scheme is to judge whether the characteristic data of a target object accords with a corresponding rule based on the offline characteristic data and the rule of the target object. In some business scenarios, the marking state of a specific target object needs to be changed in real time, for example, when a user places an order, a new person mark of the user is removed, and after the order is placed, a new person commodity cannot be seen, so that the user enjoys the new person preference. The marking result of the user needs to be updated in real time in the scene, and the traditional marking scheme cannot meet the service scene.
In summary, the target object marking method in the prior art cannot update the mark of the target object in real time, and cannot meet the service scenario with high real-time requirements.
Disclosure of Invention
The embodiment of the invention provides a target object mark updating method, electronic equipment and a computer readable storage medium, which are used for solving the problems that the target object mark cannot be updated in real time and a service scene with higher real-time requirement cannot be met in the target object marking method in the prior art.
In a first aspect, an embodiment of the present invention provides a method for updating a tag of a target object, including:
obtaining an update request for updating the mark of the target object;
according to the update request, the priority of the current update operation and the time stamp information of the current update operation are obtained;
And carrying out updating operation on the mark of the target object according to the priority of the current updating operation and the time stamp information of the current updating operation.
As one embodiment, the obtaining, according to the update request, the priority of the current update operation and the timestamp information of the current update operation includes:
and if the mark of the target object is not in a writing forbidden state, acquiring the priority of the current updating operation and the time stamp information of the current updating operation according to the updating request.
As an embodiment, after the step of obtaining the update request for updating the tag of the target object, the method further includes: and if the mark of the update request is in a write-forbidden state, storing the update request.
As one embodiment, the updating the mark of the target object according to the priority of the current updating operation and the timestamp information of the current updating operation includes:
If the priority of the current updating operation is greater than the priority of the operation of last modifying the mark of the target object, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if the priority of the current updating operation is smaller than that of the operation of last modifying the mark of the target object, not updating the mark of the target object;
if the priority of the current update operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to update the mark of the target object according to the time stamp information of the current update operation.
As one embodiment, if the priority of the current update operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to perform the update operation on the mark of the target object according to the timestamp information of the current operation includes:
If the priority of the current updating operation is equal to the priority of the operation of last modifying the mark of the target object, and the time indicated by the time stamp information of the current updating operation is after the time indicated by the time stamp information of the last modifying the mark of the target object, updating the mark of the target object and storing the time stamp information of the current operation;
If the priority of the current update operation is equal to the priority of the operation of last modifying the tag of the target object and the time indicated by the time stamp information of the current operation is before the time indicated by the time stamp information of the operation of last modifying the tag of the target object, the update operation is not performed on the tag of the target object.
As an implementation manner, the embodiment of the present invention further includes:
the priority of the operation of last modifying the marking of the target object and the time stamp information of the operation of last modifying the marking of the target object are obtained.
As one embodiment, the updating the mark of the target object according to the priority of the current updating operation and the timestamp information of the current updating operation includes:
Judging whether the mark of the target object is the first marking;
if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if not, the mark of the target object is updated according to the priority of the current updating operation and the time stamp information of the current updating operation.
As an implementation manner, the embodiment of the present invention further includes:
and obtaining the mark of the target object and sending the mark to the client.
As an embodiment, the update request includes at least one of the following information:
identification information of the target object;
identification information of the mark of the target object;
Priority information of the current operation;
timestamp information of the current operation.
In a second aspect, an embodiment of the present invention provides a tag updating apparatus for a target object, including:
An update request obtaining unit configured to obtain an update request for updating a marker of a target object;
An information obtaining unit, configured to obtain, according to the update request, a priority of a current update operation and timestamp information of the current update operation;
and the mark updating unit is used for updating the mark of the target object according to the priority of the current updating operation and the timestamp information of the current updating operation.
As an embodiment, the information obtaining unit is specifically configured to:
and if the mark of the target object is not in a writing forbidden state, acquiring the priority of the current updating operation and the time stamp information of the current updating operation according to the updating request.
As an embodiment, the apparatus further comprises: and an update request storage unit configured to store an update request for a tag of a target object if the tag of the update request is in a write-disabled state after the step of obtaining the update request for updating the tag.
As an embodiment, the tag updating unit is specifically configured to:
If the priority of the current updating operation is greater than the priority of the operation of last modifying the mark of the target object, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if the priority of the current updating operation is smaller than that of the operation of last modifying the mark of the target object, not updating the mark of the target object;
if the priority of the current update operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to update the mark of the target object according to the time stamp information of the current update operation.
As an embodiment, the tag updating unit is specifically configured to:
If the priority of the current updating operation is equal to the priority of the operation of last modifying the mark of the target object, and the time indicated by the time stamp information of the current updating operation is after the time indicated by the time stamp information of the last modifying the mark of the target object, updating the mark of the target object and storing the time stamp information of the current operation;
If the priority of the current update operation is equal to the priority of the operation of last modifying the tag of the target object and the time indicated by the time stamp information of the current operation is before the time indicated by the time stamp information of the operation of last modifying the tag of the target object, the update operation is not performed on the tag of the target object.
As an embodiment, the apparatus further comprises: information obtaining unit for last modification of
The priority of the operation of last modifying the marking of the target object and the time stamp information of the operation of last modifying the marking of the target object are obtained.
As an embodiment, the tag updating unit is specifically configured to:
Judging whether the mark of the target object is the first marking;
if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if not, the mark of the target object is updated according to the priority of the current updating operation and the time stamp information of the current updating operation.
As an embodiment, the apparatus further comprises:
And the mark sending unit is used for obtaining the mark of the target object and sending the mark to the client.
As an embodiment, the update request includes at least one of the following information:
identification information of the target object;
identification information of the mark of the target object;
priority information of the current update operation;
timestamp information of the current update operation.
In a third aspect, an embodiment of the present invention provides an electronic device, including:
A processor;
A memory for storing a program which, when read for execution by the processor, performs the method according to any one of the embodiments of the present invention in the first aspect.
In a fourth aspect, embodiments of the present invention provide a computer-readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, performs a method according to any one of the embodiments of the present invention
Compared with the prior art, the invention has the following advantages:
The invention provides a method, a device, an electronic device and a computer readable storage medium for updating a mark of a target object, which comprise the following steps: obtaining an update request for updating the mark of the target object; according to the update request, the priority of the current update operation and the time stamp information of the current update operation are obtained; and carrying out updating operation on the mark of the target object according to the priority of the current updating operation and the time stamp information of the current updating operation. According to the method provided by the invention, the mark of the target object is updated according to the priority of the current operation and the timestamp information of the current operation, so that the real-time marking of the target object is realized, and the problem that the mark of the target object cannot be updated in real time and a service scene with higher real-time requirement cannot be met in the target object marking method in the prior art is solved.
Drawings
Fig. 1 is a flowchart of a method for updating a target object according to a first embodiment of the present invention.
Fig. 2 is a flowchart of another method for updating a tag of a target object according to the first embodiment of the present invention.
Fig. 3 is a schematic diagram of a target object marker updating apparatus according to a second embodiment of the present invention.
Detailed Description
In the following description, numerous specific details are set forth in order to provide a thorough understanding of the present invention. The present invention may be embodied in many other forms than those herein described, and those skilled in the art will readily appreciate that the present invention may be similarly embodied without departing from the spirit or essential characteristics thereof, and therefore the present invention is not limited to the specific embodiments disclosed below.
A first embodiment of the present invention provides a method for updating a tag of a target object, which is described below with reference to fig. 1.
As shown in fig. 1, in step S101, an update request for updating the tag of the target object is obtained.
The target object refers to an entity needing to update the mark. In the e-commerce field, entities refer to participating elements such as people, shops, merchants, and the like.
A tag is an identification on a target object. For example, a user is a "new person," then a "new person" is a mark about the user.
The update request may include:
identification information of the target object;
identification information of the mark of the target object;
priority information of the current update operation;
timestamp information of the current update operation.
The update request for updating the tag of the target object may be sent by an application program of the client, where many application programs are running, and where there are multiple application programs that need to modify the tag of the target object.
As one embodiment, the obtaining, according to the update request, the priority of the current update operation and the timestamp information of the current update operation includes:
and if the mark of the target object is not in a writing forbidden state, acquiring the priority of the current updating operation and the time stamp information of the current updating operation according to the updating request.
After the step of obtaining the update request for updating the tag of the target object, the embodiment of the present invention may further include: and if the mark of the update request is in a write-forbidden state, storing the update request.
When the mark of the target object is in a writing-forbidden state, the state of the mark of the target object cannot be updated, so that the information of the update request is stored first, and when the mark of the target object is in a non-writing-forbidden state, the mark of the target object is updated according to the stored information of the update request.
As shown in fig. 1, in step S102, the priority of the current update operation and the time stamp information of the current update operation are obtained according to the update request.
The priority of the current update operation is associated with the application that sent the update request.
The time stamp information of the current update operation and the priority of the current update operation may be obtained from the time stamp information and the priority information contained in the update request.
For example, 5 different applications may modify the tag of the target object 1, with 5 applications being application 1, application 2, application 3, application 4, application 5, application 1, application 2, application 3, application 4, application 5 having different priorities for the target object 1.
Priority level Application identification Target object
Priority 1 Application 1 Target object 1
Priority 2 Application 5 Target object 1
Priority 3 Application 3 Target object 1
Priority 4 Application 4 Target object 1
Priority 5 Application 2 Target object 1
As can be seen from the table, the priority of application 2 for target object 1 is highest, and the priority of application 1 for target object 1 is lowest. It should be noted that the same priority may correspond to a plurality of applications.
As shown in fig. 1, in step S103, an update operation is performed on the mark of the target object according to the priority of the current update operation and the time stamp information of the current update operation.
The updating operation of the mark of the target object according to the priority of the current updating operation and the timestamp information of the current updating operation comprises the following steps:
If the priority of the current updating operation is greater than the priority of the operation of last modifying the mark of the target object, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if the priority of the current updating operation is smaller than that of the operation of last modifying the mark of the target object, not updating the mark of the target object;
if the priority of the current update operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to update the mark of the target object according to the time stamp information of the current update operation.
Still using the above example, if the update request is a request of application 3, the priority of the current update operation is 3, the priority of the operation that last modified the tag of the target object for target object 1 is 2, and thus the priority of the current update operation is greater than the priority of the operation that last modified the tag of the target object, the tag of the target object is updated, and the priority of the current operation and the time stamp information of the current operation are stored. For example, if the target object 1 is one user, the identification information of the tag of the target object 1 included in the update request is "whether new user", the priority of the operation of the target object 1 to modify the tag of the target object last time is 2, the tag status of "whether new user" is yes, the update request is a request of the application 3, the priority of the current update operation is 3, the tag status of "whether new user" is no, and the tag status of "whether new user" of the update target object is no.
If the update request is a request of application 3, the priority of the current update operation is 3, and the priority of the operation of last modifying the mark of the target object for the target object 1 is 5, so that the priority of the current update operation is smaller than the priority of the operation of last modifying the mark of the target object, the update operation is not performed on the mark of the target object 1.
If the update request is a request of application 3, the priority of the current update operation is 3, and the priority of the operation for the last time of modifying the mark of the target object for the target object 1 is 3, that is, the priority of the current update operation is equal to the priority of the operation for the last time of modifying the mark of the target object, whether to update the mark of the target object is determined according to the time stamp information of the current update operation.
And if the priority of the current updating operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to update the mark of the target object according to the timestamp information of the current operation, wherein the method comprises the following steps:
If the priority of the current updating operation is equal to the priority of the operation of last modifying the mark of the target object, and the time indicated by the time stamp information of the current updating operation is after the time indicated by the time stamp information of the last modifying the mark of the target object, updating the mark of the target object and storing the time stamp information of the current operation;
If the priority of the current update operation is equal to the priority of the operation of last modifying the tag of the target object and the time indicated by the time stamp information of the current operation is before the time indicated by the time stamp information of the operation of last modifying the tag of the target object, the update operation is not performed on the tag of the target object.
For example, if the update request is a request of application 3, the priority of the current update operation is 3, the priority of the operation of last modification of the mark of the target object is 3 for the target object 1, if the time stamp information of the current update operation is after the time indicated by the time stamp information of the operation of last modification of the mark of the target object, the mark of the target object is updated, and the time stamp information of the current operation is stored; if the time indicated by the time stamp information of the current operation is before the time indicated by the time stamp information of the operation of last modifying the mark of the target object, the mark of the target object is not updated.
As an implementation manner, the embodiment of the present invention may further include:
the priority of the operation of last modifying the marking of the target object and the time stamp information of the operation of last modifying the marking of the target object are obtained.
The updating operation of the mark of the target object according to the priority of the current updating operation and the timestamp information of the current updating operation comprises the following steps:
Judging whether the mark of the target object is the first marking;
if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if not, the mark of the target object is updated according to the priority of the current updating operation and the time stamp information of the current updating operation.
When the mark of the target object is updated according to the priority of the current updating operation and the time stamp information of the current updating operation, whether the mark is marked for the first time of the target object is needed to be considered, if the mark is marked for the first time, the mark of the target object is directly updated, and the priority of the current updating operation and the time stamp information of the current updating operation are stored; if the target object is not marked for the first time, updating the mark of the target object according to the priority of the current updating operation and the time stamp information of the current updating operation.
As an embodiment, further comprising:
and obtaining the mark of the target object and sending the mark to the client.
And sending the latest state of the mark of the target object to the client, wherein the client can perform operations such as commodity display and the like according to the latest state of the mark of the target object.
Fig. 2 is a flowchart of a scenario of another method for updating a target object's marker according to the first embodiment of the present invention. Including some preferred embodiments of the invention. The method for updating the mark of the target object can be executed at the server side. As shown in fig. 2, when an application of a client sends an update request for updating a tag of a target object, after the server obtains the update request, the server first determines whether the tag is prohibited from writing, if the tag is prohibited from writing, stores the update request (current request in the figure), if the update request is not prohibited from writing, reads entity marking information and rule configuration information (including priority information of each application for the tag) of the tag, and determines whether the tag needs to be modified according to the read configuration information, if the tag needs to be modified, the marking state, the priority and the timestamp information are written.
Corresponding to the above provided method for updating the mark of the target object, the second embodiment of the present invention further provides a device for updating the mark of the target object.
As shown in fig. 3, the apparatus for updating the mark of the target object includes:
an update request obtaining unit 301 for obtaining an update request for updating a tag of a target object;
An information obtaining unit 302, configured to obtain, according to the update request, a priority of a current update operation and timestamp information of the current update operation;
And a mark updating unit 303, configured to perform an update operation on the mark of the target object according to the priority of the current update operation and the timestamp information of the current update operation.
As an embodiment, the information obtaining unit is specifically configured to:
and if the mark of the target object is not in a writing forbidden state, acquiring the priority of the current updating operation and the time stamp information of the current updating operation according to the updating request.
As an embodiment, the apparatus further comprises: and an update request storage unit configured to store an update request for a tag of a target object if the tag of the update request is in a write-disabled state after the step of obtaining the update request for updating the tag.
As an embodiment, the tag updating unit is specifically configured to:
If the priority of the current updating operation is greater than the priority of the operation of last modifying the mark of the target object, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if the priority of the current updating operation is smaller than that of the operation of last modifying the mark of the target object, not updating the mark of the target object;
if the priority of the current update operation is equal to the priority of the operation of last modifying the mark of the target object, determining whether to update the mark of the target object according to the time stamp information of the current update operation.
As an embodiment, the tag updating unit is specifically configured to:
If the priority of the current updating operation is equal to the priority of the operation of last modifying the mark of the target object, and the time indicated by the time stamp information of the current updating operation is after the time indicated by the time stamp information of the last modifying the mark of the target object, updating the mark of the target object and storing the time stamp information of the current operation;
If the priority of the current update operation is equal to the priority of the operation of last modifying the tag of the target object and the time indicated by the time stamp information of the current operation is before the time indicated by the time stamp information of the operation of last modifying the tag of the target object, the update operation is not performed on the tag of the target object.
As an embodiment, the apparatus further comprises: information obtaining unit for last modification of
The priority of the operation of last modifying the marking of the target object and the time stamp information of the operation of last modifying the marking of the target object are obtained.
As an embodiment, the tag updating unit is specifically configured to:
Judging whether the mark of the target object is the first marking;
if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
if not, the mark of the target object is updated according to the priority of the current updating operation and the time stamp information of the current updating operation.
As an embodiment, the apparatus further comprises:
And the mark sending unit is used for obtaining the mark of the target object and sending the mark to the client.
As an embodiment, the update request includes at least one of the following information:
identification information of the target object;
identification information of the mark of the target object;
priority information of the current update operation;
timestamp information of the current update operation.
It should be noted that, for the detailed description of the apparatus provided in the second embodiment of the present application, reference may be made to the description related to the first embodiment of the present application, which is not repeated here.
Corresponding to the method provided by the above, the third embodiment of the present invention also provides an electronic device. The electronic device includes:
A processor;
A memory for storing a program which, when read for execution by the processor, performs the method according to any one of the embodiments of the present invention in the first aspect.
It should be noted that, for the detailed description of the electronic device provided in the third embodiment of the present application, reference may be made to the description related to the first embodiment of the present application, which is not repeated here.
The fourth embodiment of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the method of the first embodiment of the present invention.
It should be noted that, for the detailed description of the computer readable storage medium according to the fourth embodiment of the present application, reference may be made to the related description of the first embodiment of the present application, which is not repeated here.
While the application has been described in terms of preferred embodiments, it is not intended to be limiting, but rather, it will be apparent to those skilled in the art that various changes and modifications can be made herein without departing from the spirit and scope of the application as defined by the appended claims.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of computer-readable media.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), read Only Memory (ROM), electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), digital Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer readable media, as defined herein, does not include non-transitory computer readable media (transmission media), such as modulated data signals and carrier waves.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.

Claims (9)

1. A method for updating a tag of a target object, comprising:
Obtaining an update request of a plurality of application programs for updating a mark of a target object, wherein the target object is an entity needing to update the mark;
According to the update request, acquiring the priority of each application program aiming at the current update operation and the time stamp information of the current update operation;
according to the priority of each application program aiming at the current updating operation and the timestamp information of the current updating operation, the updating operation is carried out on the mark of the target application program aiming at the target object, and the method comprises the following steps:
Judging whether the mark of the target object is the first marking;
if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation;
If not, judging the size between the priority of the current updating operation and the priority of the operation of last modifying the mark of the target object, if so, updating the mark of the target object, and storing the priority of the current updating operation and the timestamp information of the current updating operation; if the mark of the target object is smaller than the mark of the target object, not carrying out updating operation; if so, determining whether to update the mark of the target object according to the timestamp information of the current updating operation, including: if the time indicated by the timestamp information of the current operation is before the time indicated by the timestamp information of the operation of last modifying the mark of the target object, not performing the update operation on the mark of the target object; if the time indicated by the time stamp information of the current update operation is after the time indicated by the time stamp information of the operation of last modifying the marking of the target object, the marking of the target object is updated and the time stamp information of the current operation is stored.
2. The method according to claim 1, wherein the obtaining, according to the update request, the priority of each application for the current update operation and the timestamp information of the current update operation includes:
and if the mark of the target object is not in a writing forbidden state, acquiring the priority of the current updating operation and the time stamp information of the current updating operation according to the updating request.
3. The method of claim 2, further comprising, after the step of obtaining an update request for updating the tag of the target object: and if the mark of the update request is in a write-forbidden state, storing the update request.
4. The method as recited in claim 1, further comprising:
the priority of the operation of last modifying the marking of the target object and the time stamp information of the operation of last modifying the marking of the target object are obtained.
5. The method as recited in claim 1, further comprising:
and obtaining the mark of the target object and sending the mark to the client.
6. The method of claim 1, wherein the update request includes at least one of the following information:
identification information of the target object;
identification information of the mark of the target object;
priority information of the current update operation;
timestamp information of the current update operation.
7. A tag updating apparatus of a target object, comprising:
an update request obtaining unit, configured to obtain update requests of a plurality of application programs for updating a tag of a target object, where the target object is an entity that needs to update the tag;
an information obtaining unit, configured to obtain, according to the update request, priority of each application program for a current update operation and timestamp information of the current update operation;
A mark updating unit, configured to perform an updating operation on a mark of a target application program for the target object according to the priority of each application program for a current updating operation and timestamp information of the current updating operation, where the mark updating unit includes: judging whether the mark of the target object is the first marking; if yes, updating the mark of the target object, and storing the priority of the current updating operation and the time stamp information of the current updating operation; if not, judging the size between the priority of the current updating operation and the priority of the operation of last modifying the mark of the target object, if so, updating the mark of the target object, and storing the priority of the current updating operation and the timestamp information of the current updating operation; if the mark of the target object is smaller than the mark of the target object, not carrying out updating operation; if so, determining whether to update the mark of the target object according to the timestamp information of the current updating operation, including: if the time indicated by the timestamp information of the current operation is before the time indicated by the timestamp information of the operation of last modifying the mark of the target object, not performing the update operation on the mark of the target object; if the time indicated by the time stamp information of the current update operation is after the time indicated by the time stamp information of the operation of last modifying the marking of the target object, the marking of the target object is updated and the time stamp information of the current operation is stored.
8. An electronic device, the electronic device comprising:
A processor;
a memory for storing a program which, when read for execution by the processor, performs the method of any one of claims 1-6.
9. A computer readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, performs the method according to any one of claims 1-6.
CN202010559817.8A 2020-06-18 2020-06-18 Method, device and equipment for updating mark of target object Active CN111859200B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010559817.8A CN111859200B (en) 2020-06-18 2020-06-18 Method, device and equipment for updating mark of target object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010559817.8A CN111859200B (en) 2020-06-18 2020-06-18 Method, device and equipment for updating mark of target object

Publications (2)

Publication Number Publication Date
CN111859200A CN111859200A (en) 2020-10-30
CN111859200B true CN111859200B (en) 2024-05-14

Family

ID=72987262

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010559817.8A Active CN111859200B (en) 2020-06-18 2020-06-18 Method, device and equipment for updating mark of target object

Country Status (1)

Country Link
CN (1) CN111859200B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158369A (en) * 2011-03-14 2011-08-17 杭州华三通信技术有限公司 Method and device for checking patch
CN106878370A (en) * 2016-09-19 2017-06-20 阿里巴巴集团控股有限公司 The update method and equipment of a kind of local cache
CN107948093A (en) * 2017-11-01 2018-04-20 北京小米移动软件有限公司 Adjust the method and device that network speed is applied in terminal device
CN108023908A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Data-updating method, apparatus and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9948703B2 (en) * 2015-05-14 2018-04-17 Twilio, Inc. System and method for signaling through data storage

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102158369A (en) * 2011-03-14 2011-08-17 杭州华三通信技术有限公司 Method and device for checking patch
CN106878370A (en) * 2016-09-19 2017-06-20 阿里巴巴集团控股有限公司 The update method and equipment of a kind of local cache
CN108023908A (en) * 2016-10-31 2018-05-11 腾讯科技(深圳)有限公司 Data-updating method, apparatus and system
CN107948093A (en) * 2017-11-01 2018-04-20 北京小米移动软件有限公司 Adjust the method and device that network speed is applied in terminal device

Also Published As

Publication number Publication date
CN111859200A (en) 2020-10-30

Similar Documents

Publication Publication Date Title
US9047224B2 (en) Method, system and server of removing a distributed caching object
US20160142369A1 (en) Service addressing in distributed environment
CN111898139B (en) Data reading and writing method and device and electronic equipment
CN105550345A (en) File operation method and apparatus
CN106897335B (en) Service data storage method, record identifier generation method and device
CN106528578B (en) Information display method and device
CN107153644B (en) Data synchronization method and device
CN109447820B (en) Data processing method, device, computer equipment and storage medium
CN105608087B (en) resource scheduling method and device
JP6975153B2 (en) Data storage service processing method and equipment
CN105488125A (en) Page access method and apparatus
CN108829809A (en) A kind of information displaying method and its terminal device, the network equipment
US7908243B2 (en) Considering transient data also in reports generated based on data eventually stored in a data-warehouse
CN107454138A (en) The implementation method and device that business degrades
CN111859200B (en) Method, device and equipment for updating mark of target object
CN107169752B (en) Resource transfer method and device
CN111177093A (en) Method, device and medium for sharing scientific and technological resources
CN111143546A (en) Method and device for obtaining recommendation language and electronic equipment
WO2023050673A1 (en) Image caching method and apparatus, and electronic device, storage medium and computer program product
CN111369282B (en) Resource processing method and device
CN111966892B (en) Data processing method and device, computer storage medium and electronic equipment
CN114722782A (en) Data application method and device, electronic equipment and storage medium
US20170364454A1 (en) Method, apparatus, and computer program stored in computer readable medium for reading block in database system
CN112509164A (en) Attendance card-punching method, attendance card-punching device, attendance card-punching equipment and storage medium
CN111523927A (en) Resource sending 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
GR01 Patent grant
GR01 Patent grant