So I have a live Python application on App Engine that has far too many automatic indexes. I noticed a high amount of datastore writes for my low entity count and I believe this is the cause. Each entity has many StringProperties and some even have StringListProperties.
I added the indexed = False to all my object’s properties (I don’t every use a query where this would matter):
someproperty = db.StringProperty(indexed = False)
Is there anything else I need to do for new entities to be unindexed? Do I need to increment the app’s version id?
Do I need to run appcfg.py vacuum_indexes . ?
vacuum_indexes is only for indexes defined in index.yaml, for automatic index its enough to set indexed = False and uploaded a new version.
You can see the impact of setting indexed to False in the development server datastore page in the write counts column.