Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

MySQL database middleware preprocessing method

A middleware and preprocessing technology, applied in the field of communication, can solve problems such as inapplicable master-slave architecture, achieve convenient and flexible deployment, improve efficiency, and improve system query efficiency

Active Publication Date: 2018-06-12
JINAN JOVISION TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

This approach is only applicable to the case where the backend servers are all master libraries (both can be written to), and not applicable to the general master-slave architecture

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
  • MySQL database middleware preprocessing method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0035] this invention

[0036] S1: The middleware sorts and trims the prepared statements sent by the application program, then takes the hash value, and forms a prepared statement hash table. The same prepared statement corresponds to a hash value;

[0037] S2: The middleware sends the hash value to the application, and the application needs to send the obtained hash value and the parameters to be bound to the middleware at the same time;

[0038] S3: When the middleware receives the hash value and binding parameters sent by the application, it queries the corresponding prepared statement and operation type through the hash value, and replaces the last binding parameter;

[0039] S4: The middleware returns the hash value to the application again, and the application sends the received hash value and executes the command;

[0040] According to different load balancing strategies, the middleware executes on the corresponding back-end MySQL server sent with the recently reserve...

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 belongs to the field of communication, and particularly relates to an MySQL database middleware preprocessing method. The method comprises the following steps that an application programis connected with and uses middleware; the application program sends a prepared statement to obtain a hash value; the application program sets binding parameters through the hash value; the application program executes a sentence through the hash value; the application program obtains a query result. By means of the MySQL database middleware preprocessing method, support on preprocessing is morecomprehensive, all the preprocessing functions are entirely achieved in the aspect of the middleware, and there is almost no difference between connection of the application program with the middleware and the connection of the application program with an MySQL database for use. Load balancing of the rear-end MySQL database can be more efficiently achieved, all load balancing strategies are supported, and the system query efficiency is improved. Separation of reading and writing can be achieved to the greatest extent, and the load of a primary library is lowered. The method occupies few systemresources, and is conveniently and flexibly deployed on all types of servers.

Description

(1) Technical field [0001] The invention belongs to the communication field, in particular to a MySQL database middleware preprocessing method. (2) Background technology [0002] Generally speaking, a middleware is required to communicate between the MySQL cluster and the application. The role of middleware is that for applications, it does not need to care about whether the database is a stand-alone database or a cluster database, and only accesses the database through the middleware, without changing the code, and is not affected by changes in the database cluster architecture; for database clusters , you can freely perform load balancing distribution, flexibly adjust the architecture design, and the downtime of a certain database in the cluster will not affect the normal service. Middleware plays the role of proxy, forwarding, and relay, so that both the application program and the database cluster can be flexibly changed without affecting each other. [0003] The appli...

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
IPC IPC(8): G06F17/30
CPCG06F16/2433G06F16/2455G06F16/252
Inventor 李云龙安晓博
Owner JINAN JOVISION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products