A meter distribution method, device and electronic equipment

A table sub-table and sub-table technology, applied in the field of database table sub-table processing, can solve the problems of not supporting table sub-table, complex implementation, poor performance and maintainability, etc., and achieve the effect of simple implementation and improved efficiency

Active Publication Date: 2018-03-30
ZHANGYUE TECH CO LTD
View PDF5 Cites 0 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
  • A meter distribution method, device and electronic equipment
  • A meter distribution method, device and electronic equipment
  • A meter distribution method, device and electronic equipment

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
Patent Type & Authority Patents(China)
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 Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products