Operation method and operating system for database table
An operation method and operating system technology, applied in the operation field of database tables, can solve problems such as data operation conflicts
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
no. 1 approach
[0026] figure 1 A topology of a blockchain system is shown, including a database and multiple transaction nodes. Each database table and a record of each transaction are maintained in the database.
[0027] Such as figure 2 Shown, method of the present invention comprises:
[0028] Step S1, creating a table object: the blockchain system generates an object for the database table, and the object records the attributes of the database table. All attributes of the database table can be recorded in the object, including the basic hash value of the database table described later.
[0029] When the transaction node initiates the first operation on a database table, the transaction node sends the table operation statement to the blockchain system. The information sent by the transaction node to the blockchain system includes: table operation statements, and the basic hash value in step S1. How the transaction node obtains the basic hash value will be described in detail below. ...
no. 2 approach
[0047] Such as image 3 As shown, according to another aspect of the invention, the first embodiment is improved.
[0048] In step A1, a map table is created locally on the transaction node sending the transaction, the key value of the map table is the table name of the database table, and the corresponding value includes the basic hash value generated in step S2 of the first embodiment. The map table may be stored in a local cache.
[0049] Step A2, when a transaction node sends a transaction to the blockchain system, it first checks in the local map table.
[0050] In the first case, step A3, if it can be found in the map table, use the cached basic hash value as the latest basic hash value, and perform subsequent operations as in the first embodiment.
[0051] In the second case, step A4, if it cannot be found, the transaction node requests the block chain system to obtain the basic hash value recorded in the object of the database table as the latest basic hash value, as s...
no. 3 approach
[0060] The present invention also proposes an operating system based on a database table, including a blockchain system and transaction nodes, and the blockchain system is configured to execute steps S1-S5 in the first and second implementation manners. The transaction node includes a processor configured to execute A1-A4 in the first and second implementation manners.
[0061] The present invention also proposes a storage medium, which stores a program that can run on a processor, and the program is steps S1-S5 and A1-A4 in the first and second embodiments.
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com