A KV database storage and query method indexed by partial hash key
A query method and database technology, applied in the field of Kv database storage and query, can solve problems such as database stability decline, database database blocking, etc. Effect
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0104] Embodiment 1. A single machine writes 750 million pieces of data. This is a limit test. The limit number of records in LevelDB is about 100 million. After the writing is successfully completed, the specific storage conditions are as follows:
[0105] project size content_db 698G One-level index + two-level index 2.3G fullKeys 18G fast_confluct 8.8G conflict_db 2.7G
[0106] In this embodiment, it takes 4.5 hours to load 750 million pieces of data, with an average of 46,000 pieces per second.
[0107] In this embodiment, after writing 750 million pieces, the working status of each module of the present invention is as follows:
[0108] project Times / ms slowest ms Total time spent in ms Total times conflict_db read 3 1843 12032678 40132197 conflict_db write 13 2635 6147489 80854022 fast_conflict read 33 2406 11231663 372366254 fast_conflict write 71 3492 7558215 540879018...
Embodiment 2
[0112] Example 2: Write 100 million records, insert 52,100 records per second, and take a total of 1920 seconds, which is 32 minutes; write 300 million records, insert 37,800 records per second, and take a total time of 7940 seconds, also That's 132 minutes.
[0113] In this embodiment, after writing 100 million pieces, the working status of each module of the present invention is as follows:
[0114] project Times / ms slowest ms Total time spent in ms Total times conflict_db read 0 599 29600 4086 conflict_db write 0 785 685271 67329 fast_conflict read 349 2 2858 997451 fast_conflict write 29 574 355041 10323821 full_Key read 1221 4 15501 18941274 full_Key write 52 1277 1460011 76955518 content_db write 15 246 4994556 77576465 content_db update 66 4 5139 343528
[0115] The statistics of the number of conflicts are as follows:
[0116] Number of index key conflicts The num...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


