I have to generate final zip file which contains multiple files and files contains database data. Currently it's taking time because I am using synchronously can I perform this tasks in separate goroutine?
you can use sync WaitGroup like in this example. few parallel calls for database to generate files, when they all finished, you do zip from them https://stackoverflow.com/questions/19208725/example-for-sync-waitgroup-correct
Обсуждают сегодня