Back

Only fetch relationships when needed

  • 0
  • Databases
Mr. Bakbuki
12 Mar, 2024, 17:15

Is there a way to fetch a document, and only fetch the documents related to it when needed? For example comments on a post shouldn't be loaded right away if a user didn't ask for them.

TL;DR
Developers are suggesting using the select query to only fetch specific columns when needed. This way, unrelated columns will not be loaded right away.
Kenny
12 Mar, 2024, 17:54

I think you can use the select query and select all the items you need, if you don't need that related column don't select it.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more