You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to have some limiters on functions - especially in documents 'section' so we can have a dedicated function just for this collection that get triggered only when something in collection gets changed.
Have you spent some time to check if this issue has been raised before?
Currently the event triggers do not consider anything when executing a function.
Lets say we have a chat app, we want to create a PushNotification only on 'new friend request'. Now, with how things are done we must manually check if the collection being updated/added to is 'friends'. As its a chat app most of new documents get added to 'messages' so our function gets triggered every 0.1s because people keep talking instead of 1 per day when they get new 'friend'.
With a 'limiter' we would only trigger a function on a 'friend' collection update. Considering that people have a lot of small functions that check for some documents creations for notiications the execution hell can be quite big.
The text was updated successfully, but these errors were encountered:
This way you would have more control. Not sure if this would fix the create/update problem, but it lets you narrow down for what resources functions are triggered in the first place.
Hello
馃殌 Feature
I'd like to have some limiters on functions - especially in documents 'section' so we can have a dedicated function just for this collection that get triggered only when something in collection gets changed.
![obraz](https://user-images.githubusercontent.com/28345098/133384841-7399140c-a292-4deb-a108-a7d640cbcb3b.png)
Have you spent some time to check if this issue has been raised before?
Yup
Have you read the Code of Conduct?
Yup
Pitch
Currently the event triggers do not consider anything when executing a function.
Lets say we have a chat app, we want to create a PushNotification only on 'new friend request'. Now, with how things are done we must manually check if the collection being updated/added to is 'friends'. As its a chat app most of new documents get added to 'messages' so our function gets triggered every 0.1s because people keep talking instead of 1 per day when they get new 'friend'.
With a 'limiter' we would only trigger a function on a 'friend' collection update. Considering that people have a lot of small functions that check for some documents creations for notiications the execution hell can be quite big.
The text was updated successfully, but these errors were encountered: