-1

I have an NDB model with some obsolete EntitiesByProperty indexes. Some belong to properties that are no longer part of the schema (but they do exist on some old entities), and some belong to properties that are never used for queries (but they were with Indexed=True because this is ndb model's default).

I tried using vacuum_indexes, but it only vacuums composite indexes. I also changed some of those properties to have Indexed=False, but no EntitiesByProperty index tables are deleted.

How can I remove obsolete EntitiesByProperty index table? It looks like I'll have to write some code that will update all model entities. Is it correct? Are there any other ways of simply dropping the entire table?

Dan McGrath
  • 41,220
  • 11
  • 99
  • 130
sagie
  • 2,998
  • 3
  • 22
  • 31

1 Answers1

1

Yes, you'll have to re-put all of your entities in order to update the values in the indexes (or remove them, as you're asking)

Nicholas Franceschina
  • 6,009
  • 6
  • 36
  • 51