Skip to content

Commit 1f63898

Browse files
authored
Merge branch 'master' into users/aavasthy/404_1002
2 parents 1ad3fef + 5beb345 commit 1f63898

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Microsoft.Azure.Cosmos/src/Query/Core/QueryAdvisor/QueryAdviceRuleDocumentation.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
</Rule>
1212
-->
1313
<QueryAdvice>
14-
<UrlPrefix>https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/</UrlPrefix>
14+
<UrlPrefix>https://aka.ms/CosmosDB/QueryAdvisor/</UrlPrefix>
1515
<Rules>
1616
<Rule Id="QA1000" Name="PartialArrayContains">
1717
<Title>[CDATA["Query uses ARRAY_CONTAINS with partial matching."]]</Title>

Microsoft.Azure.Cosmos/tests/Microsoft.Azure.Cosmos.EmulatorTests/BaselineTest/TestBaseline/QueryAdvisorBaselineTest.QueryAdviceParse.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
WHERE CONTAINS(r.name, "Abc") ]]></Query>
88
</Input>
99
<Output>
10-
<QueryAdvice><![CDATA[QA1002: Instead of CONTAINS, consider using STARTSWTIH or computed properties, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1002
10+
<QueryAdvice><![CDATA[QA1002: If you are matching on a string prefix, consider using STARTSWITH. For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1002
1111
]]></QueryAdvice>
1212
</Output>
1313
</Result>
@@ -19,8 +19,8 @@
1919
WHERE GetCurrentTimestamp() > 10 ]]></Query>
2020
</Input>
2121
<Output>
22-
<QueryAdvice><![CDATA[QA1009: Instead of using GetCurrentTimestamp, consider using GetCurrentTimestampStatic, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1009
23-
QA1008: Instead of using GetCurrentTicks, consider using GetCurrentTicksStatic, which may improve performance. For more information, please visit https://learn.microsoft.com/en-us/azure/cosmos-db/nosql/query/queryadvisor/QA1008
22+
<QueryAdvice><![CDATA[QA1009: Consider using GetCurrentTimestampStatic instead of GetCurrentTimestamp in the WHERE clause . For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1009
23+
QA1008: Consider using GetCurrentTicksStatic instead of GetCurrentTicks in the WHERE clause. For more information, please visit https://aka.ms/CosmosDB/QueryAdvisor/QA1008
2424
]]></QueryAdvice>
2525
</Output>
2626
</Result>

0 commit comments

Comments
 (0)