Synchronized method for not only structured query language (NOSQL) and relational database management system (RDBMS) database and system thereof
A technology for synchronizing systems and databases, applied in the database field, can solve the problems that RDBMS databases cannot achieve high concurrent read and write massive data, efficient storage, poor scalability and availability of RDBMS databases, and achieve data integrity assurance and high performance.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 It is a flow chart of the first preferred embodiment of the method for synchronizing the NOSQL database and the RDBMS database of the present invention.
[0034] S101, obtaining a request for invoking a data operation method;
[0035] The data operation method includes a modification method and a deletion method, and may also include a new addition method, etc.;
[0036] S102. Convert the first entity instance object required to be saved by the data operation method into a second entity instance object according to the request, and store the second entity instance object in a NOSQL database;
[0037] The first entity instance object is an entity instance object in java format;
[0038] The second entity instance object is an entity instance object in JSON (JavaScript Object Notation, a lightweight data exchange format) format;
[0039] You can use Google's JSON open source component Gson for format conversion;
[0040] S103, acquiring the changed second ent...
Embodiment 2
[0047] figure 2 It is a flow chart of the second preferred embodiment of the method for synchronizing the NOSQL database and the RDBMS database of the present invention.
[0048] S201, obtaining a request for invoking a data operation method;
[0049] S202, judging whether the data operation method to be invoked by the request has public authority and is preset with an intercept annotation flag, if so, proceed to step S203; otherwise, proceed to step S208;
[0050] The public authority refers to public authority;
[0051] The interception annotation identification is the identification information that is preset in the data operation method that needs to be intercepted;
[0052] This step can be used to preset the data operation method that needs to be intercepted and the processing logic after interception through the Spring AOP processing method, and the unintercepted data operation method is used to process the request according to the known process of the prior art;
[0...
Embodiment 3
[0061] image 3 It is a flow chart of the third preferred embodiment of the method for synchronizing the NOSQL database and the RDBMS database of the present invention.
[0062] S301, obtaining a request for invoking a data operation method;
[0063] S302, judging whether the data operation method to be invoked by the request has public authority and is preset with an intercept annotation flag, if so, proceed to step S303; otherwise, proceed to step S313;
[0064] S303. Obtain the first entity instance object that needs to be saved by the data operation method;
[0065] S304. Obtain the hash value of the first entity instance object;
[0066] S305, storing the corresponding relationship between the hash value and the data operation method;
[0067] The corresponding relationship can be stored in the method registry;
[0068] The method registry is in the form of key (keyword) and value (value corresponding to the keyword), that is, saving or reading the corresponding relat...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com