You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Naveen <na...@gmail.com> on 2021/01/06 13:34:16 UTC

Can we disable/enable WAL of a cache with thin client

HI

I was just trying to disable WAL for one of the bulk data ingestion use case
and we are using Java thin client, am not finding any method to disable WAL
for a cache. 
Using thick client, this is how we do 

ignite.cluster().disableWal(cacheStr);

OR is it not there for thin clients ?

Thanks
Naveen



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

Re: Can we disable/enable WAL of a cache with thin client

Posted by Ilya Kasnacheev <il...@gmail.com>.
Hello!

You should see the WAL disable/enable messages in the logs of server nodes:
Global state for group durability has changed [name=MY_CACHE, enabled=true]

It's on INFO log level.

Regards,
-- 
Ilya Kasnacheev


чт, 7 янв. 2021 г. в 09:19, Naveen <na...@gmail.com>:

> Thanks Stephen
>
> How do we verify from the SQL console that WAL is disabled or enabled.
> Because I did set to nologging and did some bulk data ingestion, but not
> much improvement in the ingestion process. So i just wanted to check
> whether
> it has disabled the wal with this alter cache statement.
>
> Thanks
>
>
>
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
>

Re: Can we disable/enable WAL of a cache with thin client

Posted by Naveen <na...@gmail.com>.
Thanks Stephen

How do we verify from the SQL console that WAL is disabled or enabled. 
Because I did set to nologging and did some bulk data ingestion, but not
much improvement in the ingestion process. So i just wanted to check whether
it has disabled the wal with this alter cache statement.

Thanks



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

Re: Can we disable/enable WAL of a cache with thin client

Posted by Stephen Darlington <st...@gridgain.com>.
There’s no similar API currently as far as I know, but you might be able to use a SQL command:

ALTER TABLE cachename NOLOGGING;

To reenable:

ALTER TABLE cachename LOGGING;

Regards,
Stephen

> On 6 Jan 2021, at 13:34, Naveen <na...@gmail.com> wrote:
> 
> HI
> 
> I was just trying to disable WAL for one of the bulk data ingestion use case
> and we are using Java thin client, am not finding any method to disable WAL
> for a cache. 
> Using thick client, this is how we do 
> 
> ignite.cluster().disableWal(cacheStr);
> 
> OR is it not there for thin clients ?
> 
> Thanks
> Naveen
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/