Tarantool connection driver for work with gevent framework
Project description
Connector required tarantool version 1.6:
$ pip install gtarantool
Try it example:
import gevent
import gtarantool
cnt = 0
def insert_job(tnt):
global cnt
for i in range(10000):
cnt += 1
tnt.insert("tester", (cnt, cnt))
tnt = gtarantool.connect("127.0.0.1", 3301)
jobs = [gevent.spawn(insert_job, tnt)
for _ in range(10)]
gevent.joinall(jobs)
it’s cool! see benchmark results:
call |
tarantool |
gtarantool |
---|---|---|
insert |
33.123570 |
11.574602 |
select |
22.030409 |
10.305281 |
delete |
32.839110 |
11.233938 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gtarantool-1.0.4.tar.gz
(3.6 kB
view hashes)