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

A Method for Realizing Final Consistency Full-Text Retrieval in High Performance Database

A database and consistent technology, applied in the field of database retrieval, can solve problems such as increased difficulty in development and maintenance, high cost and complexity of use, and retrieval failure, so as to simplify the process of data establishment and use and avoid difficulty in development and maintenance large, guaranteed completeness and accuracy

Active Publication Date: 2020-07-28
SHENZHEN SEQUOIADB DATABASE SOFTWARE CO
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Although this approach is simple and convenient, it may cause inconsistency in stored data, especially in concurrent scenarios, it is easy for multiple tasks to change the same record, resulting in inconsistencies between search engines and databases
In the worst case, if the application server crashes after writing to the database and does not have time to write to the search engine, the search engine will not be able to retrieve this record, resulting in retrieval failure
Another form is to implement the inverted index directly inside the database, but the difficulty of development and maintenance is greatly increased, and the cost and complexity of later use are high, and the popularity is poor

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] The central idea of ​​the present invention is to keep the data of the database and the search engine finally consistent by duplicating the temporary circular log file, so as to provide support for the normal and accurate search of the search engine.

[0026] A method for realizing the final consistent full-text retrieval of a high-performance database described in the present invention, the specific steps include:

[0027] Step 1. Connect the search engine to the database through the connector.

[0028] As an independently running process, the connector starts with the startup of the database, and acts as a transmission channel to connect the database with the search engine.

[0029] Step 2. When the data is written into the database, it is recorded in a temporary circular log file. The temporary circular log file includes the field content that needs to be indexed and the ID of the record. The field content includes: a record RID as a record pointer, including the dat...

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 for implementing ultimate consistency full-text search of a high-performance database. A search engine is connected with the database through a connector; by establishment of a temporary circular log file of the database, under the assistance of a tool in the database, data contents in the search engine are always kept consistent with contents of fields needing to undergo full-text search in the database, accuracy in the search process is ensured, retrieval efficiency is improved, and a problem of high development and maintenance difficulty caused by direct use of an inverted index mode in the database and a shortcoming of poor stability caused by a conventional double-write mode are avoided. The method has the advantages that the data contents are complete, the establishing process is simple and the method is convenient to use; and the method is particularly suitable for data retrieval at a cloud.

Description

technical field [0001] The invention relates to a database retrieval method, in particular to a full-text retrieval method capable of realizing the final consistency of a high-performance database. Background technique [0002] In the world, there are many different technical products for new distributed databases, such as MongoDB, Cassandra, HBase, etc. In China, it includes SequoiaDB giant sequoia database, Alibaba's OceanBase, etc. The core functions of these databases are the storage and retrieval of records. [0003] Generally speaking, the precise search mechanism of the database includes operations such as equal to, greater than less than, greater than or equal to, less than or equal to, not equal to, etc., while fuzzy queries generally support the LIKE mechanism of SQL or regular expressions. In terms of execution efficiency, the efficiency of fuzzy query is far lower than that of precise retrieval with well-established indexes. This is because most databases use t...

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/33
CPCG06F16/334
Inventor 王涛
Owner SHENZHEN SEQUOIADB DATABASE SOFTWARE CO