I am currently creating a Google Cloud Dataflow task that parses XML files and saves records using Google Datastore, as various Java libraries look very confusing.
At first I found com.google.datastore.v1 that works fine with Dataflow, but later I realized that there is no option to exclude fields from indexing. (Most of my fields do not need an index and will never be used in a query.)
Then I found com.google.cloud.datastore, which has a method called "setExcludeFromIndexes" to achieve exactly what I was looking for, but Dataflow cannot save entities generated using this library.
Is one of the libraries newer or what's the difference at all? And is there a way to disable indexes for individual fields using the v1 library?
source
share