Method and device for database splitting
A database and data table technology, applied in the database field, can solve the problems of occupying system resources, unintuitive data allocation, time-consuming, etc., and achieve the effect of improving query efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0038] figure 1 is a flow chart of a method for splitting a database according to an exemplary embodiment, and this embodiment is applicable to splitting a data table in a database into at least two databases, such as figure 1 As shown, the method for database splitting described in this embodiment includes:
[0039] In step S110, the preset position in the name of the data table to be allocated in the database is marked with an identifier of a sort relationship.
[0040] In step S120, the data table to be allocated is allocated to at least two sub-databases, wherein the sub-database where the allocated data table is located is determined according to the identifier of the sort relationship in the data table name.
[0041] Based on the above, the technical solution of the present disclosure can pre-judge the exact location of the split data, and improve the query efficiency after the split of the database.
Embodiment 2
[0043] figure 2 is a flow chart of a database splitting method shown according to an exemplary embodiment, such as figure 2 As shown, the method for database splitting described in this embodiment includes:
[0044] In step S210, the preset position in the name of the data table to be allocated in the database is marked with an identifier of a sorting relationship. Among them, the "preset position" can be set according to the needs. For example, for the data table name "ABC**", you can set "**" as the default position of the identifier, such as "ABC45", "ABC64", etc. Both are data table names. The preset position in this embodiment not only refers to the Arabic numerals in the penultimate and penultimate digits of the data table name, if the number of data tables is large, it may also be represented by three or more sorting numbers , and the sorting number can also be in other positions of the data table name, such as the first two or the first three or even the first few...
Embodiment 3
[0063] Figure 4 is a schematic diagram of a database splitting device according to an exemplary embodiment, such as Figure 4 As shown, the apparatus 1000 includes a name identification unit 310 and a data table allocation unit 320 .
[0064] The name identifying unit 310 is used to mark the preset position in the name of the data table to be allocated in the database with an identifier of sorting relationship. The identifiers of the sorting relationship in this embodiment include sequential numbers, or sequential uppercase letters, or sequential lowercase letters, or a combination of at least two of sequential numbers, uppercase letters, and lowercase letters. The data table allocating unit 320 is used for allocating the data table to be allocated to at least two sub-databases, wherein the sub-database where the allocated data table is located is determined according to the identifier of the sort relationship in the data table name.
[0065] Wherein the data table allocati...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More - R&D
- Intellectual Property
- Life Sciences
- Materials
- Tech Scout
- Unparalleled Data Quality
- Higher Quality Content
- 60% Fewer Hallucinations
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2025 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com



