How to write-through when database contains identity column

2017-02-02 Thread davida
Hi all, I have implemented write-through using CacheStoreAdapter. The object being inserted contains identity column in the database and as a so, generates value in DB (this value is also my cache key). I have noticed that when CacheStoreAdapter.Write(object key, object val) method is executed as

Re: Distributed query is too slow.

2017-02-02 Thread dkarachentsev
I've just ran your tests, the project attached. Could you please, in turn, send your? This will help understand what goes wrong. Thanks! ignite-perf-test.zip -Dmitry. -- View this message in context:

Re: NOT IN in ignite

2017-02-02 Thread Anil
Hi Val, Did you get a chance to check with dev list on this ? Thanks. Thanks. On 10 January 2017 at 07:51, Anil wrote: > Thanks Val. > > On 10 January 2017 at 04:32, vkulichenko > wrote: > >> It works properly for me when I remove collocated

How create cache on linux system for apache ignite/ gridgain .

2017-02-02 Thread Debasish Pradhan
Hi , I am new to ignite . I am able to create cache on windows using eclipse by right clicking on the java code. Is there any way that can be used on linux system . If using the jar file created using eclipse while running on linux machine its showing error to load main function . Please

Re: 2nd level cache with eclipselink

2017-02-02 Thread ignite_user2016
Any plan to add eclipse link JPA implementation. for 2nd level cache ? Take Care, Rishi > On Feb 2, 2017, at 8:07 PM, vkulichenko [via Apache Ignite Users] > wrote: > > I don't think there is an implementation for Eclipselink. Ignite provides L2 > cache

Re: count from subquery is wrong

2017-02-02 Thread vkulichenko
I think optimization is possible only if you don't have any conditions (i.e. query like 'select count(*) from Table'). Ignite doesn't optimize this case though. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/count-from-subquery-is-wrong-tp10344p10407.html

Re: How we can get metrics through JMX?

2017-02-02 Thread vkulichenko
MBeans are created automatically by default. Just connect to MBean server with any JMX client (e.g. VisualVm) to view them. Default port is 49112 (the actual value is printed out in the startup log). -Val -- View this message in context:

Re: Thread pool for partition aware operations

2017-02-02 Thread vkulichenko
Anything executed on IgniteCompute API is executed in public pool (size is configured via IgniteConfiguration.publicThreadPoolSize property), while all cache operations including entry processor are executed in system pool (IgniteConfiguration.publicSystemPoolSize property). Sizes for both pools

Re: 2nd level cache with eclipselink

2017-02-02 Thread vkulichenko
I don't think there is an implementation for Eclipselink. Ignite provides L2 cache for Hibernate and also there is an implementation for MyBatis. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/2nd-level-cache-with-eclipselink-tp10385p10402.html Sent from

Re: Local node seems to be disconnected from topology (failure detection timeout is reached)

2017-02-02 Thread vkulichenko
Hi Yuci, We do not allow reconnection of server nodes because it's dangerous for data consistency. Segmented node must rejoin topology as a new one. There is RESTART_JVM policy which restarts node immediately. -Val -- View this message in context:

Re: Read heavy small cache in all clients and servers

2017-02-02 Thread vkulichenko
Then partitioned cache would be a better choice. Also it sounds like continuous queries can be useful to notify other clients about updates: https://apacheignite.readme.io/docs/continuous-queries -Val -- View this message in context:

Re: Deploying cache on selected server nodes within cluster

2017-02-02 Thread vkulichenko
You don't need custom affinity function for this. Nodes where a particular cache is deployed is defined by filter provided via CacheConfiguration.nodeFilter property. I would recommend to use user node attributes to assign nodes to different logical groups, and implement a filter that will filter

Re: backup to swap

2017-02-02 Thread vkulichenko
Yep, sounds correct. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/backup-to-swap-tp10255p10398.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Ignite cluster will be jammed for long-running queries

2017-02-02 Thread ght230
I have noticed that the patch about IGNITE-4105 has been provided, I will tried it. Thank you very much! -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-cluster-will-be-jammed-for-long-running-queries-tp10210p10397.html Sent from the Apache Ignite Users

Re: Custom AffinityFunction

2017-02-02 Thread vkulichenko
Yes, if collocated types are stored in different caches, these caches must have the same affinity function. -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Custom-AffinityFunction-tp10167p10396.html Sent from the Apache Ignite Users mailing list archive at

Re: Configure number of partitons

2017-02-02 Thread vkulichenko
Number of partitions is configured as a part of affinity function: -Val -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Configure-number-of-partitons-tp10392p10395.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

How we can get metrics through JMX?

2017-02-02 Thread hitendrapratap
What configurations we will need in order to get metrics through JMX? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-we-can-get-metrics-through-JMX-tp10394.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Thread pool for partition aware operations

2017-02-02 Thread hitendrapratap
Is there any separate thread pool for partition aware operations (Affinity Key IgniteCallable, Entry Processor)? If its there then how we can configure it?Is there any consequences of increasing the same. Is there any separate thread pool for normal operations like GET, PUT? If its there then how

Configure number of partitons

2017-02-02 Thread hitendrapratap
How we can configure number of partitions (default 1024)? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Configure-number-of-partitons-tp10392.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: Custom AffinityFunction

2017-02-02 Thread dmsy
Thanks for the quick response Val. Does that also mean that I wont be able to take advantage of Affinity Collocation unless all Cache uses the same AffinityFunction? -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Custom-AffinityFunction-tp10167p10391.html Sent

Usign Apache for non-SQL related grid computing

2017-02-02 Thread Raymond Wilson
Hi, I have a potential use case where I have a collection of blocks of binary data that I would like to perform parameterised compute operations across. The data is not stored in an RDBMS, but more in a flat file oriented fashion. The blocks of data are spatial in origin (in that they are

Performance benefit of using withKeepBinary when getting the whole object on client side

2017-02-02 Thread hitendrapratap
Will be there any performance benefit between the below if we execute these statements from client and getting the whole CustomObject on client side: 1. Executing on client side with KeepBinary IgniteCache cache = igniteInstance.cache("cache")

Re: Question on Querying Cache Data

2017-02-02 Thread Denis Magda
Hi, In general, Apache Ignite is both data and computational layer for your application. Treat it as a storage which is distributed and fault-tolerant and can make your overall solution much faster because the data is closer to CPUs (in RAM) and spread across multiple cluster nodes. Having

Re: Distributed query is too slow.

2017-02-02 Thread Vladimir St.
Hi Dmitry. Thanks for the answer. dkarachentsev wrote > When you run test on single node it works just locally, without node > communication overhead. Good point will be to test on client node. In that > case, even with one server node, query will be sent over network with all > that

2nd level cache with eclipselink

2017-02-02 Thread ignite_user2016
Can any one post an example on 2nd level cache with eclipselink ? is it being supported with Ignite cache ? any help would be helpful here.. Thanks, Rishi -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/2nd-level-cache-with-eclipselink-tp10385.html Sent from

Re: Deploying cache on selected server nodes within cluster

2017-02-02 Thread Andrey Mashenkov
Hi, You can use custom AffinityFunction implementation to map partitions to certain nodes. and ClusterNode.attribute() to mark nodes with some attribute to make them "belongs to certain zone". On Thu, Feb 2, 2017 at 5:29 PM, rishi007bansod wrote: > In following

Deploying cache on selected server nodes within cluster

2017-02-02 Thread rishi007bansod
In following example, https://dzone.com/articles/how-apache-ignite-helped-a-large-bank-process-geog-1 How is data cache deployed on selected servers within cluster? As, by using cache in partitioned mode, it gets

Question on Querying Cache Data

2017-02-02 Thread sb0829
Hi Everyone, I am new to Apache Ignite. I have done some basic examples by querying on Ignited Hive. Can I get suggestions for business use-cases by using Apache Ignite? According to what I have understood, suppose i have data in cache, what further things can be done using Apache Ignite? By

Re: simple file based persistent store support TTL

2017-02-02 Thread shawn.du
thanks Val.  On 02/2/2017 05:27, vkulichenko wrote: Hi Shawn, Built in expiration is cache expiration, which by definition 

Re: Distributed query is too slow.

2017-02-02 Thread dkarachentsev
Hi Vladimir, When you run test on single node it works just locally, without node communication overhead. Good point will be to test on client node. In that case, even with one server node, query will be sent over network with all that communication stuff. Also, if cache is REPLICATED, query