Data access method and equipment

A data access and data technology, applied in electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as poor performance, unstable data set access, and large data access, achieve significant performance improvement, avoid data The effect of reading inconsistency and improving carrying capacity

Active Publication Date: 2018-01-09
SHANGHAI HODE INFORMATION TECH CO LTD
View PDF10 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The purpose of the present invention is to provide a data access method, which can solve

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the above objects, features and advantages of the present invention more comprehensible, the present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0042] Such as figure 1 As shown, the present invention provides a data access method, including:

[0043] Step S1, receiving a read request, and judging whether the number of access failures of the centralized memory cache exceeds a preset threshold,

[0044] Here, centralized memory cache includes but not limited to Redis, Memcache;

[0045] If it is not exceeded, step S2, then read the data corresponding to the read request from the centralized memory cache;

[0046] If it exceeds, step S3, then read the data corresponding to the read request from the local memory cache;

[0047] Here, if the number of access failures of the centralized memory cache exceeds the preset threshold, it indicates that there is a problem with the ...

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 provides a data access method and equipment. According to the method, a centralized database, a centralized memory cache, a local memory cache and a local file cache are combined, the problems of instability during data centralized access and poor performance in case of a large data access size are avoided, and it is guaranteed that overall data access service is not influenced whenthe centralized database and the centralized memory cache are in crash. Therefore, overall request access time consumption is lowered, performance improvement is obvious especially under the conditionthat the read data size exceeds 10KB, the carrying capacity of a system is improved, the stability of the system is also improved, and even under the condition that the centralized database and the centralized memory cache both have problems, the system can guarantee error-free data access and long-time available access. The data access method and the equipment are suitable for a scene, requiringhigh concurrency, high performance and high availability of data access, of a PHP language environment. Besides, through comparison of version numbers, the problem of data reading inconsistency can be avoided.

Description

technical field [0001] The invention relates to a data access method and equipment. Background technique [0002] The existing PHP (Hypertext Preprocessor, "Hypertext Preprocessor") environment caching system mainly has two modes: [0003] (1) Database + centralized memory cache, the principle is to cache some data that will be accessed frequently to the centralized memory cache with faster access speed, but the problem is that if the data is too concentrated, the centralized memory cache will be hit. collapse, and if the amount of data written is large, the performance of the overall centralized memory cache will be reduced; [0004] (2) Database + local memory cache, the principle is to cache some data that will be accessed frequently in the local memory cache of each machine. The problem is that in a distributed environment, the same request will appear in the local memory of different machines Caching will cause the problem of inconsistency in reading data. Contents ...

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): G06F17/30
Inventor 邱亮史团委
Owner SHANGHAI HODE INFORMATION TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products