A database reading and writing method and system
A reading and writing method and database technology, applied in the field of database reading and writing methods and systems, can solve problems such as low database writing performance and low reading performance, and achieve optimized writing performance, optimized reading performance, and fast reading. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0080] figure 1 It is a schematic diagram of the structure of each node in the actual application of the embodiment of the present invention, wherein one metadata node includes n write replica nodes, and one write replica node corresponds to m read replica nodes, where n and m are both is a natural number. For example, for the write replica node 1, the corresponding m read replica nodes are: read replica node 1-1, read replica node 1-2... read replica node 1- m. In practical application, figure 1 The metadata node in the database first horizontally divides the record data in the database into multiple data segments, and then saves each data segment in a write copy node, and these write copy nodes store the data in the form of rows Storage, which is convenient for users to quickly write to the database. According to the characteristics of the data, the metadata node allocates multiple read replica nodes for the data segment in the write replica node under each write replica...
Embodiment 2
[0104] figure 1 It is a schematic diagram of the structure of each node in the actual application of the embodiment of the present invention, wherein the application functions and characteristics of each node can refer to the first embodiment about figure 1 description of.
[0105] see Figure 4 as shown, Figure 4 It is a flow chart of an embodiment realizing the data reading method of the present invention, and the specific steps can be as follows:
[0106] Step 401: Accept an access request initiated by a client, where the access request is a data read operation.
[0107] In this step, the metadata node accepts the data reading operation initiated by the client.
[0108] Step 402: Determine whether there is a primary key in the access request, if yes, execute step 403; if not, execute step 404.
[0109] In this step, the metadata node judges whether the access request contains the primary key.
[0110] Step 403: According to the global index stored in the metadata nod...
Embodiment 3
[0162] A database read-write system, see figure 1 , figure 1 It is a schematic structural diagram of the system disclosed in the embodiment of the present invention. The metadata node divides the record data horizontally into multiple data segments according to the primary key. Each data segment is saved as a write copy and multiple corresponding read copies. The write copy is stored in the form of row storage. The read copy is stored in the form of column storage, and the data in each read copy is organized in different ways. The system can include:
[0163] The metadata node is used to judge the request for the access initiated by the client. When the access request is a data writing operation:
[0164] Determine the data interval where the data to be written is located and the write replica node corresponding to the data interval according to the global index saved by itself and the primary key in the access request;
[0165] Initiate an operation request to the write re...
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