Niels Berglund dives into how the SQL Compute Context works with R Services:
In the code above we use the
RxInSqlServer()
function to indicate we want to execute in a SQL context. TheconnectionString
property defines where we execute, and thenumTasks
property sets the number of tasks (processes) to run for each computation, in Code Snippet 4 it is set to 1 which from a processing perspective should match what we do in Code Snippet 3. Before we execute the code in Code Snippet 4 we do what we did before we ran the code in Code Snippet 3:
- Run Process Explorer as admin.
- Navigate to the
devenv.exe
process in Process Explorer.- In addition, also look at the
Launchpad.exe
process in Process Explorer.When we execute we see that the
BxlServer.exe
processes under theMicrosoft.R.Host.exe
processes are idling, but when we look at theLaunchpad.exe
process we see this:
This is a bit deep but interesting reading.