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. TheconnectionStringproperty defines where we execute, and thenumTasksproperty 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.exeprocess in Process Explorer.- In addition, also look at the
Launchpad.exeprocess in Process Explorer.When we execute we see that the
BxlServer.exeprocesses under theMicrosoft.R.Host.exeprocesses are idling, but when we look at theLaunchpad.exeprocess we see this:
This is a bit deep but interesting reading.