Questions tagged [tokyo-cabinet]

Tokyo Cabinet is a modern key-value based (NoSQL) database system.

From: http://fallabs.com/tokyocabinet/

Tokyo Cabinet is a library of routines for managing a database. The database is a simple data file containing records, each is a pair of a key and a value. Every key and value is serial bytes with variable length. Both binary data and character string can be used as a key and a value. There is neither concept of data tables nor data types. Records are organized in hash table, B+ tree, or fixed-length array.

Tokyo Cabinet is developed as the successor of GDBM and QDBM on the following purposes. They are achieved and Tokyo Cabinet replaces conventional DBM products.

improves space efficiency : smaller size of database file. improves time efficiency : faster processing speed. improves parallelism : higher performance in multi-thread environment. improves usability : simplified API. improves robustness : database file is not corrupted even under catastrophic situation. supports 64-bit architecture : enormous memory space and database file are available. Tokyo Cabinet is written in the C language, and provided as API of C, Perl, Ruby, Java, and Lua. Tokyo Cabinet is available on platforms which have API conforming to C99 and POSIX. Tokyo Cabinet is a free software licensed under the GNU Lesser General Public License.

78 questions
5
votes
2 answers

KyotoCabinet and multiple processes?

I've read the documentation and found very little about multiple processes (readers and writers) accessing a single kyotocabinet database. It appears you can create multiple readers, but unless you specify ONOLOCK multiple writers will block trying…
coleifer
  • 24,887
  • 6
  • 60
  • 75
4
votes
2 answers

Tokyo Cabinet and SQLite compatible interfaces?

I was wondering if anyone has seen a library that abstracts away SQLite and Tokyo-Cabinet to the same API. Basically I'm looking for something that will allow me to test and dev with SQLite, and later move to TC for production. Anyways the language…
Robert Gould
  • 68,773
  • 61
  • 187
  • 272
4
votes
2 answers

tokyo cabinet & tyrant tutorial

Can somebody refer a good tutorial on tokyo cabinet and tokyo tyrant
techstunts
  • 92
  • 5
4
votes
1 answer

Tokyo Cabinet Tuning Parameters

I have been trying to find a better Tokyo Cabinet (or Tokyo Tyrant) configuration for my application, but I don't know exactly how. I know what some parameters mean but I want to have a fine tuning control, so I need to know the impact of each one.…
user235478
4
votes
2 answers

NO-SQL reliable for small business app?

I'm deciding between go for a NON-SQL engine or a regular SQL one for a document managment system for small bussines. I have experience with firebird/sql server and found a good track of reliability (specially with firebird). This market is full of…
mamcx
  • 15,916
  • 26
  • 101
  • 189
4
votes
3 answers

How does Tokyo Cabinet handle large integers?

I have implemented a queue on top of TC (Tokyo Tyrant to be specific). I am using memcache compatible function increment to keep track of queue head and tail. I just want to know what is the limit for the integers stored (64 bit?) by TC and what…
Paras Chopra
  • 4,029
  • 4
  • 21
  • 19
3
votes
1 answer

What is the maximum size that the Tokyo Cabinet works well?

I read on an article called "Hands-on Cassandra" that Tokyo Cabinet is not good for big data. Why? How many bytes TC needs to store before start to work bad? Is is possible to determine a approximated value?
Felipe
  • 16,649
  • 11
  • 68
  • 92
3
votes
0 answers

What does bnum exactly mean in tokyo tyrant

What does bnum exactly mean in tokyo tyrant, can someone explain it with an example? If the size of the tch data file exceeds 2GB, what should I do?
ywenbo
  • 3,051
  • 6
  • 31
  • 46
3
votes
4 answers

Any possible way to use Tokyo Cabinet in Eclipse?

Just spend 3 straight hours trying to solve the java.lang.UnsatisfiedLinkError: no jtokyocabinet in java.library.path problem in Eclipse in Linux. Downloaded TC and TC-Java sources, Built them both using ./config --prefix=/usr (so everything "JNI"…
Marc
  • 4,546
  • 2
  • 29
  • 45
3
votes
1 answer

Tokyocabinet fatal error C1083 : cannot open include file:tcbdb.h

I am using Anaconda python (2.7). I need to install tokyocabinet (along with other dependencies) in order to install imposm.parser. But whenever I try to install it (by using pip) I get this : fatal error C1083 : cannot open include file: 'tcbdb.h'…
3
votes
2 answers

Ruby Rack: startup and teardown operations (Tokyo Cabinet connection)

I have built a pretty simple REST service in Sinatra, on Rack. It's backed by 3 Tokyo Cabinet/Table datastores, which have connections that need to be opened and closed. I have two model classes written in straight Ruby that currently simply…
issa marie tseng
  • 3,194
  • 22
  • 20
3
votes
0 answers

Tokyo Cabinet hash table breaks when reaching 65 GB

I'm using the Tokyo Cabinet database through the PyTyrant module, storing the data in a hash table (*.tch file). When the file reaches 65 GB in size, the following bug occurs: when a new entry is added to the database, querying the new key gives a…
laurt
  • 1,811
  • 3
  • 15
  • 18
3
votes
1 answer

Sharing DB connections across objects using class methods in ruby?

I am writing a ruby script to be used as Postfix SMTP access policy delegation. The script needs to access a Tokyo Tyrant database. I am using EventMachine to take care of network connections. EventMachine needs a EventMachine::Connection class that…
Rajkumar S
  • 2,471
  • 5
  • 23
  • 28
3
votes
3 answers

Object-oriented C++ API for Tokyo Cabinet?

Is there a C++ wrapper for the Tokyo Cabinet API? Obviously I can use the basic C API from C++, but I'd much rather use something that abstracted the raw functions and structures into classes. I'm tempted to write this myself, at least for the bits…
Jens Alfke
  • 1,946
  • 12
  • 15
2
votes
2 answers

Issue with Hash Map Space and Performance

I have to store more than 100 millions of key-values in my HashMultiMap (key can have multiple values). Can anybody help me which one is faster for both storing and searching: 1) Berkeley DB 2) Tokyo Cabinet 3) H2 4) EhCache 5) Or anyothers Another…
Arpssss
  • 3,850
  • 6
  • 36
  • 80