# Bulk operations

Fetching large amounts of data can exhaust the Shopify API limit for your Mechanic account, slowing down other tasks, and running the risk of consuming too much time or memory for your Mechanic workers.

To solve this general problem, Shopify offers [the bulk operations GraphQL API](https://shopify.dev/tutorials/perform-bulk-operations-with-admin-api). This API allows you to submit a query to Shopify for processing, the results to be stored elsewhere to be retrieved once the query is complete.

{% hint style="info" %}
For a review of how Mechanic uses bulk operations, start here: [Reading data / Bulk operations](https://learn.mechanic.dev/core/shopify/read/bulk-operations).
{% endhint %}

## Great resources for learning Shopify GraphQL bulk operations

### Key concepts

* [ ] bulkOperationRunQuery
* [ ] Polling your operation's status (don't worry Mechanic takes care of this for you)
* [ ] Data retrieval and JSONL
* [ ] Rate limits
* [ ] Operation restrictions

{% hint style="success" %}
<https://shopify.dev/tutorials/perform-bulk-operations-with-admin-api>
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://learn.mechanic.dev/platform/graphql/bulk-operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
