Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database access method, terminal and server

An access method and database technology, applied in the field of distributed storage, can solve problems such as long time-consuming, high frequency of client trial and error updates, and reduced fast read and write performance

Active Publication Date: 2017-03-29
CHINA MOBILE COMM GRP CO LTD
View PDF12 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Especially when the amount of data increases rapidly, the division of regions will be more frequent, and the frequency of client trial and error updates will be higher, which will take longer and reduce the performance of fast read and write

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
  • Database access method, terminal and server
  • Database access method, terminal and server
  • Database access method, terminal and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0055] In order to solve the problems existing in the background technology, an embodiment of the present invention provides a method for accessing a database. The method is applied to a terminal, and the terminal stores a metatable and a root table locally. The functions implemented by the method can be implemented by the processor in the terminal Calling the program code to achieve, of course, the program code can be stored in a computer storage medium, it can be seen that the terminal includes at least a processor and a storage medium.

[0056] Figure 1-4 It is a schematic diagram of the implementation flow of a database access method in the embodiment of the present invention, such as Figure 1-4 As shown, the method includes:

[0057] Step S101, the terminal starts a timer to start timing;

[0058] Here, the timing time of the timer is preset, and the setting of the timing time is related to the averageTime of the server end (possibly the master node). As a preferred e...

Embodiment 2

[0073] Based on the foregoing embodiments, an embodiment of the present invention provides a method for accessing a database, the method is applied to a terminal, and the terminal locally stores a meta table and a root table, figure 2 It is a schematic diagram of the implementation flow of the access method of the database in the second embodiment of the present invention, such as figure 2 As shown, the method includes:

[0074] Step S201, when the information in the metatable changes, the server updates the parameter values ​​in the properties of the metatable;

[0075] Here, besides the parameters in the prior art, the parameters in the metatable attribute also include newly added parameters in the above embodiments, for example, changeCount, changePercent, averageTime, updateFlag and Threshold.

[0076] Here, the server in this embodiment of the present invention may be a master node.

[0077] Step S202, the server judges whether the parameter value satisfies a preset c...

Embodiment 3

[0115] Based on the foregoing embodiments, the embodiment of the present invention provides a database access method, image 3 It is a schematic diagram of the implementation flow of the access method of the third database in the embodiment of the present invention, such as image 3 As shown, the method includes:

[0116] Step S301, the client starts running;

[0117] Here, the client is installed on the terminal, and the terminal runs the client.

[0118] Step S302, start timing;

[0119] Specifically, the timer is started, and the timer starts timing.

[0120] Step S303, during the timing of the timer, it is judged whether the access task is obtained? If yes, enter step S304, otherwise, enter step S310;

[0121] Step S304, read the local cache;

[0122] Here, the local cache is a root table and a metatable;

[0123] Step S305, accessing the target;

[0124] Specifically, search the root table and metatable according to the access task to obtain the target address, an...

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 present invention discloses a database access method, a terminal and a server. The terminal stores a metatable locally. The method comprises the steps that the terminal starts a timer to time; the terminal determines whether a task of accessing a database is obtained in a process of timing by the timer, and obtains a first determining result; when the first determining result indicates that the task of accessing the database is not obtained when the timer ends up timing, the terminal sends an access request to the server, wherein the access request is used for requesting first identifier information in the metatable, and the first identifier information is used for indicating whether the terminal needs to update a local metatable; the terminal receives an access response sent by the server, wherein the access response carries the first identifier information; and when the first identifier information indicates that the terminal needs to update the local metatable, the terminal updates the local metatable.

Description

technical field [0001] The invention relates to distributed storage technology, in particular to a method for accessing a database, a terminal and a server. Background technique [0002] Big data is a direction that has received widespread attention in the current academic research field and commercial application field. It refers to massive data with stronger decision-making power, insight discovery power and process optimization ability under the new processing mode. , high growth rates and diverse information assets. The strategic significance of big data technology lies not in mastering huge data information, but in professional processing of these meaningful data. That is to say, the value of big data does not lie in the data itself, but in the guiding and decision-making information that can be generated after the data is processed. [0003] Big data is generated along with cloud computing. In the cloud era, massive user data will be shifted from local to cloud, and ...

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
IPC IPC(8): H04L29/08
CPCH04L67/561H04L67/5682
Inventor 杨帅张峰王峰生冉鹏
Owner CHINA MOBILE COMM GRP CO LTD
Features
  • Generate Ideas
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More