Skip to content

Bulk Operations

Appwrite Databases supports bulk operations for documents, allowing you to create, update, or delete multiple documents in a single request. This can significantly improve performance for apps as it allows you to reduce the number of API calls needed while working with large data sets.

As of now, bulk operations can only be performed via the server-side SDKs. The client-side SDKs do not support bulk operations.

Create documents

Permissions required

You must grant create permissions to users at the collection level before users can create documents. Learn more about permissions

You can create multiple documents in a single request using the createDocuments method.

Update documents

Permissions required

You must grant update permissions to users at the collection level before users can update documents. Learn more about permissions

You can update multiple documents in a single request using the updateDocuments method.

Upsert documents

Permissions required

You must grant create and update permissions to users at the collection level before users can create documents. Learn more about permissions

You can upsert multiple documents in a single request using the upsertDocuments method.

Delete documents

Permissions required

You must grant delete permissions to users at the collection level before users can delete documents. Learn more about permissions

You can delete multiple documents in a single request using the deleteDocuments method.

Queries for deletion

When deleting documents, you must specify queries to filter which documents to delete.

If no queries are provided, all documents in the collection will be deleted.

Learn more about queries.