Unlock instant, AI-driven research and patent intelligence for your innovation.

Data access method and device

A data access and equipment technology, applied in the database field, can solve the problem of low data access efficiency and achieve the effect of improving data access efficiency

Active Publication Date: 2011-11-16
ZTE CORP
View PDF3 Cites 24 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] The embodiment of the present invention provides a data access method and device to solve the problem of low data access efficiency existing in the prior art

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
  • Data access method and device
  • Data access method and device
  • Data access method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0035] Such as figure 1 As shown, it is a schematic diagram of the method steps of data access in Embodiment 1 of the present invention, and the method includes:

[0036] Step 101: Receive an access request from an access user, the access request carries an access path, and the access path includes at least one node name.

[0037] In the solution of the first embodiment, when an access user wishes to access content in a database such as an object storage system, an access request carrying an access path is sent to the database through an access interface provided by the database.

[0038] The node name in the access path includes the node name of the node actually desired by the access user, and the node names of the nodes passed on the path from the root node where the node is located to the node. When multiple node names are included in the access path, each node name can be arranged according to the relationship order of the hierarchy level, or can be arranged out of order...

Embodiment 2

[0055] Embodiment 2 of the present invention is based on Embodiment 1, and details how to independently store the first node ID between the node ID of the parent node and the node IDs of the child nodes at the level below the parent node in a database such as an object storage system. One correspondence, a scheme of a second correspondence between the node identifier and the metadata of the node.

[0056] When initializing the database, you can use the key-value pair (Key-Value) database building method to generate two database files for the content stored in the database, as follows:

[0057] 1. A directory relationship file, which records the first corresponding relationship between the node identifier of the parent node and the node identifiers of the child nodes of the lower level of the parent node.

[0058] The first corresponding relationship recorded in the directory relationship file represents the hierarchical relationship between nodes, and the hierarchical relation...

Embodiment 3

[0085] The third embodiment of the present invention is based on figure 2 Take the tree structure shown as an example to describe in detail how to use the contents recorded in Table 1 and Table 2 to realize data access.

[0086] Such as image 3 As shown, it is a schematic diagram of the steps of data access in Embodiment 3 of the present invention, and the method includes the following steps:

[0087] Step 301: Receive an access request, the name of the node included in the access path in the access request is: a-b-d.

[0088]Step 302: Read Table 1 in the directory relationship file, search for the Key-Value whose Key value is the root node name a, and extract the content ID1 of the Value value from it as the current identifier.

[0089] Step 303: continue to search the Key-Value whose Key value is the current identifier ID1+$ from the table 1, and extract Value 2 from it as the dir-handle of node a.

[0090] Step 304: continue to search from the table 1 for the Key-Value...

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

The invention discloses a data access method and device. The data access method is mainly characterized in that by means of an independent storage manner, a hierarchical relation among nodes and a corresponding relation between the nodes and metadata are pre-stored, so that a user can utilize the pre-stored hierarchical relation to determine the hierarchical relation between an accessed node and a superior node thereof when the user accesses the nodes; and furthermore, the node which the user actually expects to access is rapidly positioned, and the metadata of the node is returned, so that the user accesses the nodes according to the metadata. Because the content for expressing the hierarchical relation among the nodes is not added in the metadata in a data access scheme provided by the invention and the hierarchical relation among the nodes is stored independently, the accessed node can be rapidly found out according to the hierarchical relation stored independently when the data access is performed, so that the data access efficiency is effectively increased.

Description

technical field [0001] The invention relates to database technology, in particular to a data access method and device. Background technique [0002] With the development of cloud storage technology, the data access interface standard for cloud storage has been gradually formulated and improved. The currently commonly used object storage system (Object-Based Storage System) is based on the data management interface standard of cloud storage. Designed prototype system based on cloud storage. [0003] The object storage system adopts a flat storage structure, that is, in the object storage system, the data nodes to be stored are stored in parallel, and there is no upper and lower levels between data nodes. For example, if 100 data nodes need to be stored in the object storage system, the content of each data node is sequentially stored in the storage space of the object storage system. This flat data storage method has high efficiency. Whenever a new data node needs to be sto...

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 Applications(China)
IPC IPC(8): G06F17/30
Inventor 俞超龙泓琳欧阳伟
Owner ZTE CORP