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
1 answer

The "error_marshaling_enabled" setting seems to be always enabled

When I run this code: $client->evaluate(' box.session.settings.error_marshaling_enabled = false box.error{code = 42, reason = "Foobar", type = "MyError"} '); regardless of the value of error_marshaling_enabled I always get a response with a…
Eugene Leonovich
  • 884
  • 1
  • 9
  • 15
0
votes
1 answer

Read_reply in tarantool-c is too slow

I am setting up a c server and used tarantool as databased using tarantool-c. However, everytime I setup read_reply() the request per second tanks so much its like using mysql. How to fix it?
Jones G
  • 301
  • 5
  • 17
0
votes
2 answers

reload module without restart server

good day! i have small question about reload c module in tarantool for example: i have c module which expose a method: int calculate(lua_State* L); in addition i declared entry point: extern "C" { LUA_API int luaopen_cuendemodule(lua_State…
anatoly.kryzhanosky
  • 185
  • 1
  • 1
  • 18
0
votes
2 answers

Select from Tarantool by composite index with different iterators

I have space peoples: id name age with two indexes: peoples = box.schema.space.create('peoples', {engine = 'memtx', field_count = 3, if_not_exists = true}) peoples:create_index('primary', {type = 'TREE', unique = true, parts = {1, 'unsigned'},…
0
votes
1 answer

Calling selects to Tarantool shards

I have Tarantool with shard module and space configuration like this: local h_box = box.schema.create_space('hotbox') h_box:create_index('one', {type = 'hash', parts = {1, 'string'}}) h_box:create_index('two', {type = 'tree', parts = {2,…
iPhosgen
  • 53
  • 1
  • 10
0
votes
1 answer

Tarantool - AUTOINCREMENT equivalent?

During my first steps with Tarantool I am wondering how to do basic things. Imagine that I am storing the following registers: s:insert(1,'{"name": "foo name", "phone": "foo phone"}') s:insert(2,'{"name": "barname", "phone": "bar phone"}') Is there…
M.E.
  • 4,955
  • 4
  • 49
  • 128
0
votes
1 answer

Tarantool - creating primary index

I am following the tarantool documentation but I am getting an error while creating the index. I would like to understand why this is failing, as I am following exactly the tutorial. $ tarantool tarantool: version 1.6.7-591-g7d4dbbb type 'help' for…
M.E.
  • 4,955
  • 4
  • 49
  • 128
0
votes
1 answer

tarantool queue attempt to index global 'queue'

I have error in line: que := queue.New(conn, "foobar") : Error eval:1: attempt to index global 'queue' (a nil value) (0x20) Config file: (if i delete box.once then erros tube is exists) How to correct init users and tube in config, without error…
0
votes
1 answer

Tarantool Data Modelling Relationships

I'm building an app that needs a model of a business. The model goes something like this: Company: { id (primary index) name description humans: [id_human1, id_human2, id_human3], jobs: [id_job1, id_job2, id_job3] } Human: { id (primary…
TaoJS
  • 109
  • 1
  • 2
  • 13
0
votes
0 answers

Connection refused [Tarantool + java client]

When i'm trying to connect to tarantool server i get the following error: Exception in thread "main" java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at …
Nikita Ryanov
  • 1,520
  • 3
  • 17
  • 34
0
votes
1 answer

How to add one year to timestamp in Tarantool 1.8 using SQL?

As I see in documentation, I can add one year to any date using datetime() function: SELECT datetime('2014-01-23 12:33:34', '1 year') Result is 2015-01-23 12:33:34. But I have timestamp in column (int value), for example 1390466014. When I try to…
Nick
  • 9,735
  • 7
  • 59
  • 89
0
votes
0 answers

tarantool pairs fetch not all tuples

box.space.test.index.secondary:select({1,'RU', 2}) --- - - [47, 6, 1, 'RU', 2, 11, 6] - [44, 3, 1, 'RU', 2, 101, 6] - [42, 1, 1, 'RU', 2, 189, 6] - [34, 3, 1, 'RU', 2, 260, 5] - [49, 8, 1, 'RU', 2, 290, 6] - [41, 0, 1, 'RU', 2, 303, 6] …
Sergey
  • 11
  • 2
0
votes
2 answers

How to achieve DISTINCT option in a tarantool query

Articles are parsed from an rss feed and each article might fall into many categories.Also each article has some metadata such as source,upstream etc. Below is how we are designing the spaces.Each article is inserted into the articles space. …
crackerplace
  • 5,305
  • 8
  • 34
  • 42
0
votes
1 answer

What's proper initial script for master-master tarantool replication settings?

I'm trying to use the same config file for master-master replication of tarantool. Here is the tester.lua for host1 and host2. box.cfg{ listen=3301, …
Daniel YC Lin
  • 15,050
  • 18
  • 63
  • 96
0
votes
0 answers

CMake Error: Unsupported architecture -- ppc64. On PowerPC Ubuntu

I have PowerMac G5. I install Lubuntu xenial on it. Now I try to build database Tarantool from source. Onthe step cmake . I have the following error: -- The C compiler identification is GNU 5.4.0 -- The CXX compiler identification is GNU 5.4.0 --…
zlon
  • 812
  • 8
  • 24