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
- Storage System
Hey guys, quick question regarding massive storage scaling. I’m working in digital forensics and I’m constantly dealing with huge binary disk images, usually be...
- API key without database.read/write
I had some issues with my previous API key and I deleted it then I wanted to create a new one and discovered the database checkbook has no database.read/write j...
- dynamic key missing scopes for database ...
Here are the scopes listed, I get permission errors for reading row and document. Appears to be missing since last time i checked. Database 6 Scopes policies....