Rank 3: Container
Hey when I use Realtime on a Table for creates/updates and use the createOperations method in my Appwrite Function for bulk upserts, will the realtime trigger for each one or will it ignore it?
Votes
0
Replies
12
Participants
2
Messages
13
Rank 3: Container
Hey when I use Realtime on a Table for creates/updates and use the createOperations method in my Appwrite Function for bulk upserts, will the realtime trigger for each one or will it ignore it?
I think the realtime will trigger for each record, as per what I understood from the Subscribe to Multiple Channels section in this doc: https://appwrite.io/docs/apis/realtime
Have you tried doing this?
Rank 3: Container
yes but no trigger
Rank 3: Container
it works, when I just create/update/delete one row as action (create,update,upsert,delete)
Oh ok
Rank 3: Container
now the question is: Is it a bug or a feature? 😄
Since it indeed isn't a bug.. then it must be a part of Realtime's features only
Rank 3: Container
are you sure this is not a bug?
As per what I know and what I understood from docs, it's not a bug
But if you still have any doubt, you can confirm the same from the team
Rank 3: Container
it works but you can not use Transaction operations you need to use from the sdk upsertRows(...) so it works...
see here:
https://discord.com/channels/564160730845151244/1474422353521016985
Rank 3: Container
[SOLVED] bulkUpsert and Realtime