Unlock instant, AI-driven research and patent intelligence for your innovation.

A database reading and writing separation method and device

A technology of read-write separation and database, applied in the field of database read-write, can solve the problems of long development cycle, slow application process, inflexible application system development, etc., and achieve the effect of shortening the development cycle and enhancing flexibility.

Inactive Publication Date: 2018-04-06
ZICT TECH CO LTD
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, in terms of structure, the XML file needs to use an independent configuration file, and most of the configuration information will not be readjusted after the application system is developed; Switching between files and configuration files makes the application process slow; moreover, when changing functions, the configuration files need to be re-edited, resulting in inflexible development of the application system and lengthening of the development cycle

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A database reading and writing separation method and device
  • A database reading and writing separation method and device
  • A database reading and writing separation method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] A kind of database read-write separation method provided by the present invention, such as figure 1 As shown, the method includes:

[0028] Step 11: Intercept and parse the business request to determine whether there is an annotation part in the business request;

[0029] Specifically, this step is: in the actual application, first load the application environment, then add the required data package in the application environment, and open AOP (Aspect Oriented Programming) in the Spring (one of the application framework) files. function;

[0030] Described AOP intercepts all business requests, and utilizes the GetAnnotation (GetAnnotation) function to judge whether there are annotation parts in the current business request one by one; When the return value of the GetAnnotation is non-empty, it indicates that there are annotation parts in the current business request , then proceed to step 12; when the return value of the GetAnnotation is empty, it indicates that there...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for splitting database reading and writing. The method includes intercepting and analyzing service requests and determining whether the service requests contain annotation portions or not; analyzing annotation when the service requests contain the annotation; linking the service requests to corresponding databases accordingly to annotation analysis results and performing reading operation or writing operation. The invention further discloses a device for splitting database reading and writing. The method and the device have the advantages that configuration files do not need to be reedited, and only the annotation needs to be directly modified, so that the service requests can be linked with the different databases, and reading operation or writing operation can be performed.

Description

technical field [0001] The invention relates to a database reading and writing technology, in particular to a database reading and writing separation method and device. Background technique [0002] With the improvement of the enterprise mechanism, the amount of data in the enterprise application system also increases. While these application systems bring benefits to enterprises, they also increase the number of reads and writes of databases. Separating the read and write operations of the database is one of the ways to solve the pressure on the database read and write. [0003] At present, the common implementation method of separating database read and write operations is to configure the Extensible Markup Language (XML, Extensible Markup Language) file in a unified manner, and write the corresponding classes of database services, methods of executing classes, and attributes of classes into XML files. ; When the database executes a business, the guzz (one of the Java fr...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): G06F17/30
CPCG06F16/25G06F16/27
Inventor 付章华仇大帅祝明远
Owner ZICT TECH CO LTD