Building views (indexing) while syncing data


The app I’m writing takes a long time syncing the docs from the Sync Gateway, and it also takes a long time building the views.

Is it possible to run the two processes in parallel? What needs to be done for it?

Thanks in advance