Questions tagged [tarantool]

Tarantool is a Lua application server with a built-in database. It's best to think of as a Redis or Memcached with high level of customization. Alternatively, it's Node.JS with object persistency and master-master replication.

Tarantool is a Lua application server with a built-in database.

The key idea is in a new way of building Web applications - a data grid approach, when the database serves as the application backend as well, and there are many database instances running in parallel, to scale up and out.

Tarantool features:

  • a drop-in replacement for Lua 5.1, based on LuaJIT 2.0; simply use #!/usr/bin/tarantool instead of #!/usr/bin/lua in your script
  • Lua packages for non-blocking I/O, fibers and HTTP
  • document data model with secondary keys
  • two data engines: 100% in-memory with optional persistence and a 2-level disk-based B-tree, to use with large data sets
  • iteration over data in forward and reverse order
  • asynchronous master-master replication
  • authentication and access control
218 questions
0
votes
2 answers

Tarantool sphia make slow selects?

Use tarantool version: Tarantool 1.6.8-586-g504e151 It installed from epel. I use tarantool on sphia mode: log_space = box.schema.space.create('logs', { engine = 'sophia', if_not_exists = true …
agent-0007
  • 109
  • 6
0
votes
2 answers

Will tarantool helps in OpenVZ?

I have a small OpenVZ container. 2 cores and 4096MB RAM. I have mysql database (overal size is 80MB InnoDb) When i do 100 queries like INSERT ON DUPLICATE KEY UPDATE, few of them executes longer than 1 seconds, always mysql> SHOW…
0
votes
1 answer

Why sophia doesn't start?

When i use tarantool (memtx) all work, but when i try run same on sophia - it doesn't work ;( memtx: logs_space_id = 'logs' logs = box.schema.create_space(logs_space_id) logs:create_index('primary', {type = 'tree', parts = {1, 'STR', 3,…
agent-0007
  • 109
  • 6
-1
votes
1 answer

How to deserialize Decimal of Tarantool 2.10+ response in Rust?

With Rust select space contain field type decimal how to deserialize? I am using alopecosa crate select working fine primative type like boolean, string, number expect some new type like decimal need manual deserialize Type I want Decimal…
Meas
  • 192
  • 1
  • 2
  • 19
-1
votes
1 answer

Adding a new field to each array element in .lua

Please tell me, if there are any errors here and how to make the code more clean. There is a space "company". Inside it's a string "type" and "information" map. Inside this map is a "job" object and an array of "users" objects. The "users" array…
Kirill Sereda
  • 469
  • 1
  • 10
  • 25
-1
votes
1 answer

icu_date gives an error message attempt to index a number value

I want to use the icu_date library, but when I try to insert a value, an error appears icu_date = require("icu-date") format_date = icu_date.formats.iso8601() end_time = icu_date.now() 1602586287098 - print…
denisT
  • 1
  • 2
-3
votes
1 answer

How to serialize Tarantool select results to ready structure with Go connector

Please describe a way how to serialize select results in go-tarantool connector to struct to have an ability to get access to fields as tuple.key1.key2
Oleg Babin
  • 409
  • 3
  • 9
-4
votes
2 answers

Why I cannot type assert empty interface?

I would like to cast empty interface to map. Why is this not ok? // q tarantool.Queue (https://github.com/tarantool/go-tarantool) statRaw, _ := q.Statistic() // interface{}; map[tasks:map[taken:0 buried:0 ...] calls:map[put:1 delay:0 ...]] type stat…
AntonK
  • 429
  • 1
  • 4
  • 11
1 2 3
14
15