Skip to content
Merged
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
3 changes: 3 additions & 0 deletions sdk/cosmos/azure-spring-data-cosmos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,9 @@ public interface UserRepository extends CosmosRepository<User, String> {

- `findByFirstName` method is custom query method, it will find items per firstName.

#### Query Plan Caching
When query plan caching is enabled, custom query methods like `findByFirstName(String firstName)` where `firstName` is the partition key will result in lower query execution time. Query plan caching can be enabled by setting the `COSMOS.QUERYPLAN_CACHING_ENABLED` System property to 'true'. Currently, query plan caching is only supported for custom query methods targeting a single partition.

#### QueryAnnotation : Using annotated queries in repositories
Azure spring data cosmos supports specifying annotated queries in the repositories using `@Query`.
- Examples for annotated queries in synchronous CosmosRepository:
Expand Down