Properly Immutable Keys/values with Binary objects ?

2016-07-04 Thread Kristian Rosenvold
Some of our keys/values are properly immutable Java objects (with final), and it appears that the java Serialization is the only way these can be serialized. Looking at BinaryClassDescriptor#newInstance it appears a no-args constructor is the only supported method, and the BinaryConfiguration does

Re: Ignite C++ ScanQuery slower than Jav ScanQuery by 2x always

2016-07-04 Thread amitpa
Thats great !!!. I am sure that this will improve performance as this is one of the hottest method, and as I mentioned earlier this happens in Java too. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Ignite-C-ScanQuery-slower-than-Jav-ScanQuery-by-2x-always-tp60

Re: [IGFS][Semaphore] Write file concurrently from several nodes

2016-07-04 Thread AndreyVel
In the code I tried reproduce you issue. I ran code in 2 IDEA sessions, the ignite work correctly without any exception. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/IGFS-Semaphore-Write-file-concurrently-from-several-nodes-tp6009p6080.html Sent from the Apach

Re: Ignite C++ ScanQuery slower than Jav ScanQuery by 2x always

2016-07-04 Thread Igor Sapego
I have took a closer look on EnsureEnoughData() issues and seem to be found the roots of it. I've filed a ticket for this issue - [1]. [1] - IGNITE-3416: CPP: Review and optimize serialization and deserialization. Best Regards, Igor On Mon, Jul

Re: Starting H2 Debug Console On Remote Server

2016-07-04 Thread pragmaticbigdata
Ok. I understand. I need to start the ignite server instance on my local machine to view the h2 debug console. I have been experiencing web session timeout on the h2 debug console after which I see the h2 login screen. If I specify the db name in the jdbc url as the random id that was earlier gene

Re: Ignite C++ ScanQuery slower than Jav ScanQuery by 2x always

2016-07-04 Thread amitpa
Igor, Many thanks. For me that __scrt_common_main_seh looked starnge due to complete unfamiliarity with the code. That EnsureEnoughData is so hot bugs me too, I have seen it in Java also though. The BinaryWriter should help definitely, but i am struggling with it due to some weird problems.

Re: Iterating through a BinaryObject cache fails

2016-07-04 Thread pragmaticbigdata
Ok. Thanks for sharing the internals. By specifying the withKeepBinary flag, I was able to iterate through the cache and add or drop fields from a BinaryObject at runtime. This was the original purpose of iterating through the cache. The changes (of adding and/or dropping a field) made to the cac

Re: Error while loading data into cache with BinaryObject as key field

2016-07-04 Thread pragmaticbigdata
1. The strange part is even when the binary objects are created with different type names (different for key BinaryObject and for value BinaryObject), I am able to query the field that is the part of the key BinaryObject by specifying the valuetype 2. By "binary type descriptor" I understand that

Re: Iterating through a BinaryObject cache fails

2016-07-04 Thread Alexei Scherbakov
Hi, You should always use withKeepBinary if you plan to work with a cache containing BInaryObject key or value (including queries). The flag is used internally to prevent deserialization from binary representation to actual class instance. So the answers are: 1. yes if you want to load binary ob

Re: [IGFS][Semaphore] Write file concurrently from several nodes

2016-07-04 Thread cristic83
Hi Andrey, Thanks for replying. It seems the code you posted on github is quite similar to the one I already posted in this thread (except for the Thread.sleep and the outputwriter used for writing the file). What exactly would you need for me to add? Greetings, Cristi -- View this message in

Re: .net configure sql query with c# code, when execute query, return empty set

2016-07-04 Thread November
It works. I have worked on it the whole day. Thank you very much. -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/net-configure-sql-query-with-c-code-when-execute-query-return-empty-set-tp6069p6072.html Sent from the Apache Ignite Users mailing list archive at Na

Re: Error while loading data into cache with BinaryObject as key field

2016-07-04 Thread Alexei Scherbakov
Hi, 1. I see nothing strange here. Please explain in more details. 2. Because query engine uses binary type descriptor to update SQL indices for incoming data. 2016-07-03 20:16 GMT+03:00 pragmaticbigdata : > Thanks for pinpointing the issue. The issue got resolved after setting a > custom key

Re: .net configure sql query with c# code, when execute query, return empty set

2016-07-04 Thread Pavel Tupitsyn
Hi, You have to use Ignite Binary Serialization to enable SQL queries [1]. To do that, remove [Serializable] attribute and register Employee class in the configuration: var cfg = new IgniteConfiguration { CacheConfiguration = new[] {

.net configure sql query with c# code, when execute query, return empty set

2016-07-04 Thread November
Here is my code. Thanks. namespace FirstIgnite { class Program { static void Main(string[] args) { var cfg = new IgniteConfiguration { CacheConfiguration = new[] { new CacheConfiguration("mycache",

Re: Ignite C++ ScanQuery slower than Jav ScanQuery by 2x always

2016-07-04 Thread Igor Sapego
Hi, It is nothing strange for the __scrt_common_main_seh to be a hot spot as it is C++ program entry point. I took a look on the profiling results you provided and it seems like a lot of time is spent in serialization/deserialization methods. The most hot method is surprisingly InputStream::Ensur