Database partition method and device
A database and data technology, applied in the field of communication, can solve the problem of increasing query time, etc., achieve the effect of reducing query scanning time, reducing the time required, and improving efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0035] refer to figure 1 , showing a first embodiment of a database partitioning method of the present invention, comprising the following steps:
[0036] Step 101: Obtain multiple required report types.
[0037] The type of report required can be determined according to the actual situation. Generally speaking, the year, month, and date of the performance report made by the staff change, but the time point (hour, minute, and second) does not change. For example, the daily report of a certain bureau, The start time is 8:00 in the morning, and the end time is 8:00 in the next morning. Although the date changes every time the report is made, the time point at 8:00 does not change. Even in special cases, the time points of some types of reports will change, but the time points of most types of reports will be relatively stable, and it is necessary to obtain reports with relatively stable time points and infrequent changes. For example, a network-wide daily report for a certain ...
Embodiment 2
[0053] refer to figure 2 , showing the second embodiment of a database partition method of the present invention, comprising the following steps:
[0054] Step 201: Obtain multiple required report types.
[0055] Step 202: Determine database partition rules according to time nodes in various required report types.
[0056] Step 203: Write the determined database partition rule into a configuration file, and use a scheduled task to automatically create a partition according to the configuration file.
[0057] For example, for an oracle database, you can use iob as a scheduled task to automatically create partitions for the database according to the configuration file.
[0058] By writing the partition rules into the configuration file, and using a scheduled task to automatically create partitions according to the configuration files, the system can automatically create partitions according to the partition rules, avoiding errors caused by human operations.
Embodiment 3
[0059] refer to image 3 , showing the third embodiment of a database partition method of the present invention, comprising the following steps:
[0060] Step 301: Obtain multiple required report types.
[0061] Step 302: Determine database partition rules according to time nodes in various required report types.
[0062] Step 303: Determine whether the query condition of the required data in the required report includes other conditions than time, if necessary, determine the database sub-partitioning rule according to the corresponding query condition, and go to Step 304A; otherwise, go to Step 304B.
[0063] Step 304A: Partition the database according to the determined database partitioning rule, and perform sub-partitioning on the data partition according to the database sub-partitioning rule.
[0064] Step 304B: Partition the database according to the determined database partitioning rule.
[0065] Other query conditions can be whether the data of some NEs (one or some ...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com