Data fragmentation method, device, electronic equipment and storage medium
A data sharding and data technology, applied in the computer field, can solve problems such as poor versatility and low development efficiency, and achieve the effect of improving efficiency and improving versatility
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0023] A data sharding method in an embodiment of the present disclosure, such as figure 1 As shown, the method includes: Step 110 to Step 130.
[0024] Step 110, intercepting data operations in preset database operations through aspect-oriented programming technology.
[0025] Aspect Oriented Programming (AOP, Aspect-Oriented Programming), the main purpose of realization is to extract aspects in the business processing process, which is facing a certain step or stage in the processing process, so as to obtain the The isolation effect of low coupling between. In specific implementation, the isolation effect can be achieved by using a dynamic proxy class (Proxy) to intercept the behavior of an object and add the functions we need. The data sharding methods disclosed in the embodiments of the present disclosure are combined into data service-based applications in the prior art in the form of middleware or other forms. The application architecture of the data fragmentation met...
Embodiment 2
[0063] A data fragmentation device disclosed in this embodiment, such as image 3 As shown, the device includes:
[0064] A data operation interception module 310, configured to intercept data operations in preset database operations through aspect-oriented programming techniques;
[0065] A data operation mapping module 320, configured to map the intercepted data operation to a preset data processing module;
[0066] The data processing execution module 330 is configured to determine a target data source according to a data processing policy matched with the data processing module, and perform a data operation corresponding to the intercepted data operation on the target data source, wherein the The data processing strategy is obtained by the data service from the configuration module in advance for local caching.
[0067] In some embodiments of the present disclosure, the data operation interception module 310 is further configured to: obtain the entry point of a predefine...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


