Search code examples
google-app-engineindexingdatastore

How can I discover if a property of a stored Entity is indexed or unindexed?


I have several entities in datastore, but I don't know if some of their properties are indexed or unindexed. How can I discover (with admin console or programatically) if a property of a stored Entity is indexed or unindexed?


Solution

  • By default each entity is indexed (unless its TextProperty or BlobProperty), you need (and should) set the property indexed property to False if you don't want it to be indexed (to improve performance and entity writing costs).

    There is no indication in the admin console on if a property is indexed or not, You can try to execute "select * from EntityType order by Property" in the GQL of the datastore views and see if it fails.