Fragmented database routing method, system and device and storage medium
A database and routing technology, applied in the database field, can solve the problems of loss of data, business paralysis, increased pressure and overhead of central database and data routing, etc., to reduce load pressure, improve utilization, and reduce data torsion and interaction.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0061] refer to figure 1 , which shows a schematic flowchart of a specific embodiment of a method for routing a fragmented database in an embodiment of the present invention. Such as figure 1 As shown, a fragmented database routing method in the embodiment of the present invention includes the following specific steps:
[0062] S100. The client initiates a service data processing request including a shard key, and the shard key is used to determine the distribution of the service data in the shard database.
[0063] The client initiates a business data processing request, and the request includes a shard key, which determines the distribution of business data in the shard database. The shard key can be a single index or a mixed index of business data. Only the ID field index of the shard and the single or mixed index of business data are the only indexes that point to the shard where the business data is located. The client is an application program on the terminal device,...
Embodiment 2
[0085] refer to figure 2 , which shows a schematic flowchart of another specific embodiment of a fragmented database routing method in the embodiment of the present invention. Such as figure 2 As shown, based on Embodiment 1, a fragmented database routing method in the embodiment of the present invention specifically includes the following steps:
[0086] S200. The client initiates a service data processing request including a shard key, and the shard key is used to determine the distribution of the service data in the shard database.
[0087] S210. The client acquires fragment element mapping data according to the fragment key.
[0088] S220. The client acquires a target shard database instance including service data according to the shard element mapping data.
[0089] S230. The client creates an independent thread, uses the target shard database instance, switches the data source on the central database instance to the target shard database instance, and routes the ser...
Embodiment 3
[0095] refer to image 3 , shows a system block diagram of a specific embodiment of a fragmented database routing system in an embodiment of the present invention. Such as image 3 As shown, a fragmented database routing system according to an embodiment of the present invention includes a business data request unit, a data source switching unit, and a business data processing unit, and the data source switching unit is respectively connected to the business data requesting unit and the business data processing unit.
[0096] Wherein, the service data requesting unit is used to initiate a service data processing request including a shard key, and the shard key is used to determine the distribution of the service data in the shard database.
[0097] The data source switching unit is used to obtain fragmentation element mapping data according to the fragmentation key; obtain a target fragmentation database instance including business data according to the fragmentation element ...
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