Efficient Way to Perform Bulk Data Transformations in Appwrite Collections
- 1
- Databases
- Functions
- REST API
- Cloud
Hi everyone, I have a question about performing bulk data transformations efficiently in Appwrite. For example, let’s say I want to update all image URLs stored in a collection to change the domain (e.g., old-domain.com to new-domain.com).
The most straightforward approach is to use the Appwrite API or SDK to fetch documents, modify them, and update them back. However, this feels inefficient as each request passes through multiple layers, which could add significant overhead for large collections. Traditionally, in systems like MySQL, I could directly run an update query on the database to get the job done quickly. So in Appwrite, is there a way to directly access and modify the database for such transformations ?
Or is it just that I’m overthinking 😅, and the performance difference between API-based updates and direct database manipulation is negligible for most use cases?
TL;DR: Is using the Appwrite API/SDK for bulk updates inefficient for large-scale data transformations? Can users access the database directly for such tasks, or is the performance difference negligible?
Recommended threads
- Creating A User Account
I have a simple form component that is expected to create a new user using the the ###firstName, ###lastName, ###username, and ###password from a react-hook-for...
- Custom templates for OTP messages:
Is there an option available for custom templates for OTP messages? Receiving OTPs from different domain names causes conflicts and reduces the chances of succe...
- v1.6.0 Git integration | The requested r...
Hi, I've followed the guide on adding github integration to my appwrite instance. I've created the github app and added all the env variables. But when I ...