sai-pullabhotla / catatumbo

JPA like Persistence Framework for Google Cloud Datastore and Cloud Firestore
http://catatumbo.io
Apache License 2.0
51 stars 20 forks source link

Support for conditional index #201

Closed firstthumb closed 6 years ago

firstthumb commented 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

sai-pullabhotla commented 6 years ago

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.

sai-pullabhotla commented 6 years ago

Closing this due to no response.