Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d409915

Browse files
added link
1 parent 621b147 commit d409915

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

‎docs/findings/SQLCodeDevelopment.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1938,6 +1938,8 @@ WHERE
19381938

19391939
**Serial execution:** SQL Server does not allow intra-query parallelism in queries that invoke UDFs.
19401940

1941+
- See: [Refactor SQL Server scalar UDF to inline TVF to improve performance](https://www.mssqltips.com/sqlservertip/4772/refactor-sql-server-scalar-udf-to-inline-tvf-to-improve-performance/)
1942+
19411943
[Back to top](#top)
19421944

19431945
---
@@ -2635,7 +2637,13 @@ If you are required to use JSON string in the relational database and need to fr
26352637
## JSON Performance
26362638
**Check Id:** 160 [Not implemented yet. Click here to add the issue if you want to develop and create a pull request.](https://github.com/EmergentSoftware/SQL-Server-Development-Assessment/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=JSON+Performance)
26372639

2638-
If you are required to use JSON strings in the relational database and need to frequent parse the JSON string, create a computed column on the table using `JSON_VALUE(expression, path)` and create an index
2640+
If you are required to use JSON strings in the relational database and need to frequent parse the JSON string, create a computed column on the table using `JSON_VALUE(expression, path)` and create an index.
2641+
2642+
```sql
2643+
ALTER TABLE dbo.DeliveryInventory ADD MakeName AS JSON_VALUE(JSONAttributes, '$.Make');
2644+
CREATE NONCLUSTERED INDEX DealerInventory_MakeName ON dbo.DeliveryInventory (MakeName ASC);
2645+
```
2646+
26392647

26402648
- See: [JSON_VALUE (Transact-SQL)](https://learn.microsoft.com/en-us/sql/t-sql/functions/json-value-transact-sql?view=sql-server-ver16)
26412649

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /