Back

Efficient Way to Perform Bulk Data Transformations in Appwrite Collections

  • 1
  • Databases
  • Functions
  • REST API
  • Cloud
ankittchaurasia
28 Jan, 2025, 10:30

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?

TL;DR
Bulk data transformations can be efficiently performed in Appwrite using the API/SDK, but direct access to the database for modifications is not currently supported. The performance difference between API-based updates and direct database manipulation is typically negligible for most use cases.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more