Benefits of data processing close to data storage (inside of SQL Server): performance and security
"public preview of the next release of SQL Server, ... added significant improvements into R Services inside SQL Server including a very powerful set of machine learning functions ... This brings new machine learning and deep neural network functionality with increased speed, performance and scale to database applications built on SQL Server. We have just recently showcased SQL Server running more than one million R predictions per second, using SQL Server as a Machine Learning Model Management System"
(Microsoft) Machine learning algorithm cheat sheet