keydbr

module
v0.0.0-...-0adc8af Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2022 License: GPL-3.0

README

keydbr is deprecated. Use robaho/leveldbr which is stable and uses an api based on Google's LevelDB.

About

Remote access to keydb database. Uses Google protobufs and gRPC.

Notes

There is a single gRPC stream per open database, upon which all requests are multiplexed. The stream is shared but requests are completed synchronously (since the server processes an inbound message synchronously) but this may change in the future to allow overlapping requests - that is, asynchronous handling by the server. For best performance, multiple connections should be made to the server, rather than sharing a database connection.

To Use

go run cmd/server

There is a sample command line client in cmd/client which uses the client API.

Performance

Using the same 'performance' test as keydb, but using the remote layer:

insert time  1000000 records =  3080 ms, usec per op  3.08019
close time  1700 ms
scan time  2129 ms, usec per op  2.129979
scan time 50%  1468 ms, usec per op  2.93625
random access time  83.98727 us per get
close time  1000 ms
scan time  1963 ms, usec per op  1.963984
scan time 50%  930 ms, usec per op  1.861844
random access time  82.95168 us per get

TODOs

Implement "read ahead" for more efficient lookup over the network

Directories

Path Synopsis
cmd
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL