-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
R script execution slow after package installation #95
Comments
This is a known issue. I think one of you 70+ packages might contains source packages like BH. Can you see if you have them? If so, can you try remove the source package? We are working on the fix for this with high priority. |
Is there another thread reporting this issue for tracking, or can we follow this issue here? Thanks! |
Feel free to follow this thread. The fix will be in SQL Server and we are targeting mid next year. |
The latest release of SQLMLUtils for R (version 1.2.1 - GitHub Releases) is published with changes from #99 to improve execution time for this scenario. |
This issue may not be directly related to this SQLMLUTILS, but maybe you would be able to provide some context or a potential solution.
As we install more libraries, especially tidyverse which installs 70+ sub packages, execution of even the most basic R script goes from sub second execution to 7+ seconds.
Here is the installation script:
The R script I am testing with is:
As a separate test on the same server to rule out any issues with the packages, I installed the packages using the process documented for SQL Server 2017 which installs packages globally for all databases, the script executes in sub seconds times.
Script to test global installation of packages:
This would be fine, but our plan is to run the database in SQL Managed Instance on Azure and this global approach is not an option. By the way, I did try the test of running the simple script before and after installing packages on Azure and experienced the same behavior, less than a second before packages, 7+ seconds after packages.
Any guidance you could provide would be great!
The text was updated successfully, but these errors were encountered: