Question 350
Before changing production settings, a reviewer notes: An embedding update writes document metadata and a chunk row separately, leaving half-updated documents when the second statement fails. Which evidence best distinguishes the cause?
Explanation
Correct Answer
Inspect transaction boundaries, error handling and inconsistent rows after failure. The scenario specifically states: An embedding update writes document metadata and a chunk row separately, leaving half-updated documents when the second statement fails. PostgreSQL transactions can atomically commit or roll back related SQL changes. This check looks at the condition that directly distinguishes the described failure. The supported implementation response is Wrap both related writes in one transaction and handle rollback explicitly. The important remaining qualification is: Transaction atomicity does not prevent concurrent logical conflicts without proper isolation.
Incorrect Answers
PostgreSQL index creation strategy affects locking and availability, including supported CONCURRENTLY operations. That addresses a different mechanism; this question turns on Inspect transaction boundaries, error handling and inconsistent rows after.
Concurrency control can use row version checks or SELECT FOR UPDATE within transactions. That observation may hold without resolving the relevant issue: Inspect transaction boundaries, error handling and inconsistent rows after.
PostgreSQL pgvector fixed-dimension columns reject embeddings with incompatible dimensions. This is different from the required Inspect transaction boundaries, error handling and inconsistent rows after result.