Skip to content

Commit fd3992b

Browse files
authored
Merge pull request #100258 from timsander1/master
case insensitive search note
2 parents ee8890a + d357083 commit fd3992b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

articles/cosmos-db/sql-query-lower.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ms.custom: query-reference
1010
---
1111
# LOWER (Azure Cosmos DB)
1212
Returns a string expression after converting uppercase character data to lowercase.
13-
13+
14+
The LOWER system function does not utilize the index. If you plan to do frequent case insensitive comparisons, the LOWER system function may consume a significant amount of RU's. If this is the case, instead of using the LOWER system function to normalize data each time for comparisons, you can normalize the casing upon insertion. Then a query such as SELECT * FROM c WHERE LOWER(c.name) = 'bob' simply becomes SELECT * FROM c WHERE c.name = 'bob'.
15+
1416
## Syntax
1517

1618
```sql

articles/cosmos-db/sql-query-upper.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ ms.custom: query-reference
1010
---
1111
# UPPER (Azure Cosmos DB)
1212
Returns a string expression after converting lowercase character data to uppercase.
13-
13+
14+
The UPPER system function does not utilize the index. If you plan to do frequent case insensitive comparisons, the UPPER system function may consume a significant amount of RU's. If this is the case, instead of using the UPPER system function to normalize data each time for comparisons, you can normalize the casing upon insertion. Then a query such as SELECT * FROM c WHERE UPPER(c.name) = 'BOB' simply becomes SELECT * FROM c WHERE c.name = 'BOB'.
15+
1416
## Syntax
1517

1618
```sql

0 commit comments

Comments
 (0)