Skip to content

Feature: Skip space configuration checking/syncing #11

Open
fsitedev opened this issue Jun 29, 2016 · 2 comments
Open

Feature: Skip space configuration checking/syncing #11

fsitedev opened this issue Jun 29, 2016 · 2 comments

Comments

@fsitedev
Copy link

It would be great skip all schema checking if "DR::Tarantool::MsgPack::AsyncClient->connect" has no passed attribute 'spaces'

@limpasha
Copy link

limpasha commented Jul 4, 2016

Now it works this way: you pass spaces argument to connect method of AyncClient or SyncClient classes and it uses this specified spaces configuration. In case of use only call_lua methods no soft-schema reload ( #2 ) is caused.

So, spaces can be stub like this:

my $spaces = {
   1 => {
     name => 'stub',
     fields  => [ qw(stub) ],
     indexes => { 0 => 'stub' }
     },
 };

and then

my $connection = DR::Tarantool::MsgPack::SyncClient->connect(
   host => "127.0.0.1",
   port => 3301,
   spaces => $spaces
);

If no spaces argument passed to connect method, automatic schema load from tarantool is triggered.

@fsitedev
Copy link
Author

fsitedev commented Jul 4, 2016

Thanks! It works.
But maybe placing this default space configuration right in the 'DR::Tarantool::MsgPack::SyncClient->connect' method would be more obvious behaviour?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants