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

Data searching method, data saving method and related equipment

A data search and data technology, which is applied in the computer field, can solve problems such as performance bottlenecks and query performance degradation, and achieve the effects of ensuring query speed, improving query speed, and ensuring data query speed and effectiveness

Active Publication Date: 2016-01-20
NUBIA TECHNOLOGY CO LTD
View PDF7 Cites 22 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The existing technology uses RDBMS as data storage, and RDBMS will lead to a sharp drop in query performance in scenarios with high concurrent queries and large amounts of data in index tables
In the current situation where the amount of data is increasing, it has become the performance bottleneck of the entire system

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 searching method, data saving method and related equipment
  • Data searching method, data saving method and related equipment
  • Data searching method, data saving method and related equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0102] In order to improve the query speed and overcome the performance bottleneck stored in the existing relational database management system (RelationalDatabaseManagementSystem, RDBMS), in the present invention, the Redis memory database is used to assist the RDBMS to retrieve the content data of the user's attention circle topic through the high-speed read and write characteristics of the Redis database .

[0103] In the present invention, the Redis doubly-linked list is used as the storage structure of each topic node, and the persistence of the user-generated content data is still stored using RDBMS. In the present invention, the generated content may be related to the business logic to be implemented, for example, the user-generated content may be the post content sent by the user to the circle, etc. At the same time, the number of storage elements can be limited in the bidirectional linked list, and the data beyond the display range can be directly deleted according to...

Embodiment 2

[0126] In the present invention, the speed of data retrieval can be effectively improved through the Redis database. The Redis database is an open-source, log-type, Key-Value database that is written in ANSIC language, supports the network, can be memory-based or persistent, and provides APIs in multiple languages.

[0127] Redis is a key-value storage system. Similar to Memcached, it supports relatively more value types for storage, including string (string), list (linked list), set (collection), zset (sortedset-ordered set) and hash (hash type). These data types support push / pop, add / remove, intersection, union, difference and richer operations, and these operations are atomic. On this basis, Redis supports sorting in various ways. Like memcached, data is cached in memory to ensure efficiency. The difference is that redis will periodically write updated data to disk or write modification operations to additional record files, and on this basis, master-slave (master-slave)...

Embodiment 3

[0155] Such as Figure 6 As shown, this embodiment provides a data search device, which is set on a terminal device, and the device includes:

[0156] An acquisition module 11, configured to acquire a list of content concerned by the user according to the acquired user identifier;

[0157] A generating module 12, configured to generate keywords according to the identification of content in the content list;

[0158] Finding module 13, is used for searching data in memory database by described keyword;

[0159] In one embodiment,

[0160] The search module 13 includes a first search sub-module 131;

[0161] The first search submodule 131 is used to search data in the memory database through the keyword; it is also used to search the found data when the keyword exists in the memory database and the search result is not empty. The data is deserialized.

[0162] The search module 13 includes a second search sub-module 132;

[0163] The second search sub-module 132 is used to 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 provides a data searching method, a data saving method and related equipment. The method comprises the following steps: obtaining a content list concerted by a user according to an obtained identity of the user; generating key words according to contents in the obtained content list; searching for data in a memory database according to the key words, wherein each key word corresponds to a doubly liked table in the memory database. According to the technical scheme, the high-speed reading and writing features of the Redis memory database are utilized for assisting in RDBMS searching, so that the searching speed is greatly improved, and the high searching speed can still be guaranteed when the data volume is high; meanwhile, the Redis memory database is updated timely according to newly-added contents, so as to further guarantee the data searching speed and validity.

Description

technical field [0001] The invention relates to the field of computers, in particular to a data search method, a data storage method and a corresponding device. Background technique [0002] With the rise of Internet products in social networks (WeChat circle of friends, Sina Weibo, Zhihu, etc.) centered on users' dynamic attention circle topic content, how to quickly query the user's attention circle topic content data has become a concern of relevant developers an important point. [0003] This type of user-focused content data is usually aggregated from user-generated content, and pushed to the user in the form of a timeline according to the circle topics the user cares about. The process of aggregating the concerned content generally involves complex relational queries of multiple tables, and needs to combine the content into a list in a specific form. [0004] In existing solutions of this type, RDBMS databases are generally used to store user-generated content. Usua...

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
CPCG06F16/2228G06F16/2455G06F16/284
Inventor 林浩
Owner NUBIA TECHNOLOGY CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products