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
1
vote
2 answers

Storing multiple values for keys in KyotoDB

Could you please let me know if one can store multiple values for same key/s in Kyoto Cabinet(KB). I need to implement a quick indexing mechanism for a large chunk of data which could have multiple values for same keys and I am trying to test KB for…
Abhi
  • 6,075
  • 10
  • 41
  • 55
1
vote
1 answer

Understanding the tchdbfwmkeys method (get forward matching keys in a database) in Tokyo Cabinet

I am having a hard time understanding the tchdbfwmkeys method in Tokyo Cabinet. The documentation is as follow: The function tchdbfwmkeys is used in order to get forward matching keys in a hash database object. TCLIST *tchdbfwmkeys(TCHDB *hdb,…
Eldy
  • 1,027
  • 1
  • 13
  • 31
1
vote
1 answer

Storing a large number of objects that belong to a list

I am using rails and have the following scenario: Users have_many lists and each list contains a number of words with each word having its own definition. The list show view shows all the words paginated by multiples of 30. I am concerned b/c a…
DavidP6
  • 307
  • 8
  • 19
1
vote
1 answer

Can I fetch keys by prefix and then delete them?

I can use fwmkeys to iterate over keys that share a prefix -- but how can I modify these keys as I iterate? In my case I only need to be able to delete them or set them to empty, either will work.
singpolyma
  • 10,999
  • 5
  • 47
  • 71
1
vote
1 answer

how to merge Tokyo Cabinet hash-table db's (.tch files) (no duplicate keys)

Is this possible? I couldn't find an answer anywhere. Basically I'm looking at a setup where I have multiple workers (boxes) which must all store there data into a Tokyo Cabinet index/db eventually (I'm using Tokyto Tyrant over the memcached…
Geert-Jan
  • 18,623
  • 16
  • 75
  • 137
1
vote
1 answer

How to dump a tokyocabinet in-memory hashtable database in a file?

Is there a simply way to dump a tokyocabinet in-memory database to a file? I didn't find anything about it in the tokyo documentation. Does anyone know another nosql database that provide with this kind of thing? I'm looking for a very efficient in…
1
vote
1 answer

TokyoCabinet's Ruby C interface can't bzip

I'm using the Ruby official Ruby C interface and am not able to bzip working. It did build with bzip support, ./configure said: checking bzlib.h usability... yes checking bzlib.h presence... yes checking for bzlib.h... yes So I wrote this example…
pushcx
  • 571
  • 3
  • 12
1
vote
0 answers

Tokyo Tyrant indexes

I was wondering about size requirements for Tokyo Tyrant indexes. If I have an index on field x and insert a record with fields y and z only, does the x index grow? Also: does the insert time grow in that case?
viraptor
  • 33,322
  • 10
  • 107
  • 191
1
vote
2 answers

key/value (general) and tokyo cabinet (python tc-specific) question

i have been in the RDBMS world for many years now but wish to explore the whole nosql movement. so here's my first question: is it bad practice to have the possibility of duplicate keys? for example, an address book keyed off of last name (most…
swasheck
  • 4,644
  • 2
  • 29
  • 56
1
vote
1 answer

tokyo cabinet: .tcb.wal file created along with .tcb file. Db size doesnot decreases while deleting records

I am using tokyo cabinets B+ tree API to create a lookup database. On linux environment I see a .tcb.wal file created along with the actual .tcb database file. The size of this file is 0. I wonder whether its a lock file that is created to help…
dev0z
  • 2,275
  • 1
  • 15
  • 16
1
vote
1 answer

TokyoCabinet Write speed too slow

I have a perl script (in Ubuntu 12.04 LTS) writing to 26 TCH files. The keys are roughly equally distributed. The writes become very slow after 3 Million inserts (equally distributed to all the files) and the speed comes down from 240,000…
alpha_cod
  • 1,933
  • 5
  • 25
  • 43
1
vote
1 answer

TokyoCabinet: Segmentation fault at hdb->close()

I'm stuck at a Segmentation fault after inserting about 8 million records in a TC Hash Database. After everything is inserted I close the DB but I caught a Segmentation Fault at this part of the code (tchdb.c): static void tchdbsetflag(TCHDB *hdb,…
Felipe Hummel
  • 4,674
  • 5
  • 32
  • 35
1
vote
1 answer

TokyoTyrant - restart with clean datastore

What is the correct way to restart with a clean datastore with TokyoTyrant? Can it be done via the Linux command line? I'm working on a project where I need to restart both TokyoTyrant and Solr in sync.
BuddyJoe
  • 69,735
  • 114
  • 291
  • 466
0
votes
1 answer

Kyoto Cabinet Installation Issue

I have installed Kyoto Cabinet by using instruction from this. However, this says you have to add kyotocabinet.jar in your class path to compile a java file. But, I have not find anywhere the kyotocabinet.jar file. I try to add kyotocabinet.jar by…
Arpssss
  • 3,850
  • 6
  • 36
  • 80
0
votes
4 answers

does kyoto cabinet support key range search?

Does Kyoto Cabinet support searching for a range of keys? If so, what types of keys do support range search? Can I do range search on a long (64bit) key? Thanks RG
nightwatch
  • 1,276
  • 2
  • 18
  • 27