Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add link about datastore indexing in docs #412

Merged
merged 1 commit into from
Nov 24, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions gcloud-java-datastore/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ while (results.hasNext()) {
}
```

Cloud Datastore relies on indexing to run queries. Indexing is turned on by default for most types of properties. To read more about indexing, see the [Cloud Datastore Index Configuration documentation](https://cloud.google.com/datastore/docs/tools/indexconfig).

#### Complete source code

Here we put together all the code shown above into one program. This program assumes that you are running on Compute Engine or from your own desktop. To run this example on App Engine, simply move the code from the main method to your application's servlet class.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
* A Google Cloud Datastore query.
* For usage examples see {@link GqlQuery} and {@link StructuredQuery}.
*
* Note that queries require proper indexing. See
* <a href="https://cloud.google.com/datastore/docs/tools/indexconfig">
* Cloud Datastore Index Configuration</a> for help configuring indexes.
*
* @param <V> the type of the values returned by this query.
* @see <a href="https://cloud.google.com/datastore/docs/concepts/queries">Datastore Queries</a>
*/
Expand Down