Good Afternoon,
I have a inconvenient when I create a asynceventlistener with clauses GENERATED ALWAYS AS IDENTITY and GENERATED BY DEFAULT AS IDENTITY in creating asynceventlistener table does not respect the creation parameters. I have the following example:
--asynceventlistener
create asynceventlistener referrallistener
(
listenerclass 'com.vmware.sqlfire.callbacks.DBSynchronizer'
initparams
'com.mysql.jdbc.Driver,jdbc:mysql://localhost:3306/sqlfdb,user,password'
ENABLEBATCHCONFLATION true
BATCHSIZE 100000
BATCHTIMEINTERVAL 60000
ENABLEPERSISTENCE true
)
server groups (dbsync);
--start asynceventlistener
call sys.start_async_event_listener('REFERRALLISTENER');
--create table in sqlfire
create table sqlftest
(id int not null GENERATED ALWAYS AS IDENTITY,
name varchar(10),
PRIMARY KEY (id))
asynceventlistener(referrallistener);
--create table in mysql
create table sqlftest
(id int not null AUTO_INCREMENT, name varchar(10),
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
When I insert in sqlfire this replicates to Mysql database but does so immediately, regardless BATCHTIMEINTERVAL that is 60 seconds or the BATCHSIZE.
Thanks for the support.
Guillermo