Method and device for reading data based on data cache

A data caching and data reading technology, which is applied in the field of caching databases, can solve problems such as the failure of real-time synchronous updates between the database master database and the database slave database, the inconsistency between the cache data and the database physical data, and the inconsistency between the master database and the database slave database. Good timeliness, optimized comprehensive performance, and balanced timeliness

Active Publication Date: 2013-01-30
新浪技术(中国)有限公司
View PDF7 Cites 38 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0007] However, once the database reads and writes frequently, because the database master database and the database slave database cannot be updated synchronously in real time, the inconsistency between the database master database and the database slave database will often occur, and the inconsistent time is highly dependent on the server load (setting The cached data is valid for a certain period of time) and cannot be measured, so that the phenomenon of inconsistency between the cached data and the physical data in the database often occurs; further

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
  • Method and device for reading data based on data cache
  • Method and device for reading data based on data cache
  • Method and device for reading data based on data cache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0079] The technical solutions of the various embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings. Apparently, the described embodiments are only some of the embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0080] The existing method of reading data based on data cache, according to the keyword input by the user, queries the cache database, if there is no data key value corresponding to the keyword in the cache database, then reads the data corresponding to the keyword from the database from the library, and Write the read data into the cache database, for example, update the cache data in Memcached, and at the same time update the cache data, according to the server (Memcached) load, s...

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 method and a device for reading data based on data cache. The method comprises the steps of: receiving read access request information (of a user) for obtaining data input, and extracting a generated key word; determining a data key value corresponding to a key word which is not subjected to cache generation in a cache databank, and initializing a mark value of data to be obtained; or determining a data key value corresponding to a key word which is subjected to cache generation in the cache databank, wherein the data included in the cached data key value is invalid, and setting the mark value of the data to be obtained as the mark value included in the obtained data key value; reading and checking a sub-bank of the databank so as to obtain data corresponding to the generated key word; obtaining time stamp information of the sub-bank of the databank, setting data key value information of key value pairs according to the set mark of the data to be obtained, the read time stamp information of the sub-bank of the databank and the data to be obtained, and updating the cache databank; and outputting the data obtained through checking. With the adoption of the method and the device, the cache efficiency of the data is improved, and the comprehensive property in data cache is optimized.

Description

technical field [0001] The invention relates to cache database technology, in particular to a method for reading data based on data cache. Background technique [0002] In today's information society, database technology and software have been widely used in various business units. For example, banking system, taxation system, ticketing system, financial system, personnel system, etc. In the web era, caching database technology is currently the only feasible solution for managing vast technical data such as user information, product information, and social information. [0003] However, when the amount of data in the database containing technical information is calculated in units of T and P, disk IO, that is, the application program accessing the physical data source becomes an insurmountable gap in database access efficiency. On the one hand, it is necessary to use a database to store large amounts of technical information; on the other hand, inefficient disk IO operation...

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 新浪技术(中国)有限公司
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