Skip to content

Commit

Permalink
Merge pull request #412 from ajkannan/datastore-index-link
Browse files Browse the repository at this point in the history
Add link about datastore indexing in docs
  • Loading branch information
aozarov committed Nov 24, 2015
2 parents d8a6159 + 8808c54 commit a23d8f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit a23d8f9

Please sign in to comment.