I have a super large data frame to be queried in the PostgreSQL instance, and the following QuerySQLDB takes a very long time, and program is just waiting and idling until the query finishes, and then do the rbind. I am wondering, since the second looping, can I allow the rbind and the query run at the same time, so that I can save the overall computing time?
for(n in 1:200){
dx<-InputDataFrame[((n-1)*1000):n*1000,]
outdx<-QuerySQLDB(dx)
InputDataFrame <-rbind(OutputDataFrame,outdx)}