ignite-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: How to update QueryEntities property of CacheConfiguration for existing/already created cache
Date Tue, 24 Sep 2019 05:12:27 GMT
Hi siva, modifying QueryEntity configuration of existing cache is not
Also, having multiple model classes per cache is not recommended.
The recommended way is to create a new cache for every new model/entity,
and have one QueryEntity per cache.
Note that you can achieve all the same queries with multiple caches, like
joins across many entities and so on.

You can manipulate SQL tables for existing caches with DML, though, which
is almost what you ask for:


On Mon, Sep 23, 2019 at 6:27 PM siva <siva.karna@bizruntime.com> wrote:

> Hi,
> we have implemented .net core server with 3rd party and native persistence
> enabled & .net core thick client to create caches and thinclient to perform
> crud/sql operations to the grid from multiple applications
> we are creating single cache for multiple models classes  and working
> fine.But problem is if we want to add new model class which should be
> queriable as old model classes to the existing cache since we are
> registering QueryEntities at the time of create cache.
> *so, how to update QueryEntities property of CacheConfiguration with New
> QueryEntity  Model class for existing/already created cache?*
> Created Cache by using bellow obejct:
> I have tried like
>          But still not effected ,QueryEntities property still list of two
> QueryEntity classes only
> Thanks
> siva
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/

View raw message