Scan query vs Sql query

2016-12-28 Thread rishi007bansod
>From performance point of view which type of query is better? When should we use scan query and when should we use sql query? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Scan-query-vs-Sql-query-tp9793.html Sent from the Apache Ignite Users mailing list

Re: Partitions within single node in Apache Ignite

2016-12-28 Thread rishi007bansod
Can you give example for how we can scan query by partition id in single node? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Partitions-within-single-node-in-Apache-Ignite-tp9726p9792.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Afinity Key

2016-12-28 Thread Tejashwa Kumar Verma
Hi, cache1.put(new AffinityKey<>(*pk0*, eqID), value2); cache2.put(new AffinityKey<>(*pk1*, eqID), value2); If we are using 2 different primary key for eqId then data of cache1 and cache2 will collocated on the basis of *eqID* Thanks & regards Tejas On Thu, Dec 29, 2016 at 10:25 AM,

Re: Afinity Key

2016-12-28 Thread Tejashwa Kumar Verma
Hi, I think this affinity part is working fine, but now i am seeing data discrepancy. Do we need to enable 'distributed join' also? Thanks & regards Tejas On Wed, Dec 28, 2016 at 5:24 PM, dkarachentsev wrote: > Duplicates [1] > > [1]

Re: IgniteDataStreamer with Continuous Query

2016-12-28 Thread ANKIT SINGHAI
Thanks On Dec 28, 2016 7:12 PM, "dkarachentsev" wrote: > Hi Ankit, > > Yes, you can use ContinuousQuery with DataStreamer. Code samples you may > found here [1] and [2]. > > [1] > https://github.com/apache/ignite/blob/master/examples/ >

Re: Error while writethrough operation in Ignite

2016-12-28 Thread vkulichenko
Dmitry, I probably do not correctly understand what is wrong, but it feels like something needs to be fixed anyway. If you agree, can you please move this to dev list? -Val -- View this message in context:

Re: How to query data from List

2016-12-28 Thread vkulichenko
Yes, this is possible. See this thread: http://apache-ignite-users.70518.x6.nabble.com/Does-Ignite-support-query-and-index-the-embedded-object-column-td9663.html -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-to-query-data-from-List-tp9766p9785.html

Re: Make changes to cache entry before data rebalanicng.

2016-12-28 Thread Yakov Zhdanov
Igor, it is impossible to alter the value since it may cause data inconsistency. Imagine you have 2 nodes and cache with 1 backup. 3 node joins and you alter cache entries being sent from node 1 and 2 to 3, but those entries are currently backed up on 2 and 1 respectively. Please explain why you

Re: Make changes to cache entry before data rebalanicng.

2016-12-28 Thread dkarachentsev
No, but you can subscribe on such events: EventType.EVT_CACHE_REBALANCE_OBJECT_LOADED, EventType.EVT_CACHE_REBALANCE_OBJECT_UNLOADED [1] and, for example, update another cache with some metadata. [1] https://apacheignite.readme.io/v1.8/docs/events -- View this message in context:

Re: IgniteDataStreamer with Continuous Query

2016-12-28 Thread dkarachentsev
Hi Ankit, Yes, you can use ContinuousQuery with DataStreamer. Code samples you may found here [1] and [2]. [1] https://github.com/apache/ignite/blob/master/examples/src/main/java/org/apache/ignite/examples/streaming/StreamTransformerExample.java [2]

Re: Affinity Key

2016-12-28 Thread dkarachentsev
Tejas, What is your use-case? AffinityKey helps collocate related data. F.e. if you have Person and Organization entities and want that Person`s related to Organization was resided on the same node, you may use AffinityKey: // Organizations. Organization org1 = new

IgniteDataStreamer with Continuous Query

2016-12-28 Thread Ankit Singhai
Hi All, Can we have DataStreamerer pushing data via StreamTransformer to an cache and an ContinousQuery executing on cache to raise the event when the condition meets? Any sample would do lot of help. Thanks Ankit Singhai -- View this message in context:

Re: Affinity Key

2016-12-28 Thread Tejashwa Kumar Verma
Hi dkarachentsev, I had tried below way to implement affinityKey.. cache1.put(new AffinityKey<>(pk0, eqID), value2); cache2.put(new AffinityKey<>(pk, eqID), value2); But after doing above. full data was not getting loaded in cache . It was loading only 2 records and getting stuck there only .

Re: Affinity Key

2016-12-28 Thread dkarachentsev
Hi Tejas, You may do the following: cache1.put(eqID, value1); or cache1.put(new AffinityKey<>(pk0, eqID), value2); cache2.put(new AffinityKey<>(pk, eqID), value2); In that case keys in Cache 2 will be collocated with keys in Cache 1. -- View this message in context:

Re: Error while writethrough operation in Ignite

2016-12-28 Thread dkarachentsev
Val, Of course it's possible, but why Ignite should restrict this case? Why not to build such update request: UPDATE table_name SET col1=1, col2=2, col3=3 WHERE (col1=1 AND col2=1 AND col3=1) ? -- View this message in context: