User Tools

Site Tools


Sidebar

lua:run-without

Q. Is there a separate network interface to access Tarantool without Lua being involved in the network operation? (2016)

A. The binary protocol (which you start by saying box.cfg{listen=3303}) is running in its own thread. It supports the following operations:

INSERT, UPDATE, DELETE, SELECT - these go directly into the database.

CALL - invokes a stored function, be it Lua or C.

EVAL - evaluates a chunk of Lua code.

This is how you reach into Lua - by sending CALL.

So when you access Tarantool from, say, PHP or Java and issue INSERT/UPDATE/DELETE, Lua is not used, unless you define a trigger on a space that is invoked from the database.

Comments

Enter your comment. Wiki syntax is allowed:
J Q N L Y
 
lua/run-without.txt · Last modified: 2018/06/04 19:17 by eabates

Real Time Web Analytics