Generate most of the text for index.yaml from the query history.
google.appengine.datastore.datastore_stub_index.GenerateIndexFromHistory(
query_history, all_indexes=None, manual_indexes=None
)
Args |
query_history
|
Query history, a dict mapping datastore_pb.Query to a count
of the number of times that query has been issued.
|
all_indexes
|
Optional datastore_index.IndexDefinitions instance
representing all the indexes found in the input file. May be None.
|
manual_indexes
|
Optional datastore_index.IndexDefinitions instance
containing indexes for which we should not generate output. May be None.
|
Returns |
A string representation that can safely be appended to an existing
index.yaml file. Returns the empty string if it would generate no output.
|