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

Table division method and apparatus, and electronic device

A technology of sub-table and sub-table, applied in the field of database sub-table processing, can solve the problems of complex implementation, no support for table sub-table, poor performance and maintainability, etc., to achieve the effect of improving efficiency and simple implementation.

Active Publication Date: 2017-06-23
ZHANGYUE TECH CO LTD
View PDF5 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The inventor found in the process of realizing the present invention that the Hibernate-Shards open source framework is a powerful sub-database framework based on Hibernate, but does not support sub-tables
Hibernate NamingStrategy is a table name replacement strategy provided by Hibernate. It can perform simple table splitting operations, but it cannot dynamically determine the table name based on instance parameters. Generally, it can only be used in scenarios where tables are split by time.
Hibernate QueryInterceptor is a query interceptor provided by Hibernate. Users can intercept when generating sql statements, and dynamically replace the corresponding table names with specific sub-tables. It needs to parse sql statements, which is complicated to implement, poor in performance and maintainability, and It is also not possible to dynamically determine the table name according to the instance parameters. Generally, the user can only divide the table by time

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
  • Table division method and apparatus, and electronic device
  • Table division method and apparatus, and electronic device
  • Table division method and apparatus, and electronic device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0078] Embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0079] It should be clear that the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0080] figure 1 For a sub-table method provided by the embodiment of the present invention, see figure 1 , the method includes the following steps:

[0081] S101. Dynamically generate multiple sub-table model classes.

[0082] When the data capacity in the database develops to a certain extent, in order to improve the response speed of the database, it is necessary to split the single large table of the entire database into multiple small tables. When splitting, a variety of preset rules can be used, such as:

[...

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

Embodiments of the invention disclose a table division method and apparatus, and an electronic device, and relate to the technical field of data processing. The table division method comprises the steps of dynamically generating a plurality of sub-table model classes; registering the sub-table model classes in a configuration center of an open source framework; selecting the sub-table model classes needed to be subjected to data operation in the sub-table model classes; and by utilizing a data operation function provided by the open source framework, executing corresponding data operation on instances of the sub-table model classes needed to be subjected to the data operation. In addition, the embodiments of the invention disclose the table division apparatus and the electronic device. Through the scheme provided by the table division method and apparatus, and the electronic device, the table division efficiency can be effectively improved.

Description

technical field [0001] The invention relates to the technical field of data processing, in particular to the database sub-table processing technology. Background technique [0002] Hibernate is an open source persistent middleware based on Java, which makes a lightweight package for JDBC (Java Data Base Connectivity, Java Database Connection). It adopts the ORM (Object Relation Mapping) mechanism to realize the mapping between Java objects and relational databases, transmit SQL statements to the database, and encapsulate the results returned by the database into objects. Internally encapsulates the operation of JDBC to access the database, and provides an object-oriented database access API to upper-level applications. Because it can operate data in the form of objects, it only needs to modify the allocation file when replacing the database, and it does not need to care about the type of the database, thus improving the development efficiency. [0003] Table splitting is a...

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/2282G06F16/2358
Inventor 钱文品余菲陈超
Owner ZHANGYUE 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