R – Performance concerns between DataSet and stored procedure

datasetperformancestored-procedures

I have to develop one program that consists data manipulation (retrieve data, update data and new insert data) to multiple tables. Which will be suitable approach and faster in performance using DataSet object and stored procedure with CURSOR object? Please point me out. Thanks you all!

Best Answer

Data manipulation is typically faster when done in the DB in the stored procedure.

Unless there is a reason you have to do the manipulation within the application, do it on the DB itself.