Method and system for inserting data into database
A database and data technology, applied in the database field, can solve problems such as poor versatility, and achieve the effects of less consumption and occupation, better versatility, and improved efficiency
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] see figure 1 Shown is a schematic structural diagram of a database applying an embodiment of the present invention, such as figure 1 As shown, the database includes a data header table and a data information table, and stores data by combining the data header table and the data information table. Among them, the data serial number 1, data serial number 2 ~ data serial number n data serial number column and the data header information column corresponding to the data serial number column are recorded in the data header table; the data information table has the data serial number column and function code data information column. The data link between the data information table and the data header table is established through the data sequence number column, for example: the data header information corresponding to the data sequence number 1 and the function code information 1 corresponding to the data sequence number 1 form data 1.
[0029] In one embodiment, n pieces o...
Embodiment 2
[0041] Embodiment 2 can be regarded as a further optimization of Embodiment 1, because in Embodiment 1, the implementation of inserting data into the database, although only need to query the data header table part in the database can complete the insertion of data can be in To a certain extent, the efficiency of data insertion into the database is improved, but there is still room for improvement. Embodiment 2 here discloses a better embodiment relative to Embodiment 1.
[0042] In the step 102 of the method shown in the first embodiment, the scheme of passing through the buffer queue is introduced, that is, the execution of the step 102 may include:
[0043] A matching check is performed on the obtained data header information through the cache queue that caches multiple pieces of data header information in the data header table, so as to determine whether the obtained data header information exists in the data header table.
[0044] When the obtained data header information...
Embodiment 3
[0061] Embodiment 3 can be regarded as a more preferred embodiment of Embodiment 2 in a certain application scenario, because part of the content of Embodiment 2 states that the data to be inserted in the cache queue can be updated through the heat algorithm to improve the hit rate, so as to improve the database scheme for data insertion efficiency. However, the cache queue is generally implemented based on the first-in-first-out queue (FIFO, FirstInput First Output), but in the second embodiment, the cache queue is updated based on the data heat update and the FIFO method is used to update the cache queue. There is still room for improvement. , because the FIFO method is very likely to cause the data header information with a higher data popularity value to be updated. In view of this, the embodiment of the present invention discloses another embodiment 3 here, to replace the first-in-first-out (FIFO) method of the buffer queue under normal circumstances.
[0062] More speci...
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