I'm also a Java developer and in Linux platform. I am using the gcloud-java for operating datastore and that is a really good library.
However, the query/insert performance is not good even I don't count the connection time.
From my testing experience, the average time of inserting and query one entity (4 properties) is about 2000~2800ms/200~600ms.
Could you please let me know that is it possible to improve the performance?
or does your team have plan to improve the performance?? Thanks.
Version: 0.2.1
// Initialize
DatastoreOptions options = DatastoreOptions.builder()
.authCredentials(AuthCredentials.createForJson(new FileInputStream(mCertJsonFile)))
.projectId(mProjectId).namespace(mNamespace).build();
mDatastore = options.service();
// [query] start to log time
mDatastore.run(Query.entityQueryBuilder().kind(KIND_NAME).build())
// [query] end to log time => average: 200~600ms
// [insert] start to log time
mDatastore.put(entity)
// [insert] end to log time => average: 2000~2800ms