Re: read-serialized with JSON store

2017-07-18 Thread Hitesh Khamesra
It sounds like we should be converting pdx-serialized bytes to PdxInstance, if it contains JSON document. Delta-propagation: This would require some indication from app for delta fields(ie. DeltaPdxInstance). And then update those fields at server side. Need some more thoughts but please create

Re: Is there a way to control how many connections between server peers?

2017-06-19 Thread Hitesh Khamesra
for gateway sender one can configure dispatcher-threads. Geode will run that many threads in each VM for gateway sender. This should help to reduce the number of connections. see here Configuring Dispatcher Threads and Order Policy for Event Distribution | Geode Docs | | | Configuring

Re: PDX SERIALIZATION WITH C++ GEODE-NATIVE

2017-06-15 Thread Hitesh Khamesra
Hi: At client, you can just use "LdapObjectPdx" object, which will be always in de-serialize form. Do you see any issue with it? Thanks.Hitesh From: Evaristo José Camarero To: Hitesh Khamesra ; "user@geode.apache.org" Sent: Thursday, June 15, 2017 3:47

Re: PDX SERIALIZATION WITH C++ GEODE-NATIVE

2017-06-14 Thread Hitesh Khamesra
>>>This method consumes most of the CPU:CacheablePtrattributes;    >>>instance->getField("attributes", attributes); Do you know who is calling getField(..) api? Is application using PdxInstance? Thanks.Hitesh. From: Evaristo José Camarero To: "user@geode.apache.org" Sent: Wednesday, Ju

Re: Unknown Pdx Type use case found, bug or expected?

2017-03-09 Thread Hitesh Khamesra
Hi Roger: Sorry to hear about this. There is system property on client side to clean pdx-registry when it disconnects from server. You can find details here https://discuss.pivotal.io/hc/en-us/articles/221351508-Getting-Stale-PDXType-error-on-client-after-clean-start-up-of-servers. I think we sho

Re: How to preinitialize cache before use

2017-02-26 Thread Hitesh Khamesra
See if following method helps "org.apache.geode.cache.partition.PartitionRegionHelper.assignBucketsToPartitions". This needs to call when all servers are up.   /**    * Decide which partitions will host which buckets. Gemfire normally assigns buckets to partitions    * as needed when data is a

Re: Project demonstrating indexing technique using quad trees

2017-02-16 Thread Hitesh Khamesra
Awesome work CB !!! Curious, How memory quad tree takes? Lets say we have 1 million locations(banks, hotels etc..) to track. approx  = 1 million * 20 byte longitude * 20 byte latitude * ??? Thinking can we fit this into each node, so that query go to one node only by user location. -Hitesh.

[ANNOUNCE] Apache Geode release 1.1.0

2017-02-15 Thread Hitesh Khamesra
The Apache Geode team is proud to announce Apache Geode release version 1.1.0 Apache *Geode* is a data management platform that provides a database-like consistency model, reliable transaction processing and a shared-nothing architecture to maintain very low latency performance with high concurren

Re: GeodeRedisAdapter improvments/feedback

2017-02-15 Thread Hitesh Khamesra
l want PARTITION but Customer B will want > PARTITION_REDUNDANT_EXPIRATION_PERSISTENT.  I wonder if we can consider a > geode> create region —redisType=PARTITION_REDUNDANT_EXPIRATION_PERSISTENT > that makes _all_ Redis regions of that type? > > > > On Feb 14, 2017, at 5:36 PM,

Re: GeodeRedisAdapter improvments/feedback

2017-02-14 Thread Hitesh Khamesra
ou want to know top 10 tweets which are trending then probably you want use partition-region for "sorted-set". From: Jason Huynh To: d...@geode.apache.org; "user@geode.apache.org" ; Hitesh Khamesra Sent: Tuesday, February 14, 2017 3:15 PM Subject: Re: GeodeRed

GeodeRedisAdapter improvments/feedback

2017-02-14 Thread Hitesh Khamesra
Current GeodeRedisAdapter implementation is based on https://cwiki.apache.org/confluence/display/GEODE/Geode+Redis+Adapter+Proposal. We are looking for some feedback on Redis commands and their mapping to geode region. 1. Redis Type String   a. Usage Set k1 v1   b. Current implementation creates

Re: JSON in Apache geode

2017-01-03 Thread Hitesh Khamesra
Just to add here, you can add "JSONFormatter.fromJSON(obj.toJ SONString()" for region keys as well, but need to set pdx "read-serialized="true" for that. This will consider all the fields of JSON for hashcode/equals. From: Dharam Thacker To: user@geode.apache.org Sent: Sunday, January