Check patentability & draft patents in minutes with Patsnap Eureka AI!

Stateless data unified access method and system for relational database and non-relational database

An access method, data access technology, applied in the direction of database distribution/replication, structured data retrieval, special data processing applications, etc., to achieve the effect of convenient use and high efficiency

Pending Publication Date: 2022-04-19
HOHAI UNIV
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] In recent years, with the development of information technology, big data technology has been widely used in various information fields. Among them, HBASE and MongoDB are non-relational databases, which are widely used in the field of big data. There are differences in data access operations between HBASE, MongoDB and relational databases. Larger, HBASE is a column-oriented database, which is based on Hadoop distributed files, and has its own set of commands for data access operations; MongoDB is a database oriented to JSON objects, and has its own set of operation commands; relational databases Mainly SQL operations; with the development of big data technology in recent years, relational databases, and non-relational databases such as Hbase and MongoDB are often mixed in an information system to shield the differences in operations on different types of databases, allowing users to It is of great significance to operate non-relational and relational databases in a unified manner, so that the first aspect reduces the threshold for using non-relational Hbase and MongoDB databases; the second aspect improves the development efficiency of developers; the third aspect improves the application software Reliability; at present, there is no such middleware in China or abroad

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
  • Stateless data unified access method and system for relational database and non-relational database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0032] Such as figure 1 As shown, the present invention provides a method for unified stateless data access of relational databases and non-relational databases, including: performing stateless unified access to relational databases and non-relational databases through pre-established middleware for relational databases and non-relational databases. Data access, realizing unified access to data in relational databases and non-relational databases.

[0033] The JavaBean object expresses metadata through the Java annotations provided by the relational database and non-relational database stateless system access middleware.

[0034] The non-relational databases include HBASE and MongoDB, and the stateless unified access middleware for relational databases and non-relational databases is UnifyDataAcces3.0, which is stateless and thread-safe.

[0035] The above metadata includes object-level metadata @UnifyAccessDataset and property metadata @Persistent, @Prompt, @Referrence, @Ref...

Embodiment 2

[0069] A stateless data unified access system for a relational database and a non-relational database provided by an embodiment of the present invention includes:

[0070] The data access module is used to execute: to perform data access to relational databases and non-relational databases through the pre-established stateless unified access middleware for relational databases and non-relational databases, so as to realize data unification in relational databases and non-relational databases access.

[0071] The stateless unified access middleware of the relational database and the non-relational database is established by the following method: connecting the relational database and the non-relational database, and encapsulating the relational database and the non-relational database with MyConnection to obtain the stateless unified access of the relational database and the non-relational database middleware.

Embodiment 3

[0073] Such as figure 1 As shown, a flow chart of a relational database and non-relational database stateless unified data access method provided by the embodiment of the present invention, non-relational database includes HBASE and MongoDB, relational database, non-relational database stateless unified data access middleware For UnifyDataAcces3.0, it is stateless and thread-safe.

[0074] After the relational database, HBASE and MongoDB are respectively connected, MyConnection package is performed, and then HBASEDataAccess, MongoDBDataAccess and SQLDataAccess are performed respectively, that is, the data access of the three databases is performed, and the unified access of the relational database, HBASE and MongoDB is realized, and data access is provided to the user Serve.

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 stateless unified access middleware method and system for a relational database and a non-relational database, and belongs to the technical field of computer application, and the method comprises the following steps: performing data access on the relational database and the non-relational database through pre-established stateless unified access middleware of the relational database and the non-relational database, unified access of data in the relational database and the non-relational database is realized; the middleware is established through the following method: connecting a relational database and a non-relational database, and performing MyConsection unified packaging on the relational database and the non-relational database to realize stateless unified acquisition and persistence of data of the relational database and the non-relational database; the middleware is stateless, so that an application system is more convenient and efficient to use, and thread security is realized in multi-thread development; different types of database operation differences are shielded, a user can operate two databases in a unified mode, and a unified data access and persistent interface is provided for the user.

Description

technical field [0001] The invention relates to a stateless data unified access method and system of a relational database and a non-relational database, belonging to the technical field of computer applications. Background technique [0002] In recent years, with the development of information technology, big data technology has been widely used in various information fields. Among them, HBASE and MongoDB are non-relational databases, which are widely used in the field of big data. There are differences in data access operations between HBASE, MongoDB and relational databases. Larger, HBASE is a column-oriented database, which is based on Hadoop distributed files, and has its own set of commands for data access operations; MongoDB is a database oriented to JSON objects, and has its own set of operation commands; relational databases Mainly SQL operations; with the development of big data technology in recent years, relational databases, and non-relational databases such as ...

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 Applications(China)
IPC IPC(8): G06F16/27
CPCG06F16/27
Inventor 梁正和
Owner HOHAI UNIV
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More