What is a phantom read?
A phantom read occurs when repeating a predicate query returns a different set of rows because another transaction inserted or deleted matching rows.
The question library
Explore practical questions, clear explanations, and code examples across developer technologies.
Showing 3265–3276 of 3610 questions
A phantom read occurs when repeating a predicate query returns a different set of rows because another transaction inserted or deleted matching rows.
An execution plan describes how the database intends to execute a query, including scans, seeks, joins, sorts, and estimated or actual row counts.
Start with frequent and slow queries, predicates, joins, sorting, and grouping. Consider selectivity, key order, included columns, write volume, and index
Each index consumes storage and must be maintained when rows are inserted, updated, or deleted. Unused or overlapping indexes increase cost and complicate
A sargable predicate can use an index search efficiently. Applying a function or conversion to an indexed column may prevent an efficient seek, depending o
A covering index contains all columns required by a query, potentially avoiding extra row lookups. It is useful for high-frequency read paths when the addi
Common options are a shared schema with TenantId, separate schema per tenant, or separate database per tenant. Evaluate isolation, compliance, operational
A shard key should distribute data and traffic evenly while supporting common query patterns. Poor choices create hotspots or require scatter-gather querie
High availability may use replication, failover, health monitoring, backups, tested recovery procedures, and application retry behavior. The design must sp
Recovery Point Objective is the maximum acceptable data loss measured in time. Recovery Time Objective is the target time to restore service after an incid
The outbox stores pending messages in the same transaction as business changes. A worker publishes them, tracks attempts, and marks completion. Consumers m
Use an idempotent consumer with a durable inbox or processed-message table keyed by message ID. Commit the processed marker with the business update where