--- title: "Tasks Per Database Transaction" slug: "tasks-per-database-transaction" updated: 2026-03-02T14:24:10Z published: 2026-03-02T14:24:10Z canonical: "help.hyperscience.ai/tasks-per-database-transaction" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.hyperscience.ai/llms.txt > Use this file to discover all available pages before exploring further. # Tasks Per Database Transaction In some situations, the system may include many tasks in a single database transaction. However, if the number of tasks being created at time is very high (e.g., all pages in a ~20,000 page submission being sent to Classification at once), delays in processing may occur. In v39.0.25+, v40.0.17+, and v41.0.1 and later, you can use the `HYPERFLOW_ENGINE_MAX_TASKS_PER_DB_TRANSACTION` ".env" file variable to specify the maximum number of workflow-engine tasks that are included in a single database transaction: ```bash HYPERFLOW_ENGINE_MAX_TASKS_PER_DB_TRANSACTION= ``` By default, no more than 30 tasks are included in a database transaction. If you're noticing delays in submission processing, particularly if you are processing submissions with thousands of pages, our Support team may recommend decreasing the value of this variable.