You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by gunman524 <gu...@126.com> on 2018/01/25 01:57:45 UTC

Can writeSynchronizationMode be modified online?

Hi there,

A simple question, can writeSynchronizationMode be modified online?  As my
cache currently in 'full_sync" mode, can it be modified to 'primary_sync'
online?  like by restful or  visor?

BTW, the cache I created by DDL
CREATE TABLE IF NOT EXISTS person ( id int,orgId LONG, name VARCHAR, salary
LONG ,PRIMARY KEY (id) ) WITH "TEMPLATE=PARTITIONED,backups=1,
affinityKey=id, value_type=MyPerson"

why writeSynchronizationMode  be set as full_sync? I think the default value
is "primary_sync". 



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Can writeSynchronizationMode be modified online?

Posted by "slava.koptilin" <sl...@gmail.com>.
Hello,

Write synchronization mode is one of the crucial settings of cache
configuration and cannot be changed after a cache has been created.
By default, SQL engine uses FULL_SYNC synchronization mode [1]
You can choose the required mode by specifying the additional parameter as
follows:
CREATE TABLE IF NOT EXISTS person ( id int,orgId LONG, name VARCHAR, salary 
LONG ,PRIMARY KEY (id) ) WITH "TEMPLATE=PARTITIONED,backups=1, 
affinityKey=id, value_type=MyPerson,WRITE_SYNCHRONIZATION_MODE=PRIMARY_SYNC"

[1] https://apacheignite-sql.readme.io/docs/create-table

Thanks!



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/