Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 488d7ad

Browse files
committed
added max model size item
1 parent cb49754 commit 488d7ad

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

docs/advanced-analytics/known-issues-for-sql-server-machine-learning-services.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: "Known issues in Machine Learning Services | Microsoft Docs"
33
ms.custom:
44
- "SQL2016_New_Updated"
5-
ms.date: "09/19/2017"
5+
ms.date: "10/18/2017"
66
ms.prod: "sql-server-2016"
77
ms.reviewer: ""
88
ms.suite: ""
@@ -162,6 +162,19 @@ As a workaround, you can rewrite the SQL query to use CAST or CONVERT and presen
162162

163163
**Applies to:** SQL Server 2016 R Services
164164

165+
### Limits on size of serialized models
166+
167+
When you save a model to a SQL Server table, you must serialize the model and save it in a binary format. Theoretically the maximum size of a model that can be stored with this method is 2 GB, which is the maximum size of varbinary columns in SQL Server.
168+
169+
If you need to use larger models, the following workarounds are available:
170+
171+
+ Use the [memCompress](https://www.rdocumentation.org/packages/base/versions/3.4.1/topics/memCompress) function in base R to reduce the size of the model before passing it to SQL Server. This option is best when the model is close to the 2 GB limit.
172+
+ For larger models, rather than using a varbinary column to store the models, you can use the [FileTable](..\relational-databases\blob\filetables-sql-server.md) feature provided in SQL Server.
173+
174+
To use FileTables, you must add a firewall exception, because data stored in FileTables is managed by the Filestream filesystem driver in SQL Server, and default firewall rules block network file access. For more information, see [Enable Prerequisites for FileTable](../relational-databases/blob/enable-the-prerequisites-for-filetable.md).
175+
176+
After you have enabled FileTable, to write the model, you get a path from SQL using the FileTable API, and then write the model to that location from your R code. When you need to read the model, you get the path from SQL and then call the model using the path from your R script. For more information, see [Access FileTables wth File Input-Output APIs](../relational-databases/blob/access-filetables-with-file-input-output-apis.md).
177+
165178
### Avoid clearing workspaces when you execute R code in a [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] compute context
166179

167180
If you use the R command to clear your workspace of objects while running R code in a [!INCLUDE[ssNoVersion](../includes/ssnoversion-md.md)] compute context, or if you clear the workspace as part of an R script called by using [sp_execute_external_script](../relational-databases/system-stored-procedures/sp-execute-external-script-transact-sql.md), you might get this error:

0 commit comments

Comments
 (0)