263 — OperationNotSupportedInTransaction

transactionstorageperformance

The transaction is too large to fit in the WiredTiger cache

What is happening?

TransactionTooLargeForCache means the transaction's working set exceeds the WiredTiger cache's capacity for uncommitted data. WiredTiger reserves a portion of the cache for dirty (uncommitted) data, and a single transaction that modifies or reads too much data can exceed this limit.

Common causes

  1. Transaction modifying a very large number of documents
  2. Bulk operations wrapped in a single transaction
  3. WiredTiger cache size too small for the workload
  4. Reading a large result set within a transaction

Source code references

ErrorCodes::OperationNotSupportedInTransaction found in 22 locations in the MongoDB server source.

Diagnostic Steps