Indexes
Datastore leverages Bigtable behind the scenes for all persistence needs. While Bigtable is incredibly performant in storing and retrieving structured data from extremely large tables, it does so by only supporting index scans for data retrieval. Because of this, every Datastore query and lookup ultimately falls back to some form of index scan as well. In order for Datastore to provide higher-level functionality such as complex queries, all queryable properties of an entity must therefore become an index in Bigtable.
Datastore creates indexes for all entities based on their ancestry path, kind, and name or ID. By default, all properties of an entity are also indexed, unless explicitly excluded from indexing. In order for Datastore ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access