Closed firstthumb closed 6 years ago
In my current usage, unused null indexes have too much storage. I would like to have conditional index like in Objectify
@Index({IfNotNull.class, IfNotZero.class}) Long serialNumber;
Reference : Objectify Partial Indexes
Have you looked into the optional attribute of the Property annotation? I believe that will give you what you are looking for, as long as the values are null.
Closing this due to no response.
In my current usage, unused null indexes have too much storage. I would like to have conditional index like in Objectify
@Index({IfNotNull.class, IfNotZero.class}) Long serialNumber;
Reference : Objectify Partial Indexes