is it possible to execute an sql script to one of my collections in the appwrite db ?
No, Appwrite is an abstraction on top of the underlying database and you access the data via the APIs provided
then how can i get the same result as the script i sent without using sql ?
There's a feature request for something like this so you should add a 👍 to https://github.com/appwrite/appwrite/issues/5667.
Doing something like the query you shared is not advised because it will be slower and slower as the number of records in your table grows. If the records don't get updated, the best approach is to keep a running count in some metadata collection
Recommended threads
- Appwrite console is too heavy
The Appwrite console is too heavy And all of my services broken Any support , please
- Usage of the new Client() and dealing wi...
Hey guys, just a quick one - we had some web traffic the other day and it ended up bombing out - To put in perspective of how the app works, we have a Nuxt Ap...
- Increase by operators
I see appwrite have bunch of useful operators for querieng db. One more I would like to suggest is operators like increase the count of a int columns by 1,2.. ...