Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I am able to add composite indexes to index.yaml file and get it to work without removing and reloading the data from datastore

I thought that this was not possible and that you had to reload all the data if you added new indexes.

Is this supposed to happen?

like image 710
A Ba Avatar asked Jun 30 '16 17:06

A Ba


1 Answers

When Cloud Datastore builds a new index, it includes any existing entities that match the index, so there's no need to update your existing data.

If, however, you have inserted entities with unindexed properties and decide you want to define indexes on those properties, then you need to update each of those entities to mark the property as indexed.

like image 135
Ed Davisson Avatar answered Oct 21 '22 21:10

Ed Davisson