We're using TSQL with R on Microsoft SQL Server 2016 in a project.
The problem is the execution time, the usage of R or the connection take a random time between 200ms and 600ms.
I think it's a configuration problem but I've never used this before.
Example of request:
EXEC sp_execute_external_script
@language = N'R'
, @script = N'
OutputDataSet <- as.data.frame(rnorm(100, mean = 50, sd =3));'
, @input_data_1 = N' ;'
WITH RESULT SETS (([Density] float NOT NULL));
Execute time this take between 200ms and 2000ms.
If anyone have already used this kind of technology and have some tips to optimize the performance?
N.B : In our project we're using this kind of request dynamically so, there's a lot of request executed and we're waiting all results to display them. It take a lot of time. I hope it's jsut a configuration of ssms problem