Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 193198

asynceventlistener in tables with GENERATED ALWAYS AS IDENTITY and GENERATED BY DEFAULT AS IDENTITY

$
0
0

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

Viewing all articles
Browse latest Browse all 193198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>