Skip to content

Commit a6de883

Browse files
committed
Merge branch 'master' of https://github.com/MicrosoftDocs/sql-docs-pr into release-qds-hints
2 parents fd09cf1 + 001604f commit a6de883

28 files changed

Lines changed: 69 additions & 147 deletions

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42945,6 +42945,21 @@
4294542945
"redirect_url": "/sql/machine-learning/tutorials/python-ski-rental-linear-regression-deploy-model",
4294642946
"redirect_document_id": false
4294742947
},
42948+
{
42949+
"source_path": "docs/machine-learning/r/save-and-load-r-objects-from-sql-server-using-odbc.md",
42950+
"redirect_url": "/sql/machine-learning/data-exploration/save-and-load-r-objects-from-sql-server-using-odbc",
42951+
"redirect_document_id": true
42952+
},
42953+
{
42954+
"source_path": "docs/machine-learning/r/creating-multiple-models-using-rxexecby.md",
42955+
"redirect_url": "/sql/machine-learning/data-exploration/creating-multiple-models-using-rxexecby",
42956+
"redirect_document_id": true
42957+
},
42958+
{
42959+
"source_path": "docs/machine-learning/r/data-exploration-and-predictive-modeling-with-r.md",
42960+
"redirect_url": "/sql/machine-learning/tutorials/r-tutorials",
42961+
"redirect_document_id": false
42962+
},
4294842963
{
4294942964
"source_path": "docs/linux/sql-server-linux-develop-use-ssms.md",
4295042965
"redirect_url": "/sql/linux/sql-server-linux-manage-ssms",

docs/connect/ado-net/appcontext-switches.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: AppContext switches in SqlClient
33
description: Learn about the AppContext switches available in SqlClient and how to use them to modify some default behaviors.
4-
ms.date: 03/24/2021
4+
ms.date: 05/28/2021
55
dev_langs:
66
- "csharp"
77
ms.prod: sql
@@ -32,6 +32,8 @@ AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.TruncateScaledDecimal", tr
3232

3333
[!INCLUDE [appliesto-xxxx-netcore-netst-md](../../includes/appliesto-xxxx-netcore-netst-md.md)]
3434

35+
(Available starting with version 2.0)
36+
3537
On Windows, SqlClient uses a native implementation of the SNI network interface by default. To enable the use of a managed SNI implementation, you can set the AppContext switch **"Switch.Microsoft.Data.SqlClient.UseManagedNetworkingOnWindows"** to `true` at application startup:
3638

3739
```csharp
@@ -92,6 +94,8 @@ AppContext.SetSwitch("Switch.Microsoft.Data.SqlClient.MakeReadAsyncBlocking", fa
9294

9395
[!INCLUDE [appliesto-netfx-netcore-netst-md](../../includes/appliesto-netfx-netcore-netst-md.md)]
9496

97+
(Available starting with version 3.0)
98+
9599
By default, configurable retry logic is disabled. To enable this feature, set the AppContext switch **Switch.Microsoft.Data.SqlClient.EnableRetryLogic** to `true` at application startup. This switch is required, even if a retry provider is assigned to a connection or command.
96100

97101
```csharp
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
21
This syntax is not supported by serverless SQL pool in Azure Synapse Analytics.

docs/machine-learning/r/creating-multiple-models-using-rxexecby.md renamed to docs/machine-learning/data-exploration/creating-multiple-models-using-rxexecby.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,27 @@ title: Create multiple models with rxExecBy
33
description: Use the rxExecBy function from RevoScaleR library to build multiple mini models over machine data stored in SQL Server.
44
ms.prod: sql
55
ms.technology: machine-learning-services
6-
7-
ms.date: 04/15/2018
6+
ms.date: 05/28/2021
87
ms.topic: how-to
98
author: dphansen
109
ms.author: davidph
11-
ms.custom: seo-lt-2019
10+
ms.custom: contperf-fy21q4
1211
monikerRange: ">=sql-server-2016||>=sql-server-linux-ver15"
1312
---
1413
# Creating multiple models using rxExecBy
1514
[!INCLUDE [SQL Server 2016 and later](../../includes/applies-to-version/sqlserver2016.md)]
1615

17-
The **rxExecBy** function in RevoScaleR supports parallel processing of multiple related models. Rather than train one large model based on data from multiple similar entities, a data scientist can quickly create many related models, each using data specific to a single entity.
16+
Learn how to use the **rxExecBy** function in RevoScaleR to parallel process multiple related models with [SQL Server Machine Learning Services](../sql-server-machine-learning-services.md). Rather than train one large model based on data from multiple similar entities, you can quickly create many related models, each using data specific to a single entity.
17+
18+
## What rxExecBy can do
1819

1920
For example, suppose you are monitoring device failures, capturing data for many different types of equipment. By using rxExecBy, you can provide a single large dataset as input, specify a column on which to stratify the dataset, such as device type, and then create multiple models for individual devices.
2021

2122
This use case has been termed ["pleasingly parallel"](https://en.wikipedia.org/wiki/Embarrassingly_parallel) because it breaks a large complicated problem into component parts for concurrent processing.
2223

2324
Typical applications of this approach include forecasting for individual household smart meters, creating revenue projections for separate product lines, or creating models for loan approvals that are tailored to individual bank branches.
2425

25-
## How rxExec Works
26+
## How rxExecBy works
2627

2728
The rxExecBy function in RevoScaleR is designed for high-volume parallel processing over a large number of small data sets.
2829

@@ -32,7 +33,7 @@ The rxExecBy function in RevoScaleR is designed for high-volume parallel process
3233
4. When the function executes, the data queries are processed in parallel if your environment supports it. Moreover, the modeling or transformation tasks are distributed among individual cores and executed in parallel. Supported compute context for thee operations include RxSpark and RxInSQLServer.
3334
5. Multiple results are returned.
3435

35-
## rxExecBy Syntax and Examples
36+
## rxExecBy syntax and examples
3637

3738
**rxExecBy** takes four inputs, one of the inputs being a dataset or data source object that can be partitioned on a specified **key** column. The function returns an output for each partition. The form of the output depends on the function that is passed as an argument. For example, if you pass a modeling function such as rxLinMod, you could return a separate trained model for each partition of the dataset.
3839

@@ -89,4 +90,6 @@ rxSetComputeContext(sqlServerCC)
8990
sqlServerCCResults <- rxExecBy(inData = sqlServerDataDS, keys = c("DayOfWeek"), func = .Count)
9091
```
9192

93+
## Next steps
9294

95+
+ [What is SQL Server Machine Learning Services?](../sql-server-machine-learning-services.md)

docs/machine-learning/r/save-and-load-r-objects-from-sql-server-using-odbc.md renamed to docs/machine-learning/data-exploration/save-and-load-r-objects-from-sql-server-using-odbc.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,21 @@ description: The RevoScaleR package includes serialization and deserialization f
44
ms.prod: sql
55
ms.technology: machine-learning-services
66

7-
ms.date: 04/15/2018
7+
ms.date: 04/27/2021
88
ms.topic: how-to
99
author: dphansen
1010
ms.author: davidph
11-
ms.custom: seo-lt-2019
11+
ms.custom: contperf-fy21q4
1212
monikerRange: ">=sql-server-2016||>=sql-server-linux-ver15"
1313
---
14-
# Save and load R objects from SQL Server using ODBC
14+
# Use ODBC to save and load R objects in SQL Server Machine Learning Services
1515
[!INCLUDE [SQL Server 2016 and later](../../includes/applies-to-version/sqlserver2016.md)]
1616

17-
SQL Server R Services can store serialized R objects in a table and then load the object from the table as needed, without you having to re-run the R code or retrain the model. This ability to save R objects in a database is critical for scenarios such as training and saving a model, and then using it later for scoring or analysis.
17+
Learn how to use the **RevoScaleR** package to store serialized R objects in a table and then load the object from the table as needed with [SQL Server Machine Learning Services](../sql-server-machine-learning-services.md). This can be used when training and saving a model, and then use it later for scoring or analysis.
1818

19-
To improve performance of this critical step, the **RevoScaleR** package now includes new serialization and deserialization functions that greatly improve performance, and store the object more compactly. This article describes these functions and how to use them.
19+
## RevoScaleR package
2020

21-
## Overview
22-
23-
The **RevoScaleR** package now includes new functions that make it easier to save R objects to SQL Server and then read the objects from the SQL Server table. In general, each function call uses a simple key value store, in which the key is the name of the object, and the value associated with the key is the varbinary R object to be moved in or out of a table.
21+
The **RevoScaleR** package includes serialization and deserialization functions that can R objects compactly to SQL Server and then read the objects from the table. In general, each function call uses a simple key value store, in which the key is the name of the object, and the value associated with the key is the varbinary R object to be moved in or out of a table.
2422

2523
To save R objects to SQL Server directly from an R environment, you must:
2624

@@ -40,7 +38,7 @@ By default, any object that you call from R to move to SQL Server is serialized
4038

4139
- `rxListKeys` lists as key-value pairs all the available objects. This helps you determine the names and versions of the R objects.
4240

43-
For detailed help on the syntax of each function, use R help. Details are also available in the [ScaleR reference](/r-server/r-reference/revoscaler/revoscaler).
41+
For detailed help on the syntax of each function, use R help. Details are also available in the [ScaleR reference](/machine-learning-server/r-reference/revoscaler/revoscaler).
4442

4543
## How to store R objects in SQL Server using ODBC
4644

@@ -109,4 +107,8 @@ This procedure demonstrates how you can use the new functions to load a model fr
109107

110108
```R
111109
infertLogit2 <- rxReadObject(ds, "logit.model")
112-
```
110+
```
111+
112+
## Next steps
113+
114+
+ [What is SQL Server Machine Learning Services?](../sql-server-machine-learning-services.md)

docs/machine-learning/r/data-exploration-and-predictive-modeling-with-r.md

Lines changed: 0 additions & 101 deletions
This file was deleted.

docs/machine-learning/toc.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,11 +247,9 @@ items:
247247
- name: R
248248
items:
249249
- name: Load R objects using ODBC
250-
href: ../machine-learning/r/save-and-load-r-objects-from-sql-server-using-odbc.md
251-
- name: Predictive modeling with R
252-
href: ../machine-learning/r/data-exploration-and-predictive-modeling-with-r.md
250+
href: ../machine-learning/data-exploration/save-and-load-r-objects-from-sql-server-using-odbc.md
253251
- name: Create multiple models using rxExecBy
254-
href: ../machine-learning/r/creating-multiple-models-using-rxexecby.md
252+
href: ../machine-learning/data-exploration/creating-multiple-models-using-rxexecby.md
255253
- name: Data type conversions
256254
items:
257255
- name: Python to SQL

0 commit comments

Comments
 (0)