https://kotlinlang.org logo
Title
u

user

06/21/2022, 5:31 PM
Android kotlin calling same api with different date params and inserting to room all together I have an api to return data based on from and to date params. The api is limited to return only 1 day data at a time. I need to fetch data for 7 days and insert it to room db. Fetching day by day and inserting to db is time consuming and hence causing bad user experience. How can I make 7 parallel calls to same api with different date params? After making all 7 parallel api calls, how can I combine the responses and bulk insert to room db Is there any other better way to fetch the entire...