CN106709064B - Data processing method and device and server - Google Patents

Data processing method and device and server Download PDF

Info

Publication number
CN106709064B
CN106709064B CN201710031693.4A CN201710031693A CN106709064B CN 106709064 B CN106709064 B CN 106709064B CN 201710031693 A CN201710031693 A CN 201710031693A CN 106709064 B CN106709064 B CN 106709064B
Authority
CN
China
Prior art keywords
database
data processing
operation instruction
preset
logic
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.)
Expired - Fee Related
Application number
CN201710031693.4A
Other languages
Chinese (zh)
Other versions
CN106709064A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710031693.4A priority Critical patent/CN106709064B/en
Publication of CN106709064A publication Critical patent/CN106709064A/en
Application granted granted Critical
Publication of CN106709064B publication Critical patent/CN106709064B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/242Query formulation
    • G06F16/2433Query languages

Abstract

The embodiment of the invention discloses a data processing method, a device and a server, wherein the method comprises the following steps: receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information, wherein the database operation instruction comprises a logic judgment command for operating a database; packaging the database operation instruction into a script; and operating the data recorded in the database according to the script. The scheme ensures the accuracy of data processing logic and improves the data processing efficiency of the server in the high-concurrency data processing process.

Description

Data processing method and device and server
Technical Field
The present invention relates to computer technologies, and in particular, to a data processing method, an apparatus, and a server.
Background
With the development of the internet and terminal devices, data transmission and processing between the terminal devices and the server are increasingly frequent. When the server needs to process a large amount of data initiated by the terminal device in a short time, due to high concurrency of data processing, a data processing logic is disordered, and accuracy of data processing is greatly reduced.
Taking the lottery activity as an example, in the time period of the continuous lottery, the server receives a large amount of information for participating in the lottery initiated by the terminal device, the determination of whether to win is usually limited by the number of wins of the user and the number of prizes finally available for winning, and due to the high concurrence processing of data, the user can still be determined to win when reaching the upper limit of the number of wins, or the number of prizes for winning is zero but still sends prizes.
Disclosure of Invention
The invention provides a data processing method, a data processing device and a server, so that the server can ensure the accuracy of data processing logic and improve the data processing efficiency in a high-concurrency data processing process.
In a first aspect, an embodiment of the present invention provides a data processing method, including:
receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information, wherein the database operation instruction comprises a logic judgment command for operating a database;
packaging the database operation instruction into a script;
and operating the data recorded in the database according to the script.
In a second aspect, an embodiment of the present invention further provides a data processing apparatus, including:
an information receiving module for receiving the data processing information sent by the terminal device,
the operation instruction generating module is used for generating a database operation instruction according to the data processing information, wherein the database operation instruction comprises a logic judgment command for operating a database;
the packaging module is used for packaging the database operation instruction into a script;
and the database operation module is used for operating the data recorded in the database according to the script.
In a third aspect, an embodiment of the present invention further provides a server, including: a processor, a memory, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information, wherein the database operation instruction comprises a logic judgment command for operating a database;
packaging the database operation instruction into a script;
and operating the data recorded in the database according to the script.
According to the technical scheme provided by the embodiment of the invention, the data processing information sent by the terminal equipment is received, the database operation instruction is generated according to the data processing information, the database operation instruction is packaged into the script, and the data recorded in the database is operated according to the script, so that the problem of logic confusion when the server processes high concurrent data is solved, the accuracy of data processing logic is ensured, and the accuracy of data processing is improved.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
fig. 1 is a flowchart of a data processing method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another data processing method provided by an embodiment of the invention;
FIG. 3 is a flow chart of another data processing method provided by an embodiment of the invention;
FIG. 4 is an interaction diagram of a data processing method according to an embodiment of the present invention;
FIG. 5 is a flow chart of another data processing method provided by an embodiment of the invention;
FIG. 6 is a block diagram of a data processing apparatus according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are for purposes of illustration and not limitation. 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.
Fig. 1 is a flowchart of a data processing method provided in an embodiment of the present invention, where the embodiment is applicable to a case of high-concurrency data processing, and the method may be executed by a computing device such as a server, as shown in fig. 1, a specific scheme provided in the embodiment is as follows:
s101, receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information.
In this embodiment, the terminal device may be an intelligent terminal used by a user, such as a mobile phone and a tablet computer, or may be a desktop computer and a notebook computer.
In this embodiment, the data processing information is sent by the terminal device, and interaction between the terminal device and the server can be realized. Illustratively, when a user clicks a login button in a display interface of the intelligent terminal, the intelligent terminal sends corresponding login information to the server according to login function logic triggered after the button is clicked so as to perform data interaction to complete a login function.
In this embodiment, the database operation instruction may perform operations such as adding, deleting, and modifying on data recorded in the database, where the database operation instruction includes a logic judgment command for operating the database. And determining whether to add, delete, modify and the like the data in the database according to the data recorded in the database and the logic judgment command. Illustratively, the database operation instruction is to subtract 1 from the number corresponding to the commodity with the ID 001 in the database table 1, where the logical judgment command may be that the number corresponding to the commodity number 001 is greater than or equal to 1.
In this embodiment, the database operation instruction may be one or more logic determination commands, and the logic determination command may be a branch statement in a programming language. The determination of whether to finally operate on the data recorded in the database may be made through a plurality of logical decision commands.
And S102, packaging the database operation instruction into a script.
Where the script is also referred to as a macro or batch file. In this embodiment, the script may be executed by the server once as a set of one or more database operation instructions.
Optionally, L ua scripts are used in the embodiment to encapsulate database operation instructions, the L ua script is itself a lightweight language, the official version only includes a simplified core and a basic library, the L ua is small in size and fast in start-up speed, the software is written in ANSI C language and is opened in a source code form, and only one hundred of K after compilation can be conveniently embedded in other programs.
S103, operating the data recorded in the database according to the script.
In this embodiment, the server executes the script program including the database operation instruction, instead of directly executing the database operation instruction. When the server executes the script, the data recorded in the database can be operated according to the execution result when the script is executed, and at the moment, the data recorded in the database cannot be changed by other data operation instructions due to the atomicity of the database execution script.
The embodiment provides a data processing method, which packages a data operation instruction into a script, and then operates data recorded in a database according to the script, so that when the database processes an operation program with complex transaction operation logic at high concurrency, the accuracy of logic processing is effectively ensured, and misoperation of data processing is avoided.
Fig. 2 is a flowchart of another data processing method provided in an embodiment of the present invention, and on the basis of the above embodiment, optionally, the generating a database operation instruction according to the data processing information includes:
and generating a database operation instruction according to the data processing information and a preset data processing logic.
Therefore, in the high-concurrency data processing process, the data operation instruction can be generated according to different event types and transaction judgment conditions by preset data processing logic.
Further, optionally, the packaging the database operation instruction into a script includes:
and if the logic of the database operation instruction is correct, packaging the database operation instruction into a script.
Therefore, when the database instruction is packaged, a logic judgment process is introduced, and the condition that logic errors or logic which does not meet the event requirement is executed by the server to further modify the database data is avoided.
Based on the above optimization, as shown in fig. 2, the technical solution provided in this embodiment is specifically as follows:
s201, receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information and a preset data processing logic.
In this embodiment, the preset data processing logic can be configured according to different processing events.
Illustratively, when a portal website performs time-limited preferential emergency purchase on a product under the flag, the number of the purchased goods is limited, and at the first time of opening the emergency purchase, the server receives a large amount of emergency purchase information, and the time of triggering the emergency purchase and whether the preferential product inventory meets the emergency purchase condition need to be logically judged. At this time, a corresponding database operation instruction is generated according to the data processing information and the logic judgment so as to judge whether the data recorded in the database needs to be operated and how to operate in the execution process.
S202, if the logic of the database operation instruction is correct, packaging the database operation instruction into a script.
In this embodiment, if it is determined that the data operation instruction is logically incorrect, the script encapsulation process of the data operation instruction is abandoned. For example, when the correctness of the database operation instruction logic is judged, the correctness judgment of the conventional database operation logic may be also included, such as the judgment of whether the logic that whether the foregoing robbery time meets the set requirement is correct.
S203, operating the data recorded in the database according to the script.
It should be noted that, the data processing method is executed by exemplarily combining S201-S203 into one embodiment, but this is only an example of the present invention, and in other embodiments of the present invention, S201, S102 and S203 may be combined into a new embodiment, or S101, S202 and S203 may also be combined into one embodiment.
The embodiment provides a data processing method, which generates a database operation instruction according to data processing information and preset data processing logic, improves flexibility of data processing, performs script encapsulation on the database operation instruction with correct logic in high-concurrency data processing so as to perform operation processing, improves data processing efficiency, and avoids a system crash problem caused by data processing abnormity.
Fig. 3 is a flowchart of another data processing method according to an embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, when the database is an intermediate database loaded in a memory, before receiving data processing information sent by a terminal device, the method further includes:
and loading the original data into the intermediate database.
Therefore, the efficiency of operating the database can be obviously improved.
Correspondingly, after the operating the data recorded in the database according to the script, the method further includes:
synchronizing information in the intermediate database into a physical database, the physical database comprising a database stored in a non-volatile storage medium.
And synchronizing the information of the intermediate database to the physical database so that the data in the physical database is finally operated according to the database operation instruction to complete data processing.
Based on the above optimization, as shown in fig. 3, the technical solution provided by this embodiment is specifically as follows:
s301, loading the original data into the intermediate database.
In this embodiment, the original data is data information recorded or entered by a physical database before the data processing operation is performed. For example, for a lottery event, the raw data may be the ID of the user, the number of times the user wins, and the ID and number of prizes. Optionally, in this embodiment, the intermediate database is implemented by using a Redis database, and in operation, the Redis is an open-source log-type or Key-Value database written in an ANSI C language, supporting a network, and being based on a memory and also being persistent, and provides APIs in multiple languages, meanwhile, the Redis database supports master-slave synchronization, data may be synchronized from a master server to any number of slave servers, and a slave server may be a master server associated with other slave servers.
S302, receiving data processing information sent by the terminal equipment, and generating a database operation instruction according to the data processing information.
S303, packaging the database operation instruction into a script.
S304, operating the data recorded in the database according to the script.
S305, synchronizing the information in the intermediate database into a physical database, wherein the physical database comprises a database stored in a nonvolatile storage medium.
In this embodiment, the information synchronization operation may be synchronous real-time synchronization or asynchronous synchronization, where the synchronous operation may ensure real-time update of the physical database, which is convenient for a supplier or an administrator to perform logic change and a new round of correspondence to a data operation instruction, and the asynchronous operation may update the physical database after a data processing event is completed, thereby improving the access efficiency of the database, and avoiding the problem of inaccurate data caused by repeatedly operating the physical database.
It should be noted that, the data processing method is performed by exemplarily combining S301 to S305 into one embodiment of the present invention, but is only an example of the present invention, and in other embodiments of the present invention, S301, S201 to S203, and S305 may be combined into a new embodiment.
The embodiment provides a data processing method, which loads original data in a middle database, processes a database operation instruction encapsulated in a script by using the atomicity operation of the middle database, synchronizes to a physical database after data processing is finished, avoids the problem of logic confusion during data operation, improves the efficiency of database operation, and further improves the accuracy of data operation.
On the basis of the above technical solution, the receiving data processing information sent by the terminal device, and generating a database operation instruction according to the data processing information includes:
and receiving lottery drawing information sent by the terminal equipment, and generating a database operation instruction according to the lottery drawing information and preset lottery drawing logic. As shown in fig. 4, fig. 4 is an interactive schematic diagram of a data processing method according to an embodiment of the present invention, the lottery information may be sent from the terminal device 41 to the server 42, the server 42 performs data processing after receiving the lottery information, and feeds back information such as whether a prize is won or not to the terminal device 41. Wherein the preset lottery logic comprises: judging whether the winning frequency of the user exceeds the preset frequency, if not, increasing the winning frequency of the user once, and correspondingly reducing the inventory number of the prizes; adding an identification of the prize to a winning list of the user. It should be noted that the lottery logic is a simple logic display, and only for describing the present embodiment, the scheme may perform multi-nested more complex logic processing to ensure stability of data operation.
Fig. 5 is a flowchart of another data processing method according to an embodiment of the present invention, where on the basis of the foregoing embodiment, optionally, the encapsulating the database operation instruction into a script includes:
and packaging the database operation instructions generated in the preset time or in the preset quantity into the script.
Therefore, multi-level database operation instructions can be realized in one script, and the execution can be performed at one time in the script execution process to obtain the final database operation result.
Based on the above optimization, as shown in fig. 5, the technical solution provided in this embodiment is specifically as follows:
s401, receiving data processing information sent by the terminal equipment, and generating a database operation instruction according to the data processing information.
S402, packaging database operation instructions generated in preset time or in preset quantity into a script.
In this embodiment, the preset time may be 0.05 second, 0.1 second, 0.5 second, etc., the preset number may be two, three, or five sets of database operation instructions, etc., and the specific time duration and the preset number of the database operation instructions may be flexibly set according to different processing transactions and the size of the concurrent data processing amount.
And S403, operating the data recorded in the database according to the script.
It should be noted that, the invention exemplarily combines S401-S403 into one embodiment to execute a data processing method, but is only an example of the invention, and in other embodiments of the invention, S201, S402, S403 may be combined into a new embodiment.
The embodiment provides a data processing method, which is characterized in that database operation instructions generated in preset time or in preset quantity are packaged into a script, so that when a server runs the script, a database can execute multiple groups of database operation instructions in one script at one time in the data operation process, the data processing speed is increased, and the script packaging efficiency is improved.
Fig. 6 is a structural diagram of a data processing apparatus according to an embodiment of the present invention, where the apparatus is configured to execute the data processing method according to the embodiment, and has functional modules and beneficial effects corresponding to the execution method. As shown in fig. 6, the apparatus includes an information receiving module 1, an operation instruction generating module 2, an encapsulating module 3, and a database operating module 4.
Wherein, the information receiving module 1 is used for receiving data processing information sent by the terminal equipment,
the operation instruction generating module 2 is configured to generate a database operation instruction according to the data processing information, where the database operation instruction includes a logic judgment command for operating a database;
the packaging module 3 is used for packaging the database operation instruction into a script;
and the database operation module 4 is used for operating the data recorded in the database according to the script.
The embodiment provides a data processing device, which encapsulates a data operation instruction into a script, and then operates data recorded in a database according to the script, so that when the database is used for high-concurrency processing of an operation program with complex transaction operation logic, the accuracy of logic processing is effectively ensured, and misoperation of data processing is avoided.
On the basis of the above technical solution, the operation instruction generating module 2 is specifically configured to:
and generating a database operation instruction according to the data processing information and a preset data processing logic.
On the basis of the above technical solution, the encapsulation module 3 is specifically configured to:
and if the logic of the database operation instruction is correct, packaging the database operation instruction into a script.
On the basis of the above technical solution, the apparatus further includes:
the loading module is used for loading original data into the intermediate database before receiving data processing information sent by the terminal equipment when the database is the intermediate database loaded in the memory;
and the synchronization module is used for synchronizing the information in the intermediate database into a physical database after the data recorded in the database are operated according to the script, wherein the physical database comprises a database stored in a nonvolatile storage medium.
On the basis of the above technical solution, the operation instruction generating module 2 is specifically configured to:
and receiving lottery drawing information sent by the terminal equipment, and generating a database operation instruction according to the lottery drawing information and preset lottery drawing logic.
On the basis of the above technical solution, the preset lottery drawing logic includes:
judging whether the winning frequency of the user exceeds the preset frequency, if not, increasing the winning frequency of the user once, and correspondingly reducing the inventory number of the prizes;
adding an identification of the prize to a winning list of the user.
On the basis of the above technical solution, the encapsulation module 3 is specifically configured to:
and packaging the database operation instructions generated in the preset time or in the preset quantity into the script.
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present invention. FIG. 7 illustrates a block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention. The server 12 shown in fig. 7 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 7, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a memory or 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.
The server 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 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 server 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. 6, 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 the described embodiments of the invention.
The server 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and may also communicate with one or more devices that enable a user to interact with the server 12, and/or with any devices (e.g., network card, modem, etc.) that enable the server 12 to communicate with one or more other computing devices, such communication may occur via input/output (I/O) interfaces 22. furthermore, the device/terminal/server 12 may also communicate with one or more networks (e.g., local area network (L AN), Wide Area Network (WAN) and/or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the device/terminal/server 12 via a bus 18. it should be appreciated that, although not shown, other hardware and/or software modules may be used in conjunction with the server 12, including, but not limited to, microcode, device drivers, redundant processing units, external drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
The processing unit 16 is operative to implement:
receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information, wherein the database operation instruction comprises a logic judgment command for operating a database;
packaging the database operation instruction into a script;
and operating the data recorded in the database according to the script.
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 (9)

1. A data processing method, comprising:
when the database is a middle database loaded in a memory, loading original data into the middle database;
receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information of different event types and object judgment conditions by preset processing logic, wherein the database operation instruction comprises a logic judgment command for operating a database, the data processing information is lottery drawing information, correspondingly, the preset processing logic is preset lottery drawing logic, the preset lottery drawing logic comprises the steps of judging whether the winning number of a user exceeds the preset number, if not, increasing the winning number of the user once, and correspondingly reducing the stock number of prizes; adding an identification of the prize to a winning list of the user;
packaging the database operation instructions generated in a preset time or in a preset quantity into a script;
operating the data recorded in the database according to the script;
synchronizing information in the intermediate database into a physical database, the physical database comprising a database stored in a non-volatile storage medium.
2. The method according to claim 1, wherein the generating of the database operation instruction according to the preset processing logic for the data processing information of different event types and object judgment conditions comprises:
and generating a database operation instruction according to the data processing information and a preset data processing logic.
3. The method according to claim 1 or 2, wherein encapsulating the database operation instructions generated in a preset time or in a preset number into a script comprises:
and if the logic of the database operation instruction is correct, packaging the database operation instruction into a script.
4. The method of claim 3, wherein the receiving the data processing information sent by the terminal device, and the generating the database operation instruction according to the data processing information comprises:
and receiving lottery drawing information sent by the terminal equipment, and generating a database operation instruction according to the lottery drawing information and preset lottery drawing logic.
5. A data processing apparatus, comprising:
the loading module is used for loading the original data into the intermediate database when the database is the intermediate database loaded in the memory;
an information receiving module for receiving the data processing information sent by the terminal device,
the operation instruction generating module is used for generating a database operation instruction according to the data processing information of different event types and object judgment conditions by preset processing logic, wherein the database operation instruction comprises a logic judgment instruction for operating a database, the data processing information is lottery information, the preset processing logic comprises a step of judging whether the winning number of the user exceeds the preset number, if not, the winning number of the user is increased once, and the inventory number of prizes is correspondingly reduced; adding an identification of the prize to a winning list of the user;
the packaging module is used for packaging the database operation instructions generated in preset time or in preset quantity into a script;
the database operation module is used for operating the data recorded in the database according to the script;
and the synchronization module is used for synchronizing the information in the intermediate database into a physical database after the data recorded in the database are operated according to the script, wherein the physical database comprises a database stored in a nonvolatile storage medium.
6. The apparatus according to claim 5, wherein the operation instruction generation module is specifically configured to:
and generating a database operation instruction according to the data processing information and a preset data processing logic.
7. The apparatus of claim 5 or 6, wherein the encapsulation module is specifically configured to:
and if the logic of the database operation instruction is correct, packaging the database operation instruction into a script.
8. The apparatus of claim 7, wherein the operation instruction generation module is specifically configured to:
and receiving lottery drawing information sent by the terminal equipment, and generating a database operation instruction according to the lottery drawing information and preset lottery drawing logic.
9. A server, comprising: a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the processor when executing the computer program implements the steps of:
when the database is a middle database loaded in a memory, loading original data into the middle database;
receiving data processing information sent by terminal equipment, and generating a database operation instruction according to the data processing information of different event types and object judgment conditions by preset processing logic, wherein the database operation instruction comprises a logic judgment command for operating a database, the data processing information is lottery information, the preset processing logic comprises the steps of judging whether the winning number of a user exceeds the preset number, if not, increasing the winning number of the user once and correspondingly reducing the stock number of prizes; adding an identification of the prize to a winning list of the user;
packaging the database operation instructions generated in a preset time or in a preset quantity into a script;
operating the data recorded in the database according to the script;
synchronizing information in the intermediate database into a physical database, the physical database comprising a database stored in a non-volatile storage medium.
CN201710031693.4A 2017-01-17 2017-01-17 Data processing method and device and server Expired - Fee Related CN106709064B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710031693.4A CN106709064B (en) 2017-01-17 2017-01-17 Data processing method and device and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710031693.4A CN106709064B (en) 2017-01-17 2017-01-17 Data processing method and device and server

Publications (2)

Publication Number Publication Date
CN106709064A CN106709064A (en) 2017-05-24
CN106709064B true CN106709064B (en) 2020-07-31

Family

ID=58908538

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710031693.4A Expired - Fee Related CN106709064B (en) 2017-01-17 2017-01-17 Data processing method and device and server

Country Status (1)

Country Link
CN (1) CN106709064B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446110B (en) * 2018-03-14 2022-01-04 武汉斗鱼网络科技有限公司 Lua script generation method, Lua script generation device, Lua script generation terminal and computer readable medium
CN109766365A (en) * 2018-12-13 2019-05-17 北京字节跳动网络技术有限公司 Run case control method, device and electronic equipment based on redis
CN111414198B (en) * 2020-03-18 2023-05-02 北京字节跳动网络技术有限公司 Request processing method and device
CN114820272A (en) * 2022-03-18 2022-07-29 维塔科技(北京)有限公司 Data interaction method and device, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
CN102129478A (en) * 2011-04-26 2011-07-20 广州从兴电子开发有限公司 Database synchronization method and system thereof
CN105468776A (en) * 2015-12-11 2016-04-06 北京奇虎科技有限公司 Method, device and system for operating database
CN106095878A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The database manipulation device and method of table is divided based on point storehouse

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101364891A (en) * 2007-08-10 2009-02-11 中兴通讯股份有限公司 System for collecting performance data by single point in distributed telecommunication network management and implementing method
CN102129478A (en) * 2011-04-26 2011-07-20 广州从兴电子开发有限公司 Database synchronization method and system thereof
CN105468776A (en) * 2015-12-11 2016-04-06 北京奇虎科技有限公司 Method, device and system for operating database
CN106095878A (en) * 2016-06-07 2016-11-09 中国建设银行股份有限公司 The database manipulation device and method of table is divided based on point storehouse

Also Published As

Publication number Publication date
CN106709064A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
EP3537286B1 (en) Configuration for application using microservices
CN106709064B (en) Data processing method and device and server
US9665841B2 (en) Cross-platform application framework
WO2018071406A1 (en) Database processing method, apparatus, and electronic device
CN114580344B (en) Test excitation generation method, verification system and related equipment
US20120185671A1 (en) Computational resource pipelining in general purpose graphics processing unit
US10540524B2 (en) Memory access protection using processor transactional memory support
CN107918555B (en) Method and apparatus for processing data based on physical host
US20220334868A1 (en) Synchronous business process execution engine for action orchestration in a single execution transaction context
CN103999036A (en) Method and system using exceptions for code specialization in a computer architecture that supports transactions
US8839251B2 (en) Automating sequential cross-application data transfer operations
CN111367799B (en) Method, device, medium and electronic equipment for locating source code breakdown position
US9317636B1 (en) System and method for stopping integrated circuit simulation
CN110096543B (en) Data operation method, device, server and medium of application program
US11892935B2 (en) Verification of control coupling and data coupling analysis in software code
CN115758004A (en) Webpage table display method and device, computer readable medium and electronic equipment
US10282235B1 (en) Single-click ejection of peripheral devices associated with virtual machines
US20180205617A1 (en) System and method for graphically building a virtual network of computer components
US20120072891A1 (en) Computer Language Syntax for Automatic Callback Function Generation
EP2907064B1 (en) License information access based on developer profiles
CN111382128A (en) File splitting method and device and computer system
CN113127051B (en) Application resource packaging process monitoring method, device, equipment and medium
CN114513736B (en) Acoustic testing method, equipment, terminal and storage medium for earphone
CN113592506B (en) Repeated payment processing method and device, electronic equipment and storage medium
US10990439B1 (en) Tracing task execution across services in microkernel-based operating systems

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20200731

CF01 Termination of patent right due to non-payment of annual fee