Post on 28-May-2015
description
or
LOL
Tokyo
Cabinet
Runs in...Runs on Linux, Solaris, Mac OS X
tokyo cabinet storage
<key, value>database manager DBM Persisted in file system
Tokyo Cabinet
<k, v> <k, v>
Why Tokyo?
space efficiency : small database file size.time efficiency : fast processing speed.parallelism : high performance in multi-thread environment.usability : simple API’s.64-bit architecture : enormous memory space and database file are available.No-SQL
Database Structures:- Hash- B+ Tree- Fixed-Length- Table
Hash Database
B+ Tree Database
• slower than hash database • Logical sorted (Last Recent Used)• Stands in a Hash Database
Fixed-length Database• natural number keys• extremely fast
Table Database
• expresses a structure like a table of relational database.
• column based• flexible structure• query mechanism• column indexes
Tokyo Cabinet is 31 times faster than MySQL!
• Total time used to write 10000 records and retrieve them back Tokyo Cabinet: 18.87sMySQL: 562.21s
Advantages Disadvantages
NO-SQL Windows platform is not supported
Speed not durable (isn’t crash safe)
high scalability: No actual limit size of a database file (to 8 exabytes)
LOCK (only one transaction can be activated with the database at the same time)
Tokyo Cabinet is written in the C language, and provided as API of C, Perl, Ruby, Java, and Lua.
high concurrency
Write-ahead logging:(log transaction status-> succeeded, half-succeeded, or failed)
Thank You!