Back

[Solved] Realtime listener's data return a huge list of events. Is it intended?

  • 0
  • Flutter
  • Realtime
gidrokolbaska
18 Feb, 2023, 16:51

Hi! So I have a realtime listener which is defined like this:

TypeScript
void _getRealtimePoints() {
    subscription.stream.listen((point) {
      print(point.events);
    
    });
  }

And when I print the output to the console, I get the following...

TypeScript
databases.fishydatabase.collections.pointsof63ee41401fdb47dcbad7.documents.63f1010aae47a9a11644.create, databases.*.collections.*.documents.*.create, databases.fishydatabase.collections.*.documents.63f1010aae47a9a11644.create, databases.*.collections.*.documents.63f1010aae47a9a11644.create, databases.*.collections.pointsof63ee41401fdb47dcbad7.documents.63f1010aae47a9a11644.create, databases.fishydatabase.collections.pointsof63ee41401fdb47dcbad7.documents.*.create, databases.*.collections.pointsof63ee41401fdb47dcbad7.documents.*.create, databases.fishydatabase.collections.*.documents.*.create, databases.fishydatabase.collections.pointsof63ee41401fdb47dcbad7.documents.63f1010aae47a9a11644, databases.*.collections.*.documents.*, databases.fishydatabase.collections.*.documents.63f1010aae47a9a11644, databases.*.collections.*.documents.63f1010aae47a9a11644, databases.*.collections.pointsof63ee41401fdb47dcbad7.documents.63f1010aae47a9a11644, databases.fishydatabase.collections.pointsof63ee41401fdb47dcbad7.documents.*, databases.*.collections.pointsof63ee41401fdb47dcbad7.documents.*, databases.fishydatabase.collections.*.documents.*, databases.fishydatabase.collections.pointsof63ee41401fdb47dcbad7, databases.*.collections.*, databases.fishydatabase.collections.*, databases.*.collections.pointsof63ee41401fdb47dcbad7, databases.fishydatabase, databases.*

Why there are so many elements for a simple document creation?

TL;DR
The user is experiencing a large number of events being returned by the realtime listener's data. They are unsure if this is intended behavior. Another user reassures them that the large number of events is normal and may be necessary depending on the use case. The user expressing concern is satisfied with the explanation. Solution: The large number of events returned by the realtime listener's data is normal and depends on the use case. There is no issue to be resolved.
Torsten Dittmann
18 Feb, 2023, 16:55

These are all possible variations of the events that could’ve been triggered by the action 👍🏻

gidrokolbaska
18 Feb, 2023, 16:56

ah, gotcha

gidrokolbaska
18 Feb, 2023, 16:56

tyvm

gidrokolbaska
18 Feb, 2023, 16:56

[Solved] Realtime listener's data return a huge list of events. Is it intended?

Torsten Dittmann
18 Feb, 2023, 16:56

No worries 👍🏻 the footprint should be minor and depending on the use case you might need some of those events ☺️

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