The SQL queries are not getting me performance that I want. So I was trying
for alternative methods to handle the same using get.
Like getting the data using cache.get() and filtering them with the sql
operations that I actually wanted to do.
Suppose I have an equals method which will have two return cases working
based on a field value "Y" or "N". So there are basically two cases in
equals which will get executed based on the field value. That way I can get
results differently, right?
for example in a customer key class, I have a customer id and a customer
number fields. In my equals method I have something like this:
if("Y".equals(field))
return (null != this.custNo && null != custNo &&
this.custNo.compareTo(CustomerMaster.custNo) == 0)
else
return (null != this.custId && null != custId &&
this.custId.compareTo(CustomerMaster.custId) == 0)
This would fetch me records differently, right?
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/