#Is there any way to fetch data from multiple collections at once

5 messages · Page 1 of 1 (latest)

oblique sphinx
#

I have couple of collections, currently querying multiple collections one by one and it slows down the application to users. Is there any way to create a view in Appwrite on server side and fetch all the collecting data at once?

fleet jolt
oblique sphinx
buoyant zenith
#

If you mean, querying multiple collection in one api request then no. so a new request for every collection query request will be sent. You could do something like a Promise.all to fetch data in parallel so it takes less time.

oblique sphinx
#

I am currently using Promise.all for parallel requests. But based on the result, I am calling additional collection(s). There is no show-stopper me but expecting Appwrite team consider this as a feature request and implement the same in near feature