Data block processing method and related product

Through the data block processing method, the problem of low efficiency in massive data operations is solved. Through block processing, the storage database pressure and retry cost are reduced, and the efficiency and security of data processing are improved.

CN118535556APending Publication Date: 2024-08-23SHENZHEN HEYTAP TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202310193343.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-02-21
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

When processing massive amounts of data, the lack of primary keys results in low data operation efficiency, prone to errors, increases retry time, and affects efficiency.

Method used

The data block processing method is used to perform data processing on the target block by determining the starting point of the block, and repeating this process until the data processing is completed, reducing the granularity of data operations, reducing storage database pressure and retry costs.

Benefits of technology

It improves the efficiency and security of data processing, reduces retry time costs, and adapts to the needs of massive data scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535556A
    Figure CN118535556A
Patent Text Reader

Abstract

The invention discloses a data partitioning processing method and related products, and the method comprises the steps: determining a partitioning starting point in response to a data processing request, the partitioning starting point being used for indicating a target partitioning to be processed currently in to-be-processed data, and the data processing request being used for requesting data processing of the to-be-processed data; and performing data processing on the target block indicated by the block starting point, determining the next block starting point, and repeatedly executing the step of performing data processing on the target block indicated by the block starting point until data processing of the to-be-processed data is completed. By adopting the method, the problem that the efficiency of data operation is influenced in the prior art can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and are related to but not limited to a data block processing method and related products. Background Art

[0002] At present, when performing data operations on massive data, it is required to specify the primary key of the data operation, use the primary key to locate the data, and then perform the corresponding data operation. Since the primary key and data record are in a one-to-one correspondence, and the primary key can only be used to operate one piece of data at a time, this will seriously affect the efficiency of data operations. If the primary key is not used for data operations, errors are likely to occur due to the large amount of data, which will increase the retry time of the data operation, thereby affecting the efficiency of data operations. Summary of the invention

[0003] In view of this, a data block processing method and related products provided in an embodiment of the present application can solve the problems that affect the efficiency of data operations in the prior art.

[0004] In a first aspect, an embodiment of the present application provides a data block processing method, including:

[0005] In response to a data processing request, determining a block starting point, the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed;

[0006] Data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed.

[0007] In a second aspect, an embodiment of the present application provides a data block processing device, including:

[0008] A determination module, configured to determine a block starting point in response to a data processing request, wherein the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing for the data to be processed;

[0009] The processing module is used to perform data processing on the target block indicated by the block starting point, determine the next block starting point, and repeatedly perform the step of performing data processing on the target block indicated by the block starting point until the data processing of the data to be processed is completed.

[0010] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.

[0011] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the embodiment of the present application.

[0012] In a fifth aspect, an embodiment of the present application provides a computer program product on which a computer program is stored, and when the computer program is executed by a processor, the method provided in the embodiment of the present application is implemented.

[0013] In a sixth aspect, an embodiment of the present application provides a chip, comprising a processor and an interface, wherein the processor and the interface are coupled, the interface is used to receive or output a signal, and the processor is used to execute a computer program to implement the method provided in the embodiment of the present application.

[0014] Compared with the prior art, this application has at least the following beneficial effects:

[0015] In an embodiment of the present application, a computer device determines a block starting point in response to a data processing request, wherein the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed; data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed. It can be seen that the present application can perform data processing based on data blocks. Compared with the data processing of the entire data to be processed (such as massive data), the granularity of data operations is smaller and the pressure on the storage database is also less; in addition, after data processing fails, the granularity of retries is smaller, which can save more time costs of retries. Thus, the efficiency and security of data processing can be better guaranteed. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.

[0017] Figure 1 It is a flow chart of a data block processing method provided in an embodiment of the present application.

[0018] Figure 2 It is a flowchart of another data block processing method provided in an embodiment of the present application.

[0019] Figure 3 It is a structural schematic diagram of a data block processing device provided in an embodiment of the present application.

[0020] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application.

[0021] Figure 5 It is a schematic diagram of the structure of a chip provided in an embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.

[0023] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0024] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0025] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0026] See also Figure 1 , is a flow chart of a data block processing method provided by an embodiment of the present application. Figure 1 The method shown is applied to a computer device, and the method comprises:

[0027] S101. In response to a data processing request, determine a block starting point, where the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed.

[0028] The present application may receive a data processing request, which is used to request data processing of the data to be processed, where the data to be processed may refer to a large amount of data whose amount exceeds a certain threshold. Accordingly, the present application may respond to the data processing request, use a block algorithm to send a code statement for calculating the starting point of the block to the data source (the data to be processed or the database in which it is located), and wait for the data source to return the corresponding calculation result, which at least includes the current block starting point. If the returned calculation result is successfully received, it can be determined that the data source has the next data block to be processed. Accordingly, the present application can obtain the target block indicated by the corresponding starting point of the block based on the starting point of the block and the size of the block. On the contrary, if the returned calculation result is not successfully received, it can be determined that the data source does not have the next data block to be processed, indicating that all the data to be processed have been processed and the process can be ended.

[0029] In some embodiments, the present application may pre-block the data to be processed to obtain at least one data block, and store these data blocks in a corresponding database to wait for data processing. The present application does not limit the implementation method of the above-mentioned block processing. For example, in one example, the present application may block the above-mentioned data to be processed according to a preset block size, thereby obtaining at least one data block. In another example, the present application may block the data to be processed according to a set sliding window to obtain at least one data block. Among them, the sliding window is set by the system or user, and its number is not limited, and can be set according to actual needs. For example, the present application can block the above-mentioned data to be processed according to a plurality of sliding windows with a certain preset order. The block size of each sliding window can be different, but it is necessary to ensure that the starting position of the next data block is the sum of the end position of the previous data block and one. The above-mentioned target block is a data block in at least one data block here.

[0030] It should be noted that the block algorithm involved in this application is not coupled with other business programs of the computer device and can be executed in parallel, and this application does not limit it.

[0031] S102, performing data processing on the target block indicated by the block starting point, and determining the next block starting point, and repeatedly performing the step of performing data processing on the target block indicated by the block starting point until the data processing of the data to be processed is completed.

[0032] In a specific embodiment, after determining the starting point of the block, the application can obtain the target block corresponding to the starting point of the block based on the starting point of the block, and then perform corresponding data processing on the target block. The data processing of the present application is a data operation set by the system or user, which may include but is not limited to any one or more of the following combinations: for example, data migration, data reading, data deletion, data update, data filtering, and data flow control, etc.

[0033] Taking data processing as data migration as an example, the present application may pre-set some data migration rules in the system, such as pre-configuring data filtering rules and data flow control rules. The data filtering rules may be used to filter and select the target data to be migrated from the initial data to be processed. The data flow control rules may be used to control or limit the rate of data migration, etc., which is not limited in the present application. Accordingly, the present application may perform corresponding data migration on the target blocks according to the above-mentioned pre-configured data migration rules.

[0034] It is understandable that when the present application successfully processes the data of the above-mentioned target block, the present application can repeat the principles of the above-mentioned steps S101-S102 to continue calculating and determining the next block starting point, and perform corresponding data processing on the target block corresponding to the next block starting point until the data processing of the entire data to be processed is completed. When the present application fails to process the data of the above-mentioned target block, the present application can retry or retry data processing on the target block to ensure data processing of the entire data to be processed.

[0035] It can be seen that in the scenario of massive data, the present application can process or operate massive data without perception and intrusion; dividing the massive data into several data blocks and using the data blocks as the smallest unit of data processing can reduce the granularity of single data processing and ensure that the data processing of massive data is controllable and retryable, which is conducive to improving the efficiency of data processing, reducing time costs, and adapting to more business scenarios.

[0036] The computer devices of the present application include but are not limited to smart phones (such as Android phones, IOS phones, etc.), personal computers, tablet computers, PDAs, e-readers, mobile Internet devices (MID, Mobile Internet Devices), wearable smart devices or other devices with communication functions, etc.

[0037] To help better understand the embodiments of this application, please refer to the following Figure 2 A detailed flow chart of data block processing is given as an example. Figure 2 The process shown includes:

[0038] S201. Configure data processing rules.

[0039] The data processing rules are some rules that are customized by the system or the user for data processing configuration, which may include but are not limited to data filtering rules, data flow control rules, etc. in data migration scenarios.

[0040] S202: Determine the data to be processed.

[0041] After receiving a data processing request, the present application can determine the data to be processed based on the data processing request.

[0042] S203, determine the starting point of the block.

[0043] At a certain moment, the application can use a block algorithm to send a program statement for calculating the block starting point to the data source (the data to be processed or the database where it is located), and wait for the data source to return the corresponding calculation result. The calculation result is used to indicate the current block starting point.

[0044] S204: Determine whether the block starting point is determined successfully.

[0045] If the returned calculation result is successfully received, it means that the data source has the next data block, and step S205 is continued; otherwise, if the returned calculation result is not successfully received, it means that the data source does not have the next data block, and it is determined that the data processing of all the data to be processed has been completed, and the process can be ended.

[0046] S205: Obtain the target block corresponding to the block starting point.

[0047] S206: Perform data processing on the target block.

[0048] S207: Determine whether the data processing of the target block is successful.

[0049] If the application successfully processes the data of the target block, it indicates that the target block has been processed, and steps S203-S207 can be repeated to determine and calculate the next block starting point to obtain the target block corresponding to the next block starting point, etc. On the contrary, if the application fails to process the data of the target block, the application can re-execute steps S205-S207 and re-process the data of the target block.

[0050] In an embodiment of the present application, a computer device determines a block starting point in response to a data processing request, wherein the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed; data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed. It can be seen that the present application can perform data processing based on data blocks. Compared with the data processing of the entire data to be processed (such as massive data), the granularity of data operations is smaller and the pressure on the storage database is also less; in addition, after data processing fails, the granularity of retries is smaller, which can save more time costs of retries. Thus, the efficiency and security of data processing can be better guaranteed.

[0051] It should be understood that although Figure 1 and Figure 2 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 and Figure 2 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.

[0052] Based on the foregoing embodiments, an embodiment of the present application provides a data block processing device, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0053] See also Figure 3 , is a schematic diagram of the structure of a data block processing device provided in an embodiment of the present application. Figure 3 The device shown includes a determination module 301 and a processing module 302; wherein:

[0054] The determination module 301 is used to determine a block starting point in response to a data processing request, wherein the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed;

[0055] The processing module 302 is used to perform data processing on the target block indicated by the block starting point, determine the next block starting point, and repeat the step of performing data processing on the target block indicated by the block starting point until the data processing of the data to be processed is completed.

[0056] In some embodiments, before determining the starting point of the block, the processing module 302 is further used to:

[0057] Processing the data to be processed in blocks to obtain at least one data block;

[0058] The determining module 301 is specifically used for:

[0059] Based on the number of repetitions of the data processing and the at least one data block, a block starting point calculation is performed on the data to be processed to obtain the current block starting point.

[0060] In some embodiments, the processing module 302 is specifically used to:

[0061] The data to be processed is processed in blocks according to a set sliding window to obtain at least one data block;

[0062] The starting position of the next data block is the ending position of the previous data block plus one.

[0063] In some embodiments, the processing module 302 is further configured to:

[0064] In the case where the block starting point cannot be obtained, it is determined that data processing of the data to be processed has been completed.

[0065] In some embodiments, the processing module 302 is specifically used to:

[0066] Obtaining the target block indicated by the block starting point;

[0067] The target blocks are subjected to corresponding data processing, wherein the data processing includes at least one of the following: data migration, data reading, data deletion, data updating, data filtering and flow control.

[0068] In some embodiments, when the data processing is the data migration, the processing module 302 is specifically used to:

[0069] According to the preset data migration rules, corresponding data migration is performed on the target block;

[0070] The data migration rules include data filtering rules and / or flow control rules.

[0071] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.

[0072] It should be noted that in the embodiments of this application Figure 3 The division of modules in the data block processing device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.

[0073] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.

[0074] The embodiment of the present application provides a computer device, which may be a vehicle, and its internal structure diagram may be as follows: Figure 4 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a data block processing method is implemented.

[0075] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.

[0076] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.

[0077] Those skilled in the art will understand that Figure 4 The structure shown in the figure 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 computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0078] In one embodiment, the apparatus provided by the present application can be implemented in the form of a computer program, which can be used in Figure 4 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the sampling device, for example, Figure 3 The determination module and processing module shown. The computer program composed of various program modules enables the processor to execute the steps of the data processing method of each embodiment of the present application described in this specification.

[0079] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0080] In response to a data processing request, determining a block starting point, the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed;

[0081] Data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed.

[0082] In one embodiment, before determining the block starting point, the processor further implements the following steps when executing the computer program:

[0083] Processing the data to be processed in blocks to obtain at least one data block;

[0084] Determining the block starting point includes:

[0085] Based on the number of repetitions of the data processing and the at least one data block, a block starting point calculation is performed on the data to be processed to obtain the current block starting point.

[0086] In one embodiment, the processing the data to be processed into blocks to obtain at least one data block includes:

[0087] The data to be processed is processed in blocks according to a set sliding window to obtain at least one data block;

[0088] The starting position of the next data block is the ending position of the previous data block plus one.

[0089] In one embodiment, the determining the block starting point further includes:

[0090] In the case where the block starting point cannot be obtained, it is determined that data processing of the data to be processed has been completed.

[0091] In one embodiment, the data processing of the target block indicated by the block starting point includes:

[0092] Obtaining the target block indicated by the block starting point;

[0093] The target blocks are subjected to corresponding data processing, wherein the data processing includes at least one of the following: data migration, data reading, data deletion, data updating, data filtering and flow control.

[0094] In one embodiment, when the data processing is the data migration, the performing corresponding data processing on the target block includes:

[0095] According to the preset data migration rules, corresponding data migration is performed on the target block;

[0096] The data migration rules include data filtering rules and / or flow control rules.

[0097] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0098] In response to a data processing request, determining a block starting point, the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed;

[0099] Data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed.

[0100] In one embodiment, before determining the block starting point, the processor further implements the following steps when executing the computer program:

[0101] Processing the data to be processed in blocks to obtain at least one data block;

[0102] Determining the block starting point includes:

[0103] Based on the number of repetitions of the data processing and the at least one data block, a block starting point calculation is performed on the data to be processed to obtain the current block starting point.

[0104] In one embodiment, the processing the data to be processed into blocks to obtain at least one data block includes:

[0105] The data to be processed is processed in blocks according to a set sliding window to obtain at least one data block;

[0106] The starting position of the next data block is the ending position of the previous data block plus one.

[0107] In one embodiment, the determining the block starting point further includes:

[0108] In the case where the block starting point cannot be obtained, it is determined that data processing of the data to be processed has been completed.

[0109] In one embodiment, the data processing of the target block indicated by the block starting point includes:

[0110] Obtaining the target block indicated by the block starting point;

[0111] The target blocks are subjected to corresponding data processing, wherein the data processing includes at least one of the following: data migration, data reading, data deletion, data updating, data filtering and flow control.

[0112] In one embodiment, when the data processing is the data migration, the performing corresponding data processing on the target block includes:

[0113] According to the preset data migration rules, corresponding data migration is performed on the target block;

[0114] The data migration rules include data filtering rules and / or flow control rules.

[0115] See also Figure 5 , is a schematic diagram of the structure of a chip provided in an embodiment of the present application. Figure 5 The chip 500 shown includes a processor 501 and an interface 502. Optionally, it may also include a memory 503. The number of the processor 501 may be one or more, and the number of the interface 502 may be multiple.

[0116] In one embodiment, for a chip used to implement the method embodiment described in this application:

[0117] The interface 502 is used to receive or output signals;

[0118] The processor 501 is used to execute part or all of the content in the above data block processing method embodiment.

[0119] Understandably, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0120] Understandably, the memory in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), and direct RAM (DR RAM). It should be noted that the memory of the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0121] It should be noted here that the description of the above storage medium, device and chip embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.

[0122] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.

[0123] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0124] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0125] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.

[0126] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0127] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0128] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.

[0129] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.

[0130] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0131] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.

[0132] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.

[0133] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A data block processing method, characterized in that: The method comprises: In response to a data processing request, determining a block starting point, the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing of the data to be processed; Data processing is performed on the target block indicated by the block starting point, and the next block starting point is determined, and the step of performing data processing on the target block indicated by the block starting point is repeated until the data processing of the data to be processed is completed.

2. The method according to claim 1, characterized in that Before determining the block starting point, the method further includes: Processing the data to be processed in blocks to obtain at least one data block; Determining the block starting point includes: Based on the number of repetitions of the data processing and the at least one data block, a block starting point calculation is performed on the data to be processed to obtain the current block starting point.

3. The method according to claim 2, characterized in that The processing of the to-be-processed data into blocks to obtain at least one data block comprises: The data to be processed is processed in blocks according to a set sliding window to obtain at least one data block; The starting position of the next data block is the ending position of the previous data block plus one.

4. The method according to claim 2, characterized in that: The determining of the block starting point also includes: In the case where the block starting point cannot be obtained, it is determined that data processing of the data to be processed has been completed.

5. The method according to claim 1, characterized in that The data processing of the target block indicated by the block starting point includes: Obtaining the target block indicated by the block starting point; The target blocks are subjected to corresponding data processing, wherein the data processing includes at least one of the following: data migration, data reading, data deletion, data updating, data filtering and flow control.

6. The method according to claim 5, characterized in that When the data processing is the data migration, the performing corresponding data processing on the target block includes: According to the preset data migration rules, corresponding data migration is performed on the target block; The data migration rules include data filtering rules and / or flow control rules.

7. A data block processing device, characterized in that: The device comprises: A determination module, configured to determine a block starting point in response to a data processing request, wherein the block starting point is used to indicate a target block currently waiting to be processed in the data to be processed, and the data processing request is used to request data processing for the data to be processed; The processing module is used to perform data processing on the target block indicated by the block starting point, determine the next block starting point, and repeatedly perform the step of performing data processing on the target block indicated by the block starting point until the data processing of the data to be processed is completed.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program executable on the processor, wherein: When the processor executes the program, the method according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Rapid data de-duplication method adapted to big data application

    CN103324699A

  • A capacity expansion method and device for a distributed storage system

    CN109683826A

  • Method and device for expanding capacity of independent redundant disk array and medium

    CN112114758A

  • Data processing method and device, storage medium and computer equipment

    CN112966132A

  • Stored data deduplication method, stored data deduplication apparatus, and deduplication program

    US20140229452A1