Tatvic / RGoogleAnalytics

R Library to easily extract data from the Google Analytics API into R
227 stars 147 forks source link

using RGoogleAnalytics with doParallel #31

Open pedroveloso opened 8 years ago

pedroveloso commented 8 years ago

Hi,

I've being running a query that takes too much time because of the wide range concerning the dates [Init(start.date,end.date,..)]. I am also using GetReportData(...,paginate_query=T,split_daywise=T).

In order to reduce the time, I've being trying to run in parallel the same query, changing only the start.date and end.date parameters. I am using the package doParallel on Windows. I am already exporting all the .GlobaEnv and the RGoogleAnalytics package to each new instance of R that is created to each core.

The problem is that this is taking much more time than if I try to run the query without parallelizing it. I couldn't get any results by doing it.

Does any one ever tried to use RGoogleAnalytics in parallel?