CN109710673B - Work processing method, device, equipment and medium - Google Patents

Work processing method, device, equipment and medium Download PDF

Info

Publication number
CN109710673B
CN109710673B CN201811594487.5A CN201811594487A CN109710673B CN 109710673 B CN109710673 B CN 109710673B CN 201811594487 A CN201811594487 A CN 201811594487A CN 109710673 B CN109710673 B CN 109710673B
Authority
CN
China
Prior art keywords
request
works
processed
database
retrieval
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
CN201811594487.5A
Other languages
Chinese (zh)
Other versions
CN109710673A (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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201811594487.5A priority Critical patent/CN109710673B/en
Publication of CN109710673A publication Critical patent/CN109710673A/en
Application granted granted Critical
Publication of CN109710673B publication Critical patent/CN109710673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the invention discloses a work processing method, a work processing device, a work processing equipment and a work processing medium, and relates to the field of Internet. The method comprises the following steps: acquiring data operation requests of various businesses for works to be processed and/or data operation requests of various terminals for the works to be processed; and responding the data operation request, and performing data operation on the works to be processed in the public database. The embodiment of the invention provides a work processing method, a device, equipment and a medium, which realize that each business side and each work display terminal share the stored work data and simplify the connection structure between the business side and the work display terminal.

Description

Work processing method, device, equipment and medium
Technical Field
The embodiment of the invention relates to the field of Internet, in particular to a work processing method, a work processing device, work processing equipment and a work processing medium.
Background
The self-media author is a propagator of generalized information in the internet era, and the created information stream content generally has the advantages of huge flow and rich form, and can meet the complex requirements of users and advertisers in the information field.
The process of publishing a work created from a media author can be generally described as: each business side processes the works according to the set logic and stores the processing result in a database of each business side, wherein each business side comprises a work auditing business, a work judging business and the like; after the processing of each service side, the works are issued to the work display terminal for the display of the works.
However, the above method has the following problems:
1) The problem of duplicate storage of work data: and each service side and each work display terminal need to store work data.
2) Product attribute update delay problem: notification of work attribute updates relies on a relatively complex topology of update notification chain delivery between services. The notification of the update of the product attributes is transmitted to the display terminals of the products at different time, so that the display contents are inconsistent.
Disclosure of Invention
Embodiments of the present invention provide a work processing method, apparatus, device, and medium, so as to implement that each service side and each work display terminal share stored work data, and simplify a connection structure between the service side and the work display terminal.
In a first aspect, an embodiment of the present invention provides a work processing method, where the method includes:
acquiring data operation requests of various businesses for the works to be processed and/or data operation requests of various terminals for the works to be processed;
and responding to the data operation request, and performing data operation on the works to be processed in the public database.
In a second aspect, an embodiment of the present invention further provides a work processing apparatus, including:
the request acquisition module is used for acquiring data operation requests of various businesses for the works to be processed and/or data operation requests of various terminals for the works to be processed;
and the request response module is used for responding the data operation request and performing data operation on the works to be processed in the public database.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a work processing method as in any one of the embodiments of the invention.
In a fourth aspect, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor, implements the work processing method according to any one of the embodiments of the present invention.
The embodiment of the invention responds to the data operation request of each service and/or each terminal to the works to be processed, and performs data operation on the works to be processed in the public database. Therefore, the works data stored in the business and the works display terminals are shared. In addition, the embodiment of the invention realizes the centralization of the work processing by connecting each service, each terminal and the public data, and simplifies the connection structure between the service side and the work display terminal.
Drawings
FIG. 1 is a flowchart of a work processing method according to an embodiment of the present invention;
FIG. 2 is a flowchart of a work processing method according to a second embodiment of the present invention;
FIG. 3 is a flowchart illustrating an article processing method according to a third embodiment of the present invention;
FIG. 4 is a block diagram illustrating a structure of a public database according to a third embodiment of the present invention;
fig. 5 is a schematic block diagram of a state updating process based on a state machine according to a third embodiment of the present invention;
FIG. 6 is a block diagram schematically illustrating a structure of a work processing apparatus according to a fourth embodiment of the present invention;
fig. 7 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart of a work processing method according to an embodiment of the present invention. The embodiment can be applied to the situation of data processing of the network works, wherein the processing comprises publishing, retrieving, withdrawing, blocking and the like. The method may be performed by a work processing apparatus, which may be implemented in software and/or hardware. Referring to fig. 1, the method for processing a work provided in this embodiment includes:
s110, acquiring data operation requests of various businesses for the works to be processed and/or data operation requests of various terminals for the works to be processed.
The services include an auditing service, a judging service, a searching service and the like of the works to be processed.
The works are created by users based on a network platform, and can be articles, videos and audios.
The terminal is a terminal for displaying the works to be processed, and specifically can be a mobile phone or a computer.
The data operation may be a read operation or a write operation on data, or may be a state change operation on a work to be processed.
And S120, responding to the data operation request, and performing data operation on the works to be processed in the public database.
Specifically, the common database is a database that is commonly maintained and shared by the terminal and each service. The database stores the data of the works to be processed.
In order to meet different retrieval requirements, different sub-databases are arranged in the public database, wherein the sub-databases store works in different forms.
Specifically, in order to meet the retrieval requirement of the work operation service on the content of the work, a content sub-database storing the content field of the work is arranged in the public database.
Typically, responding to the data operation request of each service to the works to be processed, performing data operation on the works to be processed in the public database, including:
responding to a data retrieval request of the operation service to the works to be processed, and determining a retrieval result according to the retrieval information and a content sub-database in a public database, wherein the content sub-database stores content fields of the works.
According to the technical scheme of the embodiment of the invention, the data operation is carried out on the works to be processed in the public database by responding to the data operation requests of the works to be processed of each service and/or each terminal. Therefore, the common maintenance and sharing of the work data in the public database by each service and each work display terminal are realized, and the consistency of the work data is further realized.
In addition, the embodiment of the invention realizes the centralization of work processing and simplifies the connection structure between the service side and the work display terminal by connecting each service, each terminal and public data.
Meanwhile, the simplification of the structure shortens the time difference of transmitting the notification of the update of the product attributes to each product display terminal. And because each display terminal acquires the display work data from the public database, the acquisition content for the same work is the same. Therefore, the situation that the display contents of the same work are inconsistent does not exist.
In order to update the display terminal in time, after the data operation request of each business to the works to be processed and/or the data operation request of each terminal to the works to be processed is obtained, the method further comprises the following steps:
modifying a request receipt status of the work to be processed;
responding the data operation request, and after performing data operation on the works to be processed in the public database, the method further comprises the following steps:
modifying the request response state of the work to be processed;
and sending an article to be processed updating instruction to the display terminal according to the request receiving state and the request responding state of the work to be processed, and indicating the display terminal to display according to the updated article data to be processed in the public database.
In order to avoid the problem of request response timeout, before responding to the data operation request and performing data operation on the works to be processed in the public database, the method further includes:
analyzing a request operation mode from a data operation request, wherein the request operation mode comprises a synchronous processing mode or an asynchronous processing mode;
and responding to the data operation request according to the analyzed request operation mode.
The synchronous processing mode means that after a request is received, the current logic is interrupted, and the request is responded immediately; the asynchronous processing mode means that after the request is received, the request is placed in a task queue and executed according to the task sequence.
Therefore, the request operation mode can be set according to the actual request response requirement.
Further, before responding to the data operation request, the method further comprises:
and verifying the parameters in the operation request.
In order to avoid the situation of update state conflict caused by parallel operation of each service on the public database, the responding to the data operation request and performing data operation on the public database includes:
and responding to the target work state change request according to the set update sequence, and updating the target work state in the public database.
Example two
Fig. 2 is a flowchart of a work processing method according to a second embodiment of the present invention. The present embodiment is an alternative proposed on the basis of the above-described embodiments. Referring to fig. 2, the method for processing a work provided in this embodiment includes:
s210, acquiring data operation requests of each business to the works to be processed and/or data operation requests of each terminal to the works to be processed.
And S220, if the data operation request is a data retrieval request, responding to the data retrieval request, and determining a retrieval result according to the retrieval information, the basic attributes of the works of the relational sub-database included in the public database and the extended attributes of the works of the non-relational sub-database included in the public database.
The relational sub-database is one of public databases and belongs to a relational database. The non-relational sub-database is also a sub-database in the public database, belonging to a non-relational database. And searching other attributes of the target work based on any basic attribute of the target work in the relational sub-database. However, in the non-relational sub-database, the other work extension attributes of the target work can only be searched according to the work extension attributes stored at the position of the main key.
The basic attribute of the work is the attribute of the work with high retrieval frequency. Specifically, the basic attributes of the work may include a work identifier, a user identifier, a work type, a work status, a work creation time, a work release time, and the like.
The work extension attribute is an attribute that retrieval frequency is not high or field content is long. Specifically, the work extension attribute includes a work title, work content, a work label, and the like.
Optionally, the basic attribute retrieval may be performed on the work directly based on the relational sub-database, or the extended attribute retrieval may be performed on the work based on the non-relational sub-database.
Typically, the determining a search result according to the search information, the basic attributes of the works in the relational database in the public database, and the extended attributes of the works in the non-relational database in the public database includes:
matching the retrieval information with basic attributes of the works in a relational sub-database in a public database;
and based on the successfully matched basic attributes of the works, acquiring the work expansion attributes of the target works from the non-relational sub-database of the public database, and determining a retrieval result according to the work expansion attributes of the target works.
Specifically, based on the basic attributes of the successfully matched works, the method for obtaining the extended attributes of the target works from the non-relational database of the public database comprises the following steps:
determining the product identification of the target product to which the successfully matched basic attribute of the product belongs from the relational sub-database;
and determining the product expansion attribute of the target product from the non-relational sub-database based on the determined product identification.
The method can realize the retrieval of the extended attributes of the works based on the attributes of any works.
According to the technical scheme of the embodiment of the invention, the relational sub-database and the non-relational sub-database are arranged in the public database, the work attribute with high retrieval frequency is stored in the relational sub-database, and the work extension attribute with low retrieval rate is stored in the non-relational sub-database. Because the logical relations in the relational database are more than the logical relations in the non-relational database, the resources are occupied more. According to the embodiment, the data of the works are stored in the database according to the actual retrieval requirements, so that the waste of resources can be effectively avoided.
EXAMPLE III
The embodiment is an alternative provided by taking a work as an article as an example on the basis of the embodiment. Referring to fig. 3, the article processing method is provided in the middleware of an article service, and the internal service is connected to the public database through the middleware. Referring to fig. 3, the article processing method provided in this embodiment includes:
acquiring article data operation requests sent by various services based on various interfaces;
and responding to the article data operation request, and performing article data operation on the public database, the state machine and/or the distribution side.
The distribution side refers to a downstream task execution end, and may be an article display terminal, such as a mobile phone or a computer.
Different interfaces are connected with different services, so that the interfaces can be set according to the requirements of the services.
In order to ensure the correct operation of the chapter data in the public database, the article data operation request is responded, and the article data operation is carried out on the public database, which comprises the following steps:
responding to a read-write request of an article field sent by an internal service, and verifying parameters in the request;
and if the verification is wrong, correcting the wrong parameters, and executing read-write operation on the article data in the public database based on the correct parameters.
Specifically, responding to the article data operation request, performing article data operation on a public database, a state machine and/or a distribution side, including:
receiving a write request including target creation article data based on a creation article interface;
writing the target creation article data into a public database, submitting the receiving state and the response state of the writing request to a state machine, generating an updating instruction by the state machine according to the receiving state and the response state of the writing request, and issuing the updating instruction to a distribution side based on an issuing interface.
In order to realize the intervention of the article state of the article data in the release stage, the operation request of the article data sent by each service is acquired based on each interface, and the method comprises the following steps:
receiving a request for interfering the article state by each service based on each interface, wherein the interfering of the article state comprises withdrawing, blocking, deleting, fishing back and the like, detecting the authority of a request source, and updating the article state in a public database after the validity detection is completed;
and submitting the requested receiving state and the response state to a state machine, and generating a state updating instruction by the state machine according to the requested receiving state and the response state to carry out a state circulation process or directly issue the state updating instruction to a distribution side to realize a service effect.
In order to meet the requirements of content editors, the middleware of the article service can receive a request for directly intervening and issuing article data so as to be used by a platform of the content editors.
The time-efficient article needs to be guaranteed to pass with high priority in a issuing process, and marks need to be distinguished in issuing channels to meet the requirements of different issuing scenes.
When responding to different operation requests, the problem of response timeout exists. Different services have different time requirements for requesting responses. In order to solve the problem, the received operation request comprises a request parameter processed synchronously or asynchronously, so as to mark the processing mode of an internal function when the request is responded.
And storing the article data and the attribute to be operated to a message queue during asynchronous processing, and calling back in a push-pull data acquisition mode to complete the request of each service.
In order to realize the retrieval of the stored article data and respond to the article data operation request, the method for carrying out the article data operation on the public database, the state machine and/or the distribution side comprises the following steps:
acquiring an article data retrieval request sent by an internal service, and if the retrieval request is the retrieval of the operation intervention article content, using a distributed retrieval engine to retrieve the article content based on a content sub-database in a public database;
and if the retrieval request is retrieval of a normal text sending flow, performing article attribute retrieval based on the relational sub-database and the non-relational sub-data in the public database.
Referring to fig. 4, the public database 100 includes: a relational sub-database 101, a non-relational sub-database 102, and a content sub-database 103. And different databases are utilized for retrieval aiming at different retrieval, so that the retrieval efficiency is improved.
The distributed full-text search engine is used for searching the operation intervention article content, and the operation of back-checking or sequencing and screening different fields of the article can be carried out aiming at various activity scenes. The frequency of the retrieval requirement is not high and is not suitable for being mixed with the retrieval scene of a normal text sending process, so that the distributed full-text retrieval engine is independently used for regularly synchronizing the article data so as to meet the management requirement of operators.
The relational sub-database stores basic article attributes, and the basic article attributes are fields which are frequently used for screening and the length of the content of the fields is smaller than a set length threshold.
And using the number as the actual storage content for the enumerated field, and recording the mapping relation between the number identification and the actual content in the configuration file. For example, 0 in the gender field indicates female and 1 indicates male.
The non-relational sub-database stores article extension attributes, and the article extension attributes refer to attributes with low retrieval frequency or long field content. The performance of large-scale data collection and multiple data types can be solved by utilizing the non-relational database to the maximum extent.
In addition, the data with high use frequency in the article attribute is cached by using a memory engine, and the connection number of the database connection pool is reduced to improve the stability.
As can be seen from the above, the method for acquiring article data includes:
the method comprises the steps of inquiring based on an identification dimension (namely based on a non-relational sub-database), inquiring based on a condition (namely based on a relational sub-database), or pushing subscription data based on subscription of each service so as to ensure the real-time performance of article data.
Referring to fig. 5, specifically, in response to an article data operation request, performing article data operation on a public database, a state machine and/or a distribution side includes:
responding to a read-write request of an article field sent by an internal service, and verifying parameters in the request;
if the verification is wrong, correcting the wrong parameters, and executing read-write operation on the article data in the public database based on the correct parameters;
receiving an article state updating request, and filling the receiving state of the request into a request slot position of an article in a state machine;
responding the article state updating request according to the set updating sequence, updating the article state in the public database, filling the response request state into a response slot position of the article in the state machine, and generating an updating instruction by the state machine according to the receiving state and the response state of the request to issue an instruction through an issuing interface.
As can be seen from the above, on one hand, the article service is a service layer as a bottom storage resource module, and on the other hand, the article service needs to receive a change request of article state flow, and ensure asynchronous flow of normal document sending flow and a real-time request for intervening article issuing.
The state machine is used for recording the circulation sequence and the request state of the articles and informing each service or the distribution side of updating the seal data according to the circulation sequence and the request state.
If abnormity or blockage occurs in the process of request receiving or responding, the article is resubmitted. Therefore, more and more service parties for processing article data in the service expansion stage can be well responded, and transverse expansion and access to the original text sending process can be performed more quickly.
According to the technical scheme of the embodiment of the invention, the cost of data updating can be effectively reduced and the low delay of the subsystem can be ensured by uniformly storing the article resources in the public database.
Meanwhile, convergence service for bearing data results is realized, and independent article service middleware can decouple article data storage and article state circulation, so that maintainability and expandability of the system are facilitated.
If abnormity or blockage occurs in the process of request receiving or responding, the article is resubmitted, and the data accuracy can be ensured by recording the request state in the state machine.
Different storage modes are used for article data in a retrieval scene of a normal issuing process and operation intervention article content, the service use requirement is met with lower implementation cost, and the advantage of rich information flow content forms is ensured. The access cost of each service side can be greatly reduced in the expansion process of the self-media writing platform, and the iteration speed and the online efficiency of products can be improved.
It should be noted that, after the technical teaching of the embodiment, a person skilled in the art may motivate a combination of any one of the implementation manners described in the above embodiments to realize the processing of the work data.
Example four
Fig. 6 is a schematic structural diagram of a work processing apparatus according to a fourth embodiment of the present invention. Referring to fig. 6, the present embodiment provides a work processing apparatus including: a request acquisition module 10 and a request response module 20.
The request acquisition module 10 is configured to acquire a data operation request of each service to-be-processed work and/or a data operation request of each terminal to-be-processed work;
and the request response module 20 is configured to respond to the data operation request and perform data operation on the works to be processed in the public database.
According to the technical scheme of the embodiment, the data operation is performed on the works to be processed in the public database by responding to the data operation requests of the works to be processed of each service and/or each terminal. Therefore, the works data stored in the business and the works display terminals are shared. In addition, the embodiment of the invention realizes the centralization of the work processing by connecting each service, each terminal and the public data, and simplifies the connection structure between the service side and the work display terminal.
Further, the response module includes: the response unit is retrieved.
The retrieval response unit is used for responding to the data retrieval request if the data operation request is a data retrieval request, and determining a retrieval result according to the retrieval information, the basic attribute of the work of the relational sub-database included in the public database and the extended attribute of the work of the non-relational sub-database included in the public database.
Further, the retrieval response unit is specifically configured to:
matching the retrieval information with the basic attributes of the works in the relational sub-database in the public database;
and based on the successfully matched basic attributes of the works, acquiring the work expansion attributes of the target works from the non-relational sub-database of the public database, and determining a retrieval result according to the work expansion attributes of the target works.
Further, the apparatus further comprises: a request for a state modification module.
The request state modification module is used for modifying the request receiving state of the works to be processed after acquiring the data operation requests of the works to be processed of each business and/or the data operation requests of the works to be processed of each terminal;
the device further comprises: a response state modification module and an update module.
The response state modification module is used for responding to the data operation request, performing data operation on the works to be processed in the public database, and modifying the request response state of the works to be processed;
and the updating module is used for sending a work to be processed updating instruction to each terminal or service according to the request receiving state and the request responding state of the work to be processed and indicating each terminal or each service to update the data of the work to be processed.
Further, the apparatus further comprises: an operation mode determining module and an operation mode executing module.
The operation mode determining module is used for responding to the data operation request, and analyzing a request operation mode from the data operation request before performing data operation on the works to be processed in the public database, wherein the request operation mode comprises a synchronous processing mode or an asynchronous processing mode;
and the operation mode execution module is used for responding to the data operation request according to the analyzed request operation mode.
Further, the request response module includes: a request response unit.
The request response unit is used for responding to a data retrieval request of the operation service to the works to be processed, and determining a retrieval result according to the retrieval information and a content sub-database in a public database, wherein the content sub-database stores content fields of the works.
The work processing device provided by the embodiment of the invention can execute the work processing method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE five
Fig. 7 is a schematic structural diagram of an apparatus according to a sixth embodiment of the present invention. Fig. 7 illustrates a block diagram of an exemplary device 12 suitable for use in implementing embodiments of the present invention. The device 12 shown in fig. 7 is only an example and should not impose any limitation on the functionality and scope of use of embodiments of the present invention.
As shown in FIG. 7, device 12 is in the form of a general purpose computing device. The components of device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM) 30 and/or cache memory 32. The device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 7, and commonly referred to as a "hard drive"). Although not shown in FIG. 7, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of embodiments of the invention as described.
Device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with device 12, and/or with any devices (e.g., network card, modem, etc.) that enable device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown, the network adapter 20 communicates with the other modules of the device 12 via the bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processing unit 16 executes various functional applications and data processing, for example, implementing a work processing method provided by an embodiment of the present invention, by executing a program stored in the system memory 28.
EXAMPLE seven
The seventh embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements a work processing method according to any one of the embodiments of the present invention, where the method includes:
acquiring data operation requests of various businesses for works to be processed and/or data operation requests of various terminals for the works to be processed;
and responding the data operation request, and performing data operation on the works to be processed in the public database.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (12)

1. A method of processing a work, comprising:
acquiring data operation requests of various businesses for the works to be processed and/or data operation requests of various terminals for the works to be processed; the businesses comprise at least one of an auditing business, a judging business and a searching business for the works to be processed; the works are articles, videos or audios which are created by a user based on a network platform; responding the data operation request, and performing data operation on the works to be processed in the public database; responding the data operation request of each business to the works to be processed, and performing data operation on the works to be processed in the public database, wherein the data operation request comprises the following steps:
responding to a data retrieval request of an operation service for the works to be processed, and determining a retrieval result according to retrieval information and a content sub-database in a public database, wherein the content sub-database stores content fields of the works;
responding an article data retrieval request sent by an internal service as the data operation request; if the article data retrieval request is the retrieval of the operation intervention article content, retrieving the article content by using a distributed retrieval engine based on a content sub-database in the public database;
and if the article data retrieval request is the retrieval of a normal text sending flow, performing article attribute retrieval based on the relational sub-database and the non-relational sub-data in the public database.
2. The method of claim 1, wherein said performing data operations on works to be processed in a public database in response to said data operation request comprises:
and if the data operation request is a data retrieval request, responding to the data retrieval request, and determining a retrieval result according to the retrieval information, the basic attributes of the works of the relational sub-database included in the public database and the extended attributes of the works of the non-relational sub-database included in the public database.
3. The method of claim 2, wherein determining the search result according to the search information, the basic attributes of the works of the relational sub-database included in the public database, and the extended attributes of the works of the non-relational sub-database included in the public database comprises:
matching the retrieval information with basic attributes of the works in a relational sub-database in a public database;
and based on the successfully matched basic attributes of the works, acquiring the work expansion attributes of the target works from the non-relational sub-database of the public database, and determining a retrieval result according to the work expansion attributes of the target works.
4. The method according to claim 1, wherein after acquiring the data operation request of each service to-be-processed work and/or the data operation request of each terminal to-be-processed work, the method further comprises:
modifying a request receipt status of the work to be processed;
responding the data operation request, and after performing data operation on the works to be processed in the public database, the method further comprises the following steps:
modifying the request response state of the work to be processed;
and sending a work to be processed updating instruction to each terminal or service according to the request receiving state and the request responding state of the work to be processed, and indicating each terminal or each service to update the data of the work to be processed.
5. The method of claim 1, wherein before performing the data operation on the work to be processed in the public database in response to the data operation request, the method further comprises:
analyzing a request operation mode from a data operation request, wherein the request operation mode comprises a synchronous processing mode or an asynchronous processing mode;
and responding to the data operation request according to the analyzed request operation mode.
6. A work processing apparatus, comprising:
the request acquisition module is used for acquiring data operation requests of various businesses for the works to be processed and/or data operation requests of various terminals for the works to be processed; the businesses comprise at least one of an auditing business, a judging business and a searching business for the works to be processed; the works are articles, videos or audios which are created by a user based on a network platform;
the request response module is used for responding to the data operation request and carrying out data operation on the works to be processed in the public database;
the request response module is specifically configured to:
responding to a data retrieval request of an operation service for the works to be processed, and determining a retrieval result according to retrieval information and a content sub-database in a public database, wherein the content sub-database stores content fields of the works;
responding an article data retrieval request sent by an internal service, wherein the article data retrieval request is used as the data operation request, and if the article data retrieval request is the retrieval of the operation intervention article content, the article content is retrieved by using a distributed retrieval engine based on a content sub-database in the public database; and if the article data retrieval request is retrieval of a normal text sending process, performing article attribute retrieval based on the relational sub-database and the non-relational sub-database in the public database.
7. The apparatus of claim 6, wherein the response module comprises:
and the retrieval response unit is used for responding to the data retrieval request if the data operation request is a data retrieval request, and determining a retrieval result according to the retrieval information, the basic attribute of the work of the relational sub-database included in the public database and the extended attribute of the work of the non-relational sub-database included in the public database.
8. The apparatus according to claim 7, wherein the retrieval response unit is specifically configured to:
matching the retrieval information with basic attributes of the works in a relational sub-database in a public database;
and based on the successfully matched basic attributes of the works, acquiring the work expansion attributes of the target works from the non-relational sub-database of the public database, and determining a retrieval result according to the work expansion attributes of the target works.
9. The apparatus of claim 6, further comprising:
the request state modification module is used for modifying the request receiving state of the works to be processed after acquiring the data operation requests of the works to be processed of each business and/or the data operation requests of the works to be processed of each terminal;
the device further comprises:
the response state modification module is used for responding to the data operation request, and modifying the request response state of the works to be processed after the data operation is carried out on the works to be processed in the public database;
and the updating module is used for sending a work to be processed updating instruction to each terminal or service according to the request receiving state and the request responding state of the work to be processed and indicating each terminal or each service to update the data of the work to be processed.
10. The apparatus of claim 6, further comprising:
the operation mode determining module is used for responding to the data operation request, and analyzing a request operation mode from the data operation request before performing data operation on the works to be processed in the public database, wherein the request operation mode comprises a synchronous processing mode or an asynchronous processing mode;
and the operation mode execution module is used for responding to the data operation request according to the analyzed request operation mode.
11. An electronic device, characterized in that the electronic device comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a work processing method as recited in any one of claims 1-5.
12. A computer-readable storage medium on which a computer program is stored, the program realizing the work processing method according to any one of claims 1 to 5 when executed by a processor.
CN201811594487.5A 2018-12-25 2018-12-25 Work processing method, device, equipment and medium Active CN109710673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811594487.5A CN109710673B (en) 2018-12-25 2018-12-25 Work processing method, device, equipment and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811594487.5A CN109710673B (en) 2018-12-25 2018-12-25 Work processing method, device, equipment and medium

Publications (2)

Publication Number Publication Date
CN109710673A CN109710673A (en) 2019-05-03
CN109710673B true CN109710673B (en) 2022-11-25

Family

ID=66258098

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811594487.5A Active CN109710673B (en) 2018-12-25 2018-12-25 Work processing method, device, equipment and medium

Country Status (1)

Country Link
CN (1) CN109710673B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685460A (en) * 2008-09-23 2010-03-31 华为技术有限公司 Database device, method and system for processing shared data
CN102289519A (en) * 2011-09-14 2011-12-21 成都软智科技有限公司 Application server and method for coordinating data of same and database
CN102609435A (en) * 2010-12-20 2012-07-25 微软公司 Large-scale event evaluation using realtime processors
CN102768666A (en) * 2011-05-05 2012-11-07 上海可鲁系统软件有限公司 Method and system for storing and reading industrial data

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019205020A1 (en) * 2018-04-25 2019-10-31 深圳市锐明技术股份有限公司 Road condition recognition method, apparatus and device
CN108776891A (en) * 2018-07-18 2018-11-09 国网河北省电力有限公司经济技术研究院 A kind of scientific research consulting management platform based on big data

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101685460A (en) * 2008-09-23 2010-03-31 华为技术有限公司 Database device, method and system for processing shared data
CN102609435A (en) * 2010-12-20 2012-07-25 微软公司 Large-scale event evaluation using realtime processors
CN102768666A (en) * 2011-05-05 2012-11-07 上海可鲁系统软件有限公司 Method and system for storing and reading industrial data
CN102289519A (en) * 2011-09-14 2011-12-21 成都软智科技有限公司 Application server and method for coordinating data of same and database

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于个性化推荐的ios在线教育系统的设计与实现;黎艳秋;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180315;第I138-618页 *

Also Published As

Publication number Publication date
CN109710673A (en) 2019-05-03

Similar Documents

Publication Publication Date Title
CN107506451B (en) Abnormal information monitoring method and device for data interaction
CN111339186B (en) Workflow engine data synchronization method, device, medium and electronic equipment
CN111709527A (en) Operation and maintenance knowledge map library establishing method, device, equipment and storage medium
CN110262807B (en) Cluster creation progress log acquisition system, method and device
CN112162965B (en) Log data processing method, device, computer equipment and storage medium
CN108897874B (en) Method and apparatus for processing data
CN110019263B (en) Information storage method and device
CN112765152B (en) Method and apparatus for merging data tables
US11676345B1 (en) Automated adaptive workflows in an extended reality environment
CN111694866A (en) Data searching and storing method, data searching system, data searching device, data searching equipment and data searching medium
CN111061740A (en) Data synchronization method, equipment and storage medium
CN109409419B (en) Method and apparatus for processing data
CN113962597A (en) Data analysis method and device, electronic equipment and storage medium
CN113722600A (en) Data query method, device, equipment and product applied to big data
CN112965943A (en) Data processing method and device, electronic equipment and storage medium
CN112506490A (en) Interface generation method and device, electronic equipment and storage medium
CN107004036B (en) Method and system for searching logs containing a large number of entries
CN110716911B (en) Data processing method and device, electronic equipment and storage medium
CN116383207A (en) Data tag management method and device, electronic equipment and storage medium
CN112148705A (en) Data migration method and device
CN109710673B (en) Work processing method, device, equipment and medium
CN115454971A (en) Data migration method and device, electronic equipment and storage medium
CN113760988A (en) Method, device, equipment and storage medium for associating and processing unbounded stream data
CN113918659A (en) Data operation method and device, storage medium and electronic equipment
CN113127574A (en) Service data display method, system, equipment and medium based on knowledge graph

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