Back

How does realtime handles collection relationships ?

  • 0
  • Self Hosted
  • Flutter
  • Databases
  • Realtime
SkylL3r
22 Aug, 2024, 20:23

Hi there ! I have a collection with a relationship to another and I'm trying to use realtime on that first collection. It seems like when receiving the event on the Flutter side, the relationship isn't part of the payload. Although, it seems to work fine when using basic HTTP request through SDK and not realtime.

I'm wondering, how does realtime handles collection relationships ? Am I missing something ? Thanks a lot !

TL;DR
Developers are unable to use realtime handle collection relationships in Appwrite due to security and speed concerns. It could potentially lead to performance problems, so it's advised to use them sparingly.
Steven
22 Aug, 2024, 20:40

It doesn't. They aren't included for security/speed

Steven
22 Aug, 2024, 20:40

Keep in mind relationships are experimental and can lead to performance problems so use them sparingly

SkylL3r
22 Aug, 2024, 20:45

I understand, thank you for the heads up ! Is this considerated as a possible improvement in the future of relationships ?

Steven
22 Aug, 2024, 20:46

Possibly, but unlikely. We'd have to run through each document for each subscriber to check if they have access. That could be expensive for something that should be fast

SkylL3r
22 Aug, 2024, 20:50

Indeed, it might be too extensive. That's alright, I'll find another way around, thank you for your time ! Loving Appwrite so far 🔥

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