Re: Deleting multiple entries from cache at once

2020-05-18 Thread nithin91
Thanks for sharing this.Its really helpful -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: Deleting multiple entries from cache at once

2020-05-18 Thread Stephen Darlington
Yes, that’s the removeAll method! There’s another method signature, one that accepts a parameter: public void removeAll(Set keys) throws TransactionException; There are a few ways to update multiple entries. You can always use the SQL UPDATE commend, but the equivalent to removeAll() is invokeAll

Re: Deleting multiple entries from cache at once

2020-05-18 Thread Manuel Núñez Sánchez
Hi! This is the method you are looking for (also available in async mode): /** * {@inheritDoc} * @throws TransactionException If operation within transaction is failed. */ @IgniteAsyncSupported @Override public void removeAll(Set keys) throws TransactionException; Als

Re: Deleting multiple entries from cache at once

2020-05-18 Thread nithin91
The method mentioned in the API is cache.removeAll() which removes all the elements is the cache but i want to remove certain entries from cache at once like cache.removeAll(List of Keys). is there any such method or efficient way to remove entries corresponding to List of Keys at once . *Simila

Re: Deleting multiple entries from cache at once

2020-05-17 Thread Manuel Núñez
Take a look at IgniteCache api docs... deleteAll by cache keys (faster) If you use QueryEntities you can use SQL DELETE statement with filters (slower) > El 17 may 2020, a las 12:14, nithin91 > escribió: > > Hi > > Is there an API, to delete multiple entries from cache efficiently? > > >

Deleting multiple entries from cache at once

2020-05-17 Thread nithin91
Hi Is there an API, to delete multiple entries from cache efficiently? -- Sent from: http://apache-ignite-users.70518.x6.nabble.com/