Day 2 of trying Appwrite Functions π
I have a function which monitors when a document is created or updated and then if media files information in a document field shows that thumbnails for media were not generated, it triggers thumbnail generation, stores them in Storage and then updates media files information (IDs in Storage).
I noticed that first run of the function triggers another run, which is while it's fast (3ms) can add up on large volumes of requests I think, so I'm wondering if there is a mechanism which allows to avoid triggering of an event when calling document update API from a function which uses server API or otherwise.
Even if I check x-appwrite-user-id for example (end function if it's empty) it still runs the function which has sharp/libvips & ffmpeg, so kinda expensive I think.
Thanks.
BTW, I noticed a small bug in preview endpoint - it doesn't consider orientation of photos (previews are sideways when photos are displayed correctly in browsers/viewers which consider orientation) - I think appwrite uses sharp/libvips based on API parameter values for the endpoint, if so a simple additional .rotate() call without parameters when generating preview should fix this issue
Recommended threads
- Go 1.25 runtime
So I'm trying to use go 1.25 for my functions and I can only find go-1.23 as a function runtime. So I did some searching and found https://github.com/appwrite/a...
- Python TablesDB Rework
Hi, i starting to rework some older functions to TablesDB list_rows Method. I used list_documents with a resultset with worked fine. Now i tried to get all rows...
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.