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
- Websites hosted on my appwrite sites hav...
Hello, all my websites hosted on appwrite sites are not running I am getting this message "This site can’t be reached drivehub.appwrite.network took too long t...
- Clean install of 1.9.0 shows errors in a...
I just run a full clean install of Appwrite on my server following the Manual installation guide in the docs page. The console seems to work, visually there d...
- Login via GitHub Student Developer Pack ...