Memory table query method and system based on centerless architecture distributed database

A query method and memory table technology, applied in database indexing, database updating, structured data retrieval, etc., can solve the problems of insufficient improvement of query efficiency and performance degradation, and achieve the goals of improving user experience, optimizing performance, and maintaining consistency Effect

Pending Publication Date: 2022-03-25
上海沄熹科技有限公司
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Memory tables use table locks. When data is frequently modified, frequent locking and unlocking will lead to performance degradation
Due to the different data structures stored in the memory tables of different databases, the efficiency of certain queries is not significantly improved

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
  • Memory table query method and system based on centerless architecture distributed database
  • Memory table query method and system based on centerless architecture distributed database
  • Memory table query method and system based on centerless architecture distributed database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0047] The present invention is based on the in-memory table query method of the non-central framework distributed database, comprises the following steps:

[0048] S100, define the memory table on the database client, and designate the original table of the database as a memorable state in the CREATE TABLE stage as the memory table;

[0049] S200. Create a corresponding memory table metadata manager based on the memory table. The memory table metadata manager stores memory table attribute information, and the memory table attribute information includes a memory data pulling completion identifier and lock information of the table data corresponding to the memory table;

[0050] S300. If there is table data stored in the original table of the database, pull the table data in the original table of the database into the memory of the currently operating data node, and update the memory data pulling completion flag of the memory table metadata manager;

[0051] S400. Create and ex...

Embodiment 2

[0065] The present invention is based on a memory table query system of a distributed database with a central architecture, including a memory table creation module, a memory table metadata manager creation module, a user check module, a data pull module, and a query module. The memory table creation module is used for The database client defines a memory table, and in the CREATE TABLE stage, the original table of the database is designated as a memory-capable state as a memory table; the memory table metadata manager creation module is used to create a corresponding memory table metadata manager based on the memory table, The memory table metadata manager stores the memory table attribute information. The memory table attribute information includes the memory data pulling completion mark and the lock information of the corresponding table data of the memory table; the user checking module is used to check the user authority of the memory table; the data The pulling module acts...

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 memory table query method and system based on a centerless architecture distributed database, belongs to the technical field of database query, and aims to solve the technical problem of how to realize quick access and quick query of a memory table. Comprising the following steps: defining a memory table at a database client; creating a corresponding memory table metadata manager; if the table data is stored in the database original table, pulling the table data in the database original table into a currently operated data node memory, and updating a memory data pulling completion identifier of a memory table metadata manager; creating and executing a query plan, if the database original table is designated as a memory table and table data of the memory table exists in a data node memory, creating a query state recorder of the current query based on the attribute of the metadata manager, and shunting the query state recorder into a memory table query or a database original query; otherwise, the current query executes the database original query.

Description

technical field [0001] The invention relates to the technical field of database query, in particular to an in-memory table query method and system based on a distributed database with a centerless architecture. Background technique [0002] In-memory table is a kind of in-memory data table in the database. Most of the in-memory tables in some stand-alone databases have the following characteristics: the data is stored in RAM in uncompressed form, and the data is stored in the form obtained when it is read. In other words, reading from this table is painless because there are no disk reads, no need to decompress or deserialize the data. [0003] Memory tables also have some limitations. For example, data is stored in memory, and data will be lost when the database is down or restarted. Memory tables use table locks. When data is frequently modified, frequent locking and unlocking will lead to performance degradation. Due to the different data structures stored in memory tab...

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 & AuthorityApplications(China)
IPC IPC(8): G06F16/22G06F16/27G06F16/2455G06F16/23
CPCG06F16/221G06F16/27G06F16/24561G06F16/2365
Inventor刘浩喆
Owner上海沄熹科技有限公司