WO2018201859A1 - 数据补录方法、装置、服务器和存储介质 - Google Patents
数据补录方法、装置、服务器和存储介质 Download PDFInfo
- Publication number
- WO2018201859A1 WO2018201859A1 PCT/CN2018/082421 CN2018082421W WO2018201859A1 WO 2018201859 A1 WO2018201859 A1 WO 2018201859A1 CN 2018082421 W CN2018082421 W CN 2018082421W WO 2018201859 A1 WO2018201859 A1 WO 2018201859A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- data
- identifier
- data processing
- library
- thread
- 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.)
- Ceased
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/215—Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors
Definitions
- the present application relates to a data supplementing method, apparatus, server and storage medium.
- the server responds to the service request and performs corresponding processing. When the server responds with more service requests, it needs to process large amounts of data.
- the production library in the server is the database actually used by the business to store the data used or generated in the production environment.
- the production library in the server is the database actually used by the business to store the data used or generated in the production environment.
- the large-scale data processing is performed in the production library, if the production library does not perform the predetermined task at the specified time, It may cause a large amount of data to be missing. If the data in the production library is missing, you need to perform the supplementary processing on the missing data.
- data replenishment is generally performed directly in the production library. Since the production library is a database actually used by the business, data re-recording directly in the production library may cause business data errors in the production environment, and the risk is high.
- a data supplementing method, apparatus, server, and storage medium are provided.
- a method of data supplementation including:
- the supplemental data is copied from the development library to the production library, and the supplemental data is processed by the production library.
- a data supplementing device comprising:
- a state obtaining module configured to acquire a data processing state of the production library when the preset time node is reached;
- a data identifier obtaining module configured to acquire, according to the data processing status, an unprocessed data identifier in the production library
- a copy module configured to copy the supplemental data from the development library to the production library, and process the supplemental data through the production library.
- a server comprising a memory and one or more processors, the memory storing computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the following step:
- One or more non-volatile storage media storing computer readable instructions, when executed by one or more processors, cause one or more processors to perform the following steps:
- FIG. 1 is an application scenario diagram of a data supplementing method according to one or more embodiments
- FIG. 2 is a block diagram of a server in accordance with one or more embodiments
- FIG. 3 is a schematic flow chart of a data supplementing method according to one or more embodiments.
- FIG. 4 is a flow diagram of obtaining a data processing state of a production library in accordance with one or more embodiments
- FIG. 5 is a schematic flowchart of obtaining a data identifier that is not processed by a production library according to one or more embodiments
- FIG. 6 is a flow diagram of detecting whether there is a complementary execution operation in accordance with one or more embodiments
- FIG. 7 is a flow diagram of generating supplemental data in accordance with one or more embodiments.
- FIG. 8 is a block diagram of a data supplementing device in accordance with one or more embodiments.
- FIG. 9 is a block diagram of a state acquisition module in accordance with one or more embodiments.
- FIG. 10 is a block diagram of a data identification acquisition module in accordance with one or more embodiments.
- Figure 11 is a block diagram of a data supplementing apparatus in another embodiment
- Figure 12 is a block diagram of a data supplementing apparatus in still another embodiment.
- FIG. 1 is an application scenario diagram of a data supplementing method in an embodiment.
- the application scenario may include a production library 10 and a development library 20 .
- the preset node When the preset node is reached, the data processing state of the production library 10 is acquired, and the unprocessed data identifier in the production library 10 is obtained according to the data processing state.
- the supplemental data is generated in the development library 20 based on the unprocessed data identification in the acquired production library 10, and the supplemental data is copied from the development library 20 to the production library 10, and the supplemental data is processed by the production library 10.
- the server includes a processor, memory, and network interface connected by a system bus.
- the memory of the server includes a non-volatile storage medium and an internal memory, the non-volatile storage medium storing an operating system, a database, and computer readable instructions.
- the database can include production libraries, test libraries, and development libraries.
- the production library refers to the production database, which is the database in actual use of the business.
- the test library refers to the test database. It is the database used by the tester to test.
- the data environment in the test library is basically consistent with the production library.
- the data in the test library is also synchronized with the production library.
- the development library refers to the development database, and the development library is in the development environment. Databases, program developers can use the development library to develop new services, application functions, and so on.
- the computer readable instructions are used to implement a data supplementing method applicable to a server provided in the embodiments of the present application.
- the server's processor is used to provide computing and control capabilities that support the operation of the entire server.
- the internal memory of the server provides a cached operating environment for operating systems and computer readable instructions in a non-volatile storage medium.
- the server's network interface is used to communicate with other computer devices, such as receiving generated supplemental data.
- the server can be implemented with a stand-alone server or a server cluster consisting of multiple servers.
- FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied.
- the server may include a ratio. More or fewer components are shown in the figures, or some components are combined, or have different component arrangements.
- a data supplementing method including the following steps:
- Step S310 when the preset time node is reached, the data processing state of the production library is obtained.
- the server may be provided with a production library, a test library and a development library, and the correspondence between the production library, the test library and the development library may be preset, and the production library may simultaneously correspond to one or more test libraries, and corresponding to one or more at the same time.
- the development library can store the production library and the corresponding test library and development library in the relationship correspondence table, and the relationship correspondence table can store the production library identifier, the corresponding test library identifier, and the development library identifier.
- the database identifier stored in the relationship correspondence table may be a number or a name of the database, and the database identifier may be composed of one or more of numbers, letters, symbols, and the like.
- the production library, the test library, and the development library may be named according to the correspondence between the production library, the test library, and the development library.
- the name of the production library is DB
- the corresponding test library name may be DB_1, DB_2, etc.
- corresponding The development library name can be DB-1, DB-2, etc., but is not limited to this, and is named according to the corresponding relationship, so that it is convenient to quickly find the test library and the development library corresponding to the production library and use them.
- the data manager can upload data processing tasks to the server in advance through the terminal.
- the data processing task may include information such as a production library identifier, a data identifier, a processing mode, a start time, and an end time.
- the data identifier may be a key of the data in the database ( The primary key) value, according to the data identifier, can be queried in the database to get the data that needs to be processed.
- the server may obtain a corresponding test library identifier according to the data processing task according to the data processing task, and obtain data corresponding to the data identifier in the test library that matches the test library identifier, and put the data into the production library.
- the acquired data is processed in the production library according to the processing method, and the processing is stopped at the end time.
- the preset time node refers to the end time in the data processing task.
- the production library has finished the data processing, and the server can obtain the data for processing from the production library that performs data processing. Data processing status.
- the production library can be a relational database, such as MY SQL, Oracle, DB2, etc., or a key-value (key-value) type database, such as redis, Memcached, etc., or an object-oriented database, a mesh database, etc. Limited to this.
- a key-value database it can speed up data access and operation, and improve server response speed.
- Step S320 obtaining an unprocessed data identifier in the production library according to the data processing state.
- the server can obtain the data processing status of each data to be processed from the production library for performing data processing.
- the data processing status may include processing completion, unprocessed completion, etc., and is used to indicate whether the data is processed when the preset time node is reached.
- the server may obtain a flag bit of each processed data in the production library, and determine a data processing state according to the flag bit. When the flag bit is the first flag bit, the data processing state is processed, when the flag bit When the second flag is set, the data processing status is unprocessed.
- the first flag bit may be E
- the second flag bit may be S, but is not limited thereto, for example, the first flag bit is 1, the second flag bit is 0, and the like.
- Step S330 generating the supplemental data according to the data identifier in the development library.
- the server may query the corresponding development library identifier according to the production library identifier, obtain the data corresponding to the unprocessed data identifier in the production library from the test library corresponding to the production library through the development library matching the development library identifier, and put the data corresponding to the unprocessed data identifier in the production library, and put In the development library, the supplemental data is generated in the development library corresponding to the production library.
- step S340 the supplemental data is copied from the development library to the production library, and the supplementary data is processed through the production library.
- the server can copy the supplemental data generated in the development library from the development library to the production library, and process the supplemental data through the production library to implement data re-recording.
- the data manager uploads a data processing task to the server by sending a short message to the server through the terminal.
- the data processing task includes the production library identifier DB and the customer number num_1 to num_100.
- the processing method is to send the customer information to the short message sending platform to send the short message.
- the start time is 12:00 and the end time is 13:00.
- the server can obtain the customer information with the customer number num_1 ⁇ num_100 from the test library DB_1 corresponding to the production library DB, and put the customer information into the production library DB.
- the server processes the customer information in the production library DB, and delivers the customer information of the customer number num_1 to num_100 to the short message sending platform, and when the server receives the response information of the successful sending of the short message sent by the short message sending platform.
- the data processing status of the corresponding customer information can be changed to the processing completion according to the customer number in the response information.
- the server can obtain the customer number whose data processing status is unprocessed from the production library DB. In this embodiment, the unprocessed customer number is num90 to num_100.
- the server can obtain the customer information with the customer number num90 ⁇ num_100 from the test library DB_1 through the development library DB-1 corresponding to the production library DB, and put the customer information with the customer number num90 ⁇ num_100 into the development library DB-1.
- the customer information of the customer number num90 to num_100 to be re-recorded is generated in the development library DB-1.
- the server can copy the customer information generated in the development library DB-1 to the production library DB, and re-deliver the customer information with the customer number num90 to num_100 to the short message sending platform through the production library DB for processing.
- the data supplementing method obtains the data processing state of the production library when the preset time node is reached, acquires the unprocessed data identifier in the production library according to the data processing state, and generates the supplemental data according to the data identifier in the development library, and Copying the supplemental data from the development library to the production library, processing the supplemental data through the production library, generating the supplemental data in the development library and copying it into the production library, can reduce the risk of the production library's supplementary data, and improve the data re-recording s efficiency.
- step S310 when reaching the preset time node, acquires the data processing state of the production library, including the following steps:
- Step S402 When the preset time node is reached, the thread identifier matching the preset time node in the production library is obtained.
- the data may be processed by one or more threads established in advance, and the server may obtain the thread identifier in the production library that matches the preset time node, that is, Obtain a thread identifier for data processing in the production library between the start time and the end time, and the thread identifier may be composed of one or more of numbers, letters, symbols, and the like.
- Step S404 respectively, searching for a data processing record table of each thread for performing data processing according to the thread identifier.
- Each thread in the production library that matches the preset time node can separately process different data, and respectively write the data to be processed into the corresponding data processing record table.
- one data may correspond to one data processing record
- the data processing record may include a data identifier, a flag bit for indicating a data processing state, a processing time, etc.
- the processing time refers to a thread starting to process data to the data. The time interval for processing completion.
- Step S406 scanning each piece of data processing record stored in the data processing record table, and acquiring data processing status in each piece of data processing record.
- the server may obtain a data processing record table corresponding to each thread according to the thread identifier matching the preset time in the production library, and scan each data processing record in each pair of each data processing record table to obtain each data processing.
- the flag bit in the record determines the data processing status of each data processing record according to the flag bit.
- step S320 acquires an unprocessed data identifier in the production library according to the data processing state, including the following steps:
- Step S502 detecting a flag bit in each piece of data processing record.
- the server may scan the data processing record table corresponding to each thread in the production library for data processing, and detect the flag bit in each data processing record in the data processing record table. When the flag bit is the first flag bit, Then, it can be determined that the data processing status of the data processing record is processing completion, and when the flag bit is the second flag bit, it can be determined that the data processing status of the data processing record is unprocessed.
- Step S504 when the flag bit in the data processing record is a preset flag bit, the data identifier in the data processing record whose flag bit is the preset flag bit is obtained.
- the preset flag bit may be the second flag bit.
- the data processing state of the data corresponding to the data processing record may be determined to be unprocessed.
- the server obtains the data identifier in the data processing record with the flag bit as the preset flag bit, and can obtain the unprocessed data identifier in the production library.
- multiple threads can be established in the production library for parallel processing, speeding up the data processing speed, and processing the data processing records in the record table according to the data corresponding to the thread, and quickly and accurately obtaining the unprocessed completion.
- Data identification can effectively improve the efficiency of data re-recording.
- the data supplementing method further includes the following steps:
- Step S602 Acquire, from the thread identifier that matches the preset time node, a thread identifier corresponding to the thread that includes the unprocessed data identifier.
- the server scans the data processing record table of each thread in the production library that matches the preset time node, and marks the data processing record table containing the unprocessed data identifier, and obtains the marked data processing record table.
- the thread ID of the corresponding thread is the thread ID of the corresponding thread.
- Step S604 Query the thread record table according to the corresponding thread identifier, determine whether the thread containing the unprocessed data identifier includes a complementary execution operation, and if yes, execute step S608, and if no, execute step S606.
- the server queries the thread record table according to the thread identifier of the thread corresponding to the marked data processing record table, and determines whether the thread containing the unprocessed data includes a complement execution operation.
- the thread record table may store the thread identifier, the thread creation time, the corresponding production library identifier, the processed data identifier, the creator, and whether to perform the execution.
- the creator refers to the account that created the thread, and the complement execution refers to the arrival.
- the time node is preset, the thread contains unprocessed data, and the thread reprocesses the unprocessed data.
- Step S606 generating the supplemental data according to the data identifier in the development library.
- the server may temporarily not process, and at the set time, the unprocessed data is processed by the thread, and the data of the thread is processed.
- the data corresponding to the data processing record whose flag bit is the second flag bit is complemented.
- the set time may be 0:00 am, 1 am, or the like, or a point in time when other servers receive less service service requests.
- the server may acquire data from the test library corresponding to the production library according to the unprocessed data identifier contained in the thread through the development library, and put In the development library, the complement data is generated in the development library, and the complement data generated in the development library is copied into the production library, and is processed by the thread again.
- the thread in the production library that matches the preset time node includes thread 1, thread 2, thread 3, and thread 4, and thread 1 and thread 3 contain data identifiers whose data processing status is unprocessed.
- the server query thread record table may determine that thread 1 includes a complement execution operation, and thread 3 does not include a complement execution operation, and may obtain the unprocessed data identifier included in thread 3 in the test library corresponding to the production library through the development library. Data, and the acquired data is put into the development library, the complement data is generated in the development library, and the supplemental data generated in the development library is copied into the production library, and the complement data is performed by the thread 3 in the production library. deal with.
- step S608 no processing is temporarily performed.
- the complement data corresponding to the thread that does not include the complement execution operation is generated in the development library, and when the thread includes the complementary execution operation, the process does not need to be performed.
- Data re-recording can reduce the amount of data of the supplemental data, reduce the risk of re-recording data in the production library, and improve the efficiency of data re-recording, while ensuring the stability of the production library.
- step S320 after obtaining the unprocessed data identifier in the production library according to the data processing state in step S320, the following steps are further included:
- Step S702 constructing a data generation script according to the unprocessed data identifier.
- the server obtains the data identifier of the data processing state in the production library as unprocessed data, and builds a data generation script according to the data identifier, and the data generation script can be a database executable script, such as SQL (Structured Query Language).
- the data generation script can contain one or more SQL statements.
- Step S704 submit the data generation script to the production library, so that the production library executes the data generation script to generate the supplemental data, and processes the supplementary data.
- the server can submit a data generation script built according to the unprocessed data identifier to the production library, and execute a data generation script through SVN (Subversion), which is an open source version management system.
- the server executes a data generation script through the SVN in the production library, establishes a connection with the test library corresponding to the production library, and acquires data corresponding to the unprocessed data identifier from the test library according to the SQL statement in the data generation script, in the production library.
- the supplemental data is generated and the generated supplemental data is processed through the production library.
- the data generation script can be constructed according to the unprocessed data identifier, and the data generation script can be directly executed by the production library to generate the supplemental data, which can reduce the risk of the production library supplemental data and improve the efficiency of data supplementation.
- FIGS. 3-7 are sequentially displayed as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Except as explicitly stated herein, the execution of these steps is not strictly limited, and the steps may be performed in other orders. Moreover, at least some of the steps in FIGS. 3-7 may include multiple sub-steps or multiple stages, which are not necessarily performed at the same time, but may be performed at different times, these sub-steps or stages The order of execution is not necessarily performed sequentially, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
- a data supplementing apparatus 800 including a state obtaining module 810, a data identifier obtaining module 820, a generating module 830, and a copying module 840.
- the state obtaining module 810 is configured to acquire a data processing state of the production library when the preset time node is reached.
- the data identifier obtaining module 820 is configured to obtain an unprocessed data identifier in the production library according to the data processing status.
- the generating module 830 is configured to generate the supplemental data according to the data identifier in the development library.
- the copy module 840 is configured to copy the supplemental data from the development library to the production library, and process the supplemental data through the production library.
- the data supplementing method obtains the data processing state of the production library when the preset time node is reached, acquires the unprocessed data identifier in the production library according to the data processing state, and generates the supplemental data according to the data identifier in the development library, and Copying the supplemental data from the development library to the production library, processing the supplemental data through the production library, generating the supplemental data in the development library and copying it into the production library, can reduce the risk of the production library's supplementary data, and improve the data re-recording s efficiency.
- the state acquisition module 810 includes a thread identification acquisition unit 812, a lookup unit 814, and a scanning unit 816.
- the thread identifier obtaining unit 812 is configured to acquire a thread identifier in the production library that matches the preset time node when the preset time node is reached.
- the searching unit 814 is configured to separately search for a data processing record table of each thread that performs data processing according to the thread identifier.
- the scanning unit 816 is configured to scan each data processing record stored in the data processing record table, and acquire data processing status in each piece of data processing record.
- the data identifier obtaining module 820 includes a detecting unit 822 and a data identifier acquiring unit 824.
- the detecting unit 822 is configured to detect the flag bit in each piece of data processing record.
- the data identifier obtaining unit 824 is configured to: when the flag bit of the data processing record is a preset flag bit, obtain the data identifier in the data processing record whose flag bit is the preset flag bit.
- multiple threads can be established in the production library for parallel processing, speeding up the data processing speed, and processing the data processing records in the record table according to the data corresponding to the thread, and quickly and accurately obtaining the unprocessed completion.
- Data identification can effectively improve the efficiency of data re-recording.
- the data supplementing apparatus 800 includes a state acquiring module 810, a data identifier acquiring module 820, a generating module 830, and a copying module 840, and further includes a thread identifier acquiring module 850 and determining Module 860.
- the thread identifier obtaining module 850 is configured to obtain, from the thread identifier that matches the preset time node, a thread identifier corresponding to the thread that includes the unprocessed data identifier.
- the determining module 860 is configured to query the thread record table according to the corresponding thread identifier, and determine whether the thread containing the unprocessed data identifier includes a complementary execution operation.
- the generating module 830 is further configured to generate the supplemental data according to the data identifier in the development library when the thread that includes the unprocessed data identifier does not include the complement execution operation.
- the complement data corresponding to the thread that does not include the complement execution operation is generated in the development library, and when the thread includes the complementary execution operation, the process does not need to be performed.
- Data re-recording can reduce the amount of data of the supplemental data, reduce the risk of re-recording data in the production library, and improve the efficiency of data re-recording, while ensuring the stability of the production library.
- the data supplementing apparatus 800 includes a state acquiring module 810, a data identifier acquiring module 820, a generating module 830, a copying module 840, a thread identifier acquiring module 850, and a determining module 860. It also includes a building module 870 and a submitting module 880.
- the building module 870 is configured to build a data generation script according to the unprocessed data identifier.
- the submitting module 880 is configured to submit the data generation script to the production library, so that the production library executes the data generation script to generate the supplemental data, and processes the supplementary data.
- the data generation script can be constructed according to the unprocessed data identifier, and the data generation script can be directly executed by the production library to generate the supplemental data, which can reduce the risk of the production library supplemental data and improve the efficiency of data supplementation.
- the various modules in the data-removing device described above may be implemented in whole or in part by software, hardware, and combinations thereof.
- the above modules may be embedded in the hardware in the processor or in the memory in the server, or may be stored in the memory in the server, so that the processor calls the corresponding operations of the above modules.
- a computer device comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by one or more processors such that one or more processors implement any of the present application
- the steps of the regression test method provided in the examples are not limited to:
- One or more non-transitory computer readable storage mediums storing computer readable instructions, when executed by one or more processors, cause one or more processors to be implemented in any one embodiment of the present application The steps provided by the regression test method.
- Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
- Volatile memory can include random access memory (RAM) or external cache memory.
- RAM is available in a variety of formats, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization chain.
- SRAM static RAM
- DRAM dynamic RAM
- SDRAM synchronous DRAM
- DDRSDRAM double data rate SDRAM
- ESDRAM enhanced SDRAM
- Synchlink DRAM SLDRAM
- Memory Bus Radbus
- RDRAM Direct RAM
- DRAM Direct Memory Bus Dynamic RAM
- RDRAM Memory Bus Dynamic RAM
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Debugging And Monitoring (AREA)
- Stored Programmes (AREA)
Abstract
Description
Claims (20)
- 一种数据补录方法,包括:当到达预设时间节点时,获取生产库的数据处理状态;根据所述数据处理状态获取所述生产库中未处理完成的数据标识;在开发库中根据所述数据标识生成补录数据;及将所述补录数据从所述开发库拷贝至所述生产库,并通过所述生产库处理所述补录数据。
- 根据权利要求1所述的方法,其特征在于,所述当到达预设时间节点时,获取生产库的数据处理状态,包括:当到达预设时间节点时,获取生产库中与所述预设时间节点匹配的线程标识;根据所述线程标识分别查找进行数据处理的各个线程的数据处理记录表;及对所述数据处理记录表中存储的各条数据处理记录进行扫描,并获取所述各条数据处理记录中的数据处理状态。
- 根据权利要求2所述的方法,其特征在于,所述根据所述数据处理状态获取所述生产库中未处理完成的数据标识,包括:对所述各条数据处理记录中的标志位进行检测;及当数据处理记录的标志位为预设标志位时,则获取标志位为预设标志位的数据处理记录中的数据标识。
- 根据权利要求2或3所述的方法,其特征在于,在所述在开发库中根据所述数据标识生成补录数据之前,所述方法还包括:从与所述预设时间节点匹配的线程标识中获取包含所述未处理完成的数据标识的线程对应的线程标识;根据所述对应的线程标识查询线程记录表,判断所述包含未处理完成的数据标识的线程是否包含补执行操作;及当不包含时,则执行所述在开发库中根据所述数据标识生成补录数据的步骤。
- 根据权利要求1所述的方法,其特征在于,在所述根据所述数据处理状态获取所述生产库中未处理完成的数据标识之后,所述方法还包括:根据所述未处理完成的数据标识构建数据生成脚本;及将所述数据生成脚本提交至所述生产库,以使所述生产库执行所述数据生成脚本以生成补录数据,并对所述补录数据进行处理。
- 一种数据补录装置,包括:状态获取模块,用于当到达预设时间节点时,获取生产库的数据处理状态;数据标识获取模块,用于根据所述数据处理状态获取所述生产库中未处理完成的数据标识;生成模块,用于在开发库中根据所述数据标识生成补录数据;及拷贝模块,用于将所述补录数据从所述开发库拷贝至所述生产库,并通过所述生产库处理所述补录数据。
- 根据权利要求6所述的装置,其特征在于,所述状态获取模块,包括:线程标识获取单元,用于当到达预设时间节点时,获取生产库中与所述预设时间节点匹配的线程标识;查找单元,用于根据所述线程标识分别查找进行数据处理的各个线程的数据处理记录表;及扫描单元,用于对所述数据处理记录表中存储的各条数据处理记录进行扫描,并获取所述各条数据处理记录中的数据处理状态。
- 根据权利要求7所述的装置,其特征在于,所述数据标识获取模块,包括:检测单元,用于对所述各条数据处理记录中的标志位进行检测;及数据标识获取单元,用于当数据处理记录的标志位为预设标志位时,则获取标志位为预设标志位的数据处理记录中的数据标识。
- 根据权利要求7或8所述的装置,其特征在于,所述装置还包括:线程标识获取模块,用于从与所述预设时间节点匹配的线程标识中获取包含所述未处理完成的数据标识的线程对应的线程标识;判断模块,用于根据所述对应的线程标识查询线程记录表,判断所述包含未处理完成的数据标识的线程是否包含补执行操作;及所述生成模块,还用于当所述包含未处理完成的数据标识的线程不包含补执行操作 时,则在开发库中根据所述数据标识生成补录数据。
- 根据权利要求6所述的装置,其特征在于,所述装置还包括:构建模块,用于根据所述未处理完成的数据标识构建数据生成脚本;及提交模块,用于将所述数据生成脚本提交至所述生产库,以使所述生产库执行所述数据生成脚本以生成补录数据,并对所述补录数据进行处理。
- 一种服务器,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:当到达预设时间节点时,获取生产库的数据处理状态;根据所述数据处理状态获取所述生产库中未处理完成的数据标识;在开发库中根据所述数据标识生成补录数据;及将所述补录数据从所述开发库拷贝至所述生产库,并通过所述生产库处理所述补录数据。
- 根据权利要求11所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:当到达预设时间节点时,获取生产库中与所述预设时间节点匹配的线程标识;根据所述线程标识分别查找进行数据处理的各个线程的数据处理记录表;及对所述数据处理记录表中存储的各条数据处理记录进行扫描,并获取所述各条数据处理记录中的数据处理状态。
- 根据权利要求12所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:对所述各条数据处理记录中的标志位进行检测;及当数据处理记录的标志位为预设标志位时,则获取标志位为预设标志位的数据处理记录中的数据标识。
- 根据权利要求12或13所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:从与所述预设时间节点匹配的线程标识中获取包含所述未处理完成的数据标识的线 程对应的线程标识;根据所述对应的线程标识查询线程记录表,判断所述包含未处理完成的数据标识的线程是否包含补执行操作;及当不包含时,则执行所述在开发库中根据所述数据标识生成补录数据的步骤。
- 根据权利要求11所述的服务器,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:根据所述未处理完成的数据标识构建数据生成脚本;及将所述数据生成脚本提交至所述生产库,以使所述生产库执行所述数据生成脚本以生成补录数据,并对所述补录数据进行处理。
- 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:当到达预设时间节点时,获取生产库的数据处理状态;根据所述数据处理状态获取所述生产库中未处理完成的数据标识;在开发库中根据所述数据标识生成补录数据;及将所述补录数据从所述开发库拷贝至所述生产库,并通过所述生产库处理所述补录数据。
- 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:当到达预设时间节点时,获取生产库中与所述预设时间节点匹配的线程标识;根据所述线程标识分别查找进行数据处理的各个线程的数据处理记录表;及对所述数据处理记录表中存储的各条数据处理记录进行扫描,并获取所述各条数据处理记录中的数据处理状态。
- 根据权利要求17所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:对所述各条数据处理记录中的标志位进行检测;及当数据处理记录的标志位为预设标志位时,则获取标志位为预设标志位的数据处理记录中的数据标识。
- 根据权利要求17或18所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:从与所述预设时间节点匹配的线程标识中获取包含所述未处理完成的数据标识的线程对应的线程标识;根据所述对应的线程标识查询线程记录表,判断所述包含未处理完成的数据标识的线程是否包含补执行操作;及当不包含时,则执行所述在开发库中根据所述数据标识生成补录数据的步骤。
- 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时还执行以下步骤:根据所述未处理完成的数据标识构建数据生成脚本;及将所述数据生成脚本提交至所述生产库,以使所述生产库执行所述数据生成脚本以生成补录数据,并对所述补录数据进行处理。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201710309466.3 | 2017-05-04 | ||
| CN201710309466.3A CN108255906B (zh) | 2017-05-04 | 2017-05-04 | 数据补录方法及装置 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2018201859A1 true WO2018201859A1 (zh) | 2018-11-08 |
Family
ID=62721701
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2018/082421 Ceased WO2018201859A1 (zh) | 2017-05-04 | 2018-04-10 | 数据补录方法、装置、服务器和存储介质 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN108255906B (zh) |
| WO (1) | WO2018201859A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117390059A (zh) * | 2023-10-16 | 2024-01-12 | 中国建设银行股份有限公司 | 一种头寸处理方法、装置、电子设备及计算机可读介质 |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111651466B (zh) * | 2020-05-09 | 2023-07-25 | 杭州数梦工场科技有限公司 | 数据采样方法及装置 |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103294574A (zh) * | 2013-06-25 | 2013-09-11 | 浙江宇视科技有限公司 | 一种快速实现业务存储切换的装置和方法 |
| CN104021033A (zh) * | 2014-06-23 | 2014-09-03 | 中国银行股份有限公司 | 一种繁忙处理节点的散列方法和系统 |
| CN104156360A (zh) * | 2013-05-13 | 2014-11-19 | 阿里巴巴集团控股有限公司 | 业务数据处理方法及系统 |
| CN105975510A (zh) * | 2016-04-28 | 2016-09-28 | 广东鹰视能效科技有限公司 | 一种基于智能仪表数据自动补录的方法及系统 |
Family Cites Families (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN103678726B (zh) * | 2012-09-05 | 2017-11-10 | 亿阳信通股份有限公司 | 一种数据补采方法和数据补采系统 |
| CN103853837B (zh) * | 2014-03-17 | 2017-07-28 | 上海爱数信息技术股份有限公司 | Oracle全自动不停生产数据库的表级备份恢复方法 |
| KR101662212B1 (ko) * | 2014-05-30 | 2016-10-04 | 주식회사 알티베이스 | 부분동기화 지원 데이터베이스 관리 시스템 및 데이터베이스 관리 시스템에서 부분동기화 방법 |
| CN104239444B (zh) * | 2014-09-01 | 2017-11-03 | 上海爱数信息技术股份有限公司 | Oracle数据库用的一致性数据保护与捕获一致性状态的方法 |
| CN104462568B (zh) * | 2014-12-26 | 2018-07-31 | 山东中创软件商用中间件股份有限公司 | 一种数据对账方法、装置和系统 |
-
2017
- 2017-05-04 CN CN201710309466.3A patent/CN108255906B/zh active Active
-
2018
- 2018-04-10 WO PCT/CN2018/082421 patent/WO2018201859A1/zh not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104156360A (zh) * | 2013-05-13 | 2014-11-19 | 阿里巴巴集团控股有限公司 | 业务数据处理方法及系统 |
| CN103294574A (zh) * | 2013-06-25 | 2013-09-11 | 浙江宇视科技有限公司 | 一种快速实现业务存储切换的装置和方法 |
| CN104021033A (zh) * | 2014-06-23 | 2014-09-03 | 中国银行股份有限公司 | 一种繁忙处理节点的散列方法和系统 |
| CN105975510A (zh) * | 2016-04-28 | 2016-09-28 | 广东鹰视能效科技有限公司 | 一种基于智能仪表数据自动补录的方法及系统 |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117390059A (zh) * | 2023-10-16 | 2024-01-12 | 中国建设银行股份有限公司 | 一种头寸处理方法、装置、电子设备及计算机可读介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108255906A (zh) | 2018-07-06 |
| CN108255906B (zh) | 2020-08-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112148509A (zh) | 数据处理方法、装置、服务器及计算机可读存储介质 | |
| CN110515795B (zh) | 一种大数据组件的监控方法、装置、电子设备 | |
| WO2018161760A1 (zh) | 区块链数据存储系统和方法 | |
| CN105205053A (zh) | 一种数据库增量日志解析方法及系统 | |
| WO2019056494A1 (zh) | 图表生成方法、装置、计算机设备和存储介质 | |
| CN106899654B (zh) | 一种序列值生成方法、装置及系统 | |
| WO2018177205A1 (zh) | 回归测试方法、装置、计算机设备和存储介质 | |
| WO2019037418A1 (zh) | 代码管理方法、装置、计算机设备和计算机可读存储介质 | |
| US20130275369A1 (en) | Data record collapse and split functionality | |
| CA3191210C (en) | DATA SYNCHRONIZATION METHOD AND DEVICE, COMPUTER EQUIPMENT AND STORAGE MEDIA | |
| WO2019037414A1 (zh) | 页面配置更新方法、装置、服务器和存储介质 | |
| WO2022041672A1 (zh) | 分布式数据库系统的全量备份方法、装置及计算机可读存储介质 | |
| CN108573019B (zh) | 一种数据迁移方法、装置、电子设备及可读存储介质 | |
| CN114416689A (zh) | 数据迁移方法、装置、计算机设备、存储介质 | |
| WO2023045054A1 (zh) | 结构化查询语句的生成方法、装置和计算机设备 | |
| WO2018006723A1 (zh) | 一种针对数据库的数据修改请求处理方法及装置 | |
| CN112000678A (zh) | 数据同步方法、装置、服务器及存储介质 | |
| WO2020124619A1 (zh) | 数据处理方法、装置、计算机设备及存储介质 | |
| WO2018201859A1 (zh) | 数据补录方法、装置、服务器和存储介质 | |
| CN112363944A (zh) | 一种用于多环境接口返回值对比的方法及设备 | |
| CN115994189A (zh) | 多环境数据库的结构同步方法、装置、设备及介质 | |
| CN113961522B (zh) | 一种pcap数据包分割方法、装置、设备及存储介质 | |
| CN114064674A (zh) | 数据同步方法、装置、计算机设备、存储介质和产品 | |
| CN110895531A (zh) | 数据存储表的数据写入方法、分区服务器及电子设备 | |
| CN115756521B (zh) | 云应用处理方法、装置、计算机设备、存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 18794505 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18794505 Country of ref document: EP Kind code of ref document: A1 |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 18794505 Country of ref document: EP Kind code of ref document: A1 |
|
| 32PN | Ep: public notification in the ep bulletin as address of the adressee cannot be established |
Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 13/03/2020) |