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

Data query and synchronization method, device and system based on ehcache

A technology of data query and synchronization device, applied in the field of data query, can solve problems such as slow query data, and achieve the effect of speeding up query speed

Inactive Publication Date: 2019-07-02
JIANFEI INFINITE TECH CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, the commonly used method of data query is that the client directly queries from the database. This method needs to read the data in the hard disk into the memory, and the query data is slow; another common method is that the client first queries from the memory cache. Query, if there is no data to be queried, query from the database, but in this method, if the database data is modified by the background operation and maintenance personnel without modifying the data in the memory cache, the data returned to the client will not be the latest data

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 query and synchronization method, device and system based on ehcache
  • Data query and synchronization method, device and system based on ehcache
  • Data query and synchronization method, device and system based on ehcache

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0033] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention.

[0034] It should be noted that like numerals and let...

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 embodiment of the invention provides an EhCache-based data querying and synchronizing method, device and system. The method comprises the following steps: receiving a query request sent by a client side through a server; through the server, sending the query request to an EhCache caching service and a database simultaneously and on the basis of a main key in the query request, finding a first version number corresponding to the main key in the EhCache caching service and finding a second version number corresponding to the main key in the database; and confirming which version number in the first version number and the second version number is newer. By means of the method, the query speed can be increased and the data returned to the client side is guaranteed to be the latest data all the time.

Description

technical field [0001] The present invention relates to the field of data query, in particular to an Ehcache-based data query and synchronization method, device and system. Background technique [0002] At present, the commonly used method of data query is that the client directly queries from the database. This method needs to read the data in the hard disk into the memory, and the query data is slow; another common method is that the client first queries from the memory cache. Query, if there is no data to be queried, query from the database, but in this method, if the database data is modified by the background operation and maintenance personnel without modifying the data in the memory cache, the data returned to the client will not be the latest data. Contents of the invention [0003] In view of this, the purpose of the embodiments of the present invention is to provide an Ehcache-based data query and synchronization method, device and system. [0004] The Ehcache-...

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 Patents(China)
IPC IPC(8): G06F16/21G06F16/2455
CPCG06F16/219G06F16/24552
Inventor 金明晔何佳庞敏
Owner JIANFEI INFINITE TECH CO LTD