The cost of writing to the data warehouse says that the data warehouse object includes the built-in EntityByKinds index. This index includes an entity key.
Each time a new object of any kind is added, a new row is automatically added to this table with a new entity key, so it can be requested later.
So, I think that if no order is provided, the datastore returns objects ordered by key.
The entity key is stored in such a way that the object itself can be efficiently retrieved if it was returned as a result for a completed request.
I could not find a document on asc / desc, but when I asked below, the default was asc .
>SELECT * FROM Model order by __key__ asc >SELECT * FROM Model success and same result >SELECT * FROM Model order by __key__ desc no matching index found
So, the conclusion of my research is that the default order
order by __key__ asc
Please correct me if I miss something.
source share