![]() | |
#11
| |||
| |||
|
#12
| |||
| |||
|
|
Andy, This sounds very interesting. I'm looking for something simple. My database will just be key value pairs. The key is a string and the value is binary data under 32K in length. I plan on having less than 100K records. I will be doing mostly reading. One thing I'm curious about is lets say a value field for a given key is exactly 10K and I updated the value and it is again exactly 10K will it over write what was there which is the way I want it to work. I don't want the DB to grow in size. Right now I'm using the MS Jet engine and it seems to grow and grow and grow. Thanks, Steven This looks almost perfect for my C code ... |
#13
| |||
| |||
|
|
In article <I_GVa.14167$Hr.571713 (AT) twister (DOT) socal.rr.com>, Steven C. nospam (AT) xxx (DOT) com> writes Andy, This sounds very interesting. I'm looking for something simple. My database will just be key value pairs. The key is a string and the value is binary data under 32K in length. I plan on having less than 100K records. I will be doing mostly reading. One thing I'm curious about is lets say a value field for a given key is exactly 10K and I updated the value and it is again exactly 10K will it over write what was there which is the way I want it to work. I don't want the DB to grow in size. Right now I'm using the MS Jet engine and it seems to grow and grow and grow. Thanks, Steven This looks almost perfect for my C code ... Basically, this stores key-value pairs in a hashed file. The "value" bit is random length (stored with the key if it's small enough), and when using dynamic hashing the file is resized "on the fly" so fast the user is unlikely to notice. Given your example, given the key it would take two head movements to retrieve your data (one for the key and data location, the second for the data itself). And yes - if you updated the data and it did not grow, it would overwrite the previous data. Cheers, Wol |
#14
| |||
| |||
|
|
Wol, Where do I find your C code? Have you got my emails? I've altered the "reply-to" to my office, as |
#15
| |||
| |||
|
|
Andy, This sounds very interesting. I'm looking for something simple. My database will just be key value pairs. The key is a string and the value is binary data under 32K in length. I plan on having less than 100K records. I will be doing mostly reading. One thing I'm curious about is lets say a value field for a given key is exactly 10K and I updated the value and it is again exactly 10K will it over write what was there If you use the OOFILE Professional version, which uses the c-tree Plus |
![]() |
| Thread Tools | |
| Display Modes | |
| |