On Thursday, 27 December 2012 01:27:47 UTC+13, aschmid wrote:
even if a property is not indexed is needs to be written to the datastore so it costs 1 write instead of 2 (one to the datastore and one to the index).
Unindexed properties do not cost anything to write. They are included in the one write operation that writes the entity data. Basically, all properties are serialised and written as a single opaque unit. It costs no more to write 1000 unindexed properties as 1 - however the latency to read and write will be higher which will cost you in terms of instance hours.
An indexed property costs 2 writes because each index (ASC, DESC) is a separate write.
vlad UNEXISTING props do not add any write cost ;)
What do you mean by UNEXISTING? Be careful here because null values will also cost 2 writes if they are indexed.
Twig (prob also Objectify) can be configured store null values as indexed or not indexed (also or stored or not stored) while still storing non-null values.