Skip to content

eval-exec/main_memory_database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

main memory database|利用T*-tree做索引的内存中的数据库

T*-tree是一种类似于T-tree的二叉树,它的节点的结构体中比T-tree多一个指向继承者位的指针。因此T*-tree有快速查找索引的优点,也利于遍历某个范围的数据。

Prerequisites

gcc 8.2.1
cmake 3.14.1
cJSON(.c, .h)
uthash(.c, .h)

Usage

**SELECT**

SELECT [JSON / KEYVALUE]
FIND
FIND [numbers]
INSERT
INSERT [numbers] [value] or INSERT [JSON1] [JSON2] [JSON3] [JSON4]
DELETE
DELETE [numbers]
PRINT
PRINT :print all data stored in t\*ttee,PRINT FROM [number1] TO [number2] ,print data range from number1 to number2.

initial database test

*.del is dummy file for test.

key-value键值对是随机生成的,有100W条有序/无序的,1000万条有序/无序的。

key-value生成的程序key_value_generator

segmentfault博文链接

Deployment

Add additional notes about how to deploy this on a live system

Built With

  • gcc - GCC, the GNU Compiler Collection
  • uthash - Any C structure can be stored in a hash table using uthash. Just add a UT_hash_handle to the structure and choose one or more fields in your structure to act as the key. Then use these macros to store, retrieve or delete items from the hash table.
  • cJSON - Ultralightweight JSON parser in ANSI C.

Authors

  • Slarsar Zhang - Initial work - github

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published