Skip to content

Latest commit

 

History

History
executable file
·
295 lines (243 loc) · 118 KB

differences-from-dynamodb.md

File metadata and controls

executable file
·
295 lines (243 loc) · 118 KB

Differences from DynamoDB

This document lists all known behavioral differences between ExtendDB and real Amazon DynamoDB. Use it to understand what works identically and what requires adaptation when switching between ExtendDB and the real service.

A note such as (measured) or (measured on SQLite) means that the answer comes from a request sent to that service or backend.

Storage and Infrastructure

Area DynamoDB ExtendDB
Storage backend Proprietary distributed storage PostgreSQL (default), SQLite, MongoDB, or Cassandra, selected by mutually exclusive Cargo features at build time; one backend per binary
Global Tables CreateGlobalTable, replication Not implemented (returns UnknownOperationException)
DAX (Accelerator) In-memory caching layer Not applicable
PartiQL ExecuteStatement, BatchExecuteStatement, ExecuteTransaction Supported for all four statement types (see the PartiQL section below). Built behind a default-on partiql build feature.
Numeric precision on partition/sort keys (MongoDB backend only) 38 significant digits 34 significant digits (BSON Decimal128). Values that exceed this precision are rejected at write and query time with a ValidationException rather than silently downcast. PostgreSQL backend supports the full 38 digits.
Inverted numeric BETWEEN on a sort key (MongoDB backend only) ValidationException ("The BETWEEN operator requires upper bound to be greater than or equal to lower bound") Same error in all practical cases. The inversion guard compares bounds via f64, so a KeyConditionExpression BETWEEN whose bounds are inverted only beyond f64's ~15–17 significant digits (e.g. BETWEEN 10000000000000002 AND 10000000000000001) is not rejected and returns an empty result set instead. Valid ranges are never wrongly rejected.
TransactGetItems overlapping an in-flight TransactWriteItems on the same item May cancel the read with TransactionCanceledException and reason TransactionConflict Never cancels for this reason on PostgreSQL: the read runs in one REPEATABLE READ snapshot taken at its first read, so it sees either all of the write or none of it and returns the pre-write state while the write is in flight. That is a legal serial order (the read ordered before the write) and the all-or-nothing guarantee holds, but a client that retries on TransactionConflict to observe the newest state will not get that signal here. SQLite behaves the same (one WAL snapshot); MongoDB with the default snapshot read concern likewise, and the row above covers the other read concerns.
Transaction read concern (MongoDB backend only) No user-configurable equivalent snapshot is the default, fidelity-preserving mode. With majority or local, TransactGetItems is not guaranteed a single point-in-time snapshot and transaction condition reads have weaker isolation. With local, a condition can be evaluated against data that is later rolled back after failover.
Contended TransactWriteItems A transaction that conflicts with another in-flight transaction on the same item is canceled with a TransactionConflict reason ("Transaction is ongoing for the item") PostgreSQL queues the second transaction on the first one's row locks and SQLite runs one writer at a time, so both normally commit and no TransactionConflict is returned. PostgreSQL locks each transaction's items in table and key order, so two TransactWriteItems cannot deadlock on each other. A PutItem, UpdateItem, DeleteItem or BatchWriteItem of an item that a TransactWriteItems has locked also waits for it, where the Amazon DynamoDB developer guide lists that request as a conflict. On PostgreSQL this includes an item that the transaction checks or deletes while it is missing: the transaction holds the key until it commits or rolls back, so a request that creates the item waits. Many transactions that check one hot missing item queue less fairly than on an existing item, because every waiter wakes at each commit and only one proceeds. Each such check or delete of a missing item also inserts and deletes its key, so it writes WAL and leaves a dead row and index entry for autovacuum, even though it changes no item. When PostgreSQL still aborts a transaction (a deadlock with another lock holder, or a serialization failure under a stricter default_transaction_isolation), the answer is a TransactionCanceledException with a TransactionConflict reason, not a 500. MongoDB retries write conflicts internally and cancels with TransactionConflict on every item only after sustained contention. A client that relies on TransactionConflict to back off does not see it under ordinary contention.
BatchWriteItem where no request could be applied now A request that could not be applied is returned in UnprocessedItems with a 200 when another request of the batch applied, whichever came first (measured 2026-10-27 in us-east-1, client retries off, while a TransactWriteItems held the items: a batch of two requests, one on a held item, answered 200 with that request unprocessed and the other applied). When no request applied the batch answers an error, not a 200 with every request unprocessed (measured 2026-10-27 in us-east-1, client retries off, with every request on an item a TransactWriteItems held, for one request and for two: 500 InternalServerError) The same 200 for a partial batch. When no request could be applied the answer is 503 ServiceUnavailable, which the SDKs retry with backoff, so a client's UnprocessedItems loop does not spin on a batch that makes no progress. Every request is tried before the batch answers, so a batch of 25 contended requests can spend 25 retry budgets in one call. A connection error ends the attempt: the request that met it and the requests after it are returned unprocessed, or the batch answers 503 if nothing applied. An internal storage error fails the batch with 500 as before. On a Cassandra table without TTL, a put or a delete of an item that a TransactWriteItems holds returns TransactionCanceled, which is not left for the client to replay, so the batch answers 400 TransactionCanceledException after the requests ahead of it were applied. A Cassandra write that spends its retries on a lost race, or on a held item of a TTL table, returns TransactionConflict, left in UnprocessedItems. A table of which no request applied gets no ConsumedCapacity entry. What the service reports for such a table in a partial batch is not measured.
Contended single-item writes on a MongoDB table that has a stream or an index PutItem, DeleteItem and UpdateItem on one item are applied one after another and each answers 200 (measured 2026-10-23, client retries off, on a table with a GSI and a stream); TransactionConflictException is answered to them only while a TransactWriteItems holds the item MongoDB aborts the later of two transactions that write one document, so each write runs as a transaction that is re-run with jittered backoff, up to 50 attempts. A write on a table with a stream also conflicts on the sequence counter of the shard it is assigned to, so writers of different keys can conflict. A write that could not commit in 50 attempts answers 503 ServiceUnavailable, which the SDKs retry, where the service answers 200. The server records that 503 as a system error, not under TransactionConflict (which counts TransactionConflictException answers), so contention shows in the system error metrics. The warning in the server log carries the last error that ended an attempt of the failed write.

Authentication and Authorization (AWS IAM/STS auth surface used by DynamoDB)

Area DynamoDB ExtendDB
Credential management AWS IAM console/API extenddb manage CLI and /management REST API
Access key prefixes AKIA (long-term), ASIA (session) AWS-wide IAM/STS conventions AKIAEXTENDDB (long-term), ASIAEXTENDDB (session)
Federated roles AssumeRoleWithSAML, AssumeRoleWithWebIdentity Not implemented
Role chaining Supported Not implemented
SourceIdentity, TransitiveTagKeys Supported Not implemented
Resource policies Supported Not implemented (deferred)
Deleting a user, group or role that still has inline policies (a user also access keys or group memberships, a group also members) DeleteUser, DeleteGroup and DeleteRole refuse with DeleteConflict until they are removed The delete succeeds and removes them, and the principal's boundary, tags and sessions, with the principal. A principal created later with the same name starts empty
Putting an inline policy or boundary on a principal that does not exist NoSuchEntity HTTP 404 IAM user not found (or group, role) from the management API
Table ARN as TableName Accepted; the request acts on that table Authorized against that table, then the request fails with ResourceNotFoundException
AccessDenied message for an ARN outside this deployment (caller with no policy) Names the ARN as supplied. A table ARN in TableName with another partition, service or region never reaches the IAM decision: it is ValidationException ("Invalid AWS partition", "Invalid vendor code", "Invalid AWS region") for every principal (measured) Names the ARN as supplied. A table ARN in TableName with another partition, service or region is authorized as this deployment's table, and a caller with no policy is denied naming the ARN as supplied
A resource ARN in another account Refused with the same answer for a caller allowed dynamodb:* on * and a caller with no policy. When the account exists: AccessDeniedException "User: is not authorized to perform: dynamodb: on resource: because no resource-based policy allows the dynamodb: action", except CreateTable, the time-to-live, continuous-backup, backup, export and restore operations, which answer ValidationException "This action is only supported by accounts that match the resource owner’s account.". When it does not: AccessDeniedException "The caller is not authorized to access the specified resource." on GetItem, PutItem, UpdateItem, Query, Scan and BatchGetItem, the same ValidationException on RestoreTableToPointInTime, and AccessDeniedException "Access is denied" on the rest. A batch or transaction with tables in more than one account is ValidationException "Invalid request! All tables in the request must be from a single account." (measured) The same answers, before the IAM decision and in dev mode too, where an account exists when this deployment's catalog holds it. RestoreTableToPointInTime and an UpdateContinuousBackups that enables point-in-time recovery get the point-in-time recovery refusal instead (see "Point-in-time recovery" below). DeleteTable, DeleteItem and DeleteBackup take the answers of UpdateTable, UpdateItem and DescribeBackup (not measured). A table ARN in TableName that also has another partition, service or region, or that names an index or backup, gets these answers too. The service answers it with a ValidationException (the partition, vendor or region text in the row above, or "Valid ARN format is ..." for an index or backup ARN): on GetItem whether or not the account exists, and on DescribeTable when it exists (measured; the other operations were not sent)

Import and Export

Area DynamoDB ExtendDB
Import source S3BucketSource (S3 bucket) FileSource (local filesystem path)
Export destination S3 bucket Local filesystem path
Import formats CSV, DYNAMODB_JSON, ION CSV, DYNAMODB_JSON, ION
Export formats DYNAMODB_JSON, ION DYNAMODB_JSON, ION
Import execution Asynchronous (background job) Synchronous (completes before returning)
Export execution Point-in-time snapshot Current snapshot, synchronous
Imported rows holding a number the service cannot store A row holding a value that is not a number ends the import of the file: it and the rows after it are not imported. A row holding a number out of range or with more than 38 digits is skipped, and the rows after it are imported. Each refused row counts as one error and is logged to CloudWatch, and an import with any error is FAILED with ItemValidationError, keeping the rows it imported (measured 2026-11-03). Unlike the item operations, it reads a number's exponent and scale as 32-bit integers: 1E2147483648 ends the import of the file and 1E2147483647 is a Number underflow (measured again 2026-11-11) The same, with three differences. A zero whose exponent fits in 32 bits but is out of range, such as 0E126, is imported as 0, where the service skips the row (Number overflow for 0E126). A Unicode decimal digit (\uff15), which the service imports as the digit (5), is not a number to ExtendDB, so the row ends the import of the file. Each refused row is logged to the server log, and the FailureMessage names the server log instead of CloudWatch

Control Plane

Area DynamoDB ExtendDB
Table creation delay Returns CREATING immediately; transitions to ACTIVE typically within seconds. Same behavior for on-demand and provisioned Configurable via control_plane_delay_seconds runtime setting (default: 5s)
DeletionProtectionEnabled Enforced Enforced (accepted and stored, DeleteTable rejects when enabled)
U+0000 in a key attribute name, an index key attribute name or a projected attribute name Accepted; DescribeTable returns each name byte for byte (measured 2026-09-18 and 2026-10-24, and again on 2026-11-04) The same on all four backends. PostgreSQL jsonb cannot hold U+0000, so a PostgreSQL deployment stores these names through an escape, U+0000 as U+0001 U+0001 and U+0001 as U+0001 U+0002. Catalog migration 11 applies the escape to the names an earlier release stored (see the Upgrade Manual)
Stream disable and enable UpdateTable StreamEnabled=false answers UPDATING; the stream reports DISABLED a few seconds later with every shard closed, and every write acknowledged before that lands in the closed stream. StreamEnabled=true afterwards creates a new stream with a later label; both streams stay listed, and a disabled stream stays describable after its table is deleted The shards close inside the UpdateTable call and the response says ACTIVE. A write that reaches storage after the close is acknowledged and recorded in no stream (on MongoDB it is recorded past the shard's EndingSequenceNumber instead); the window is one write wide. A disabled stream is removed with its table. A stream created by a release before this one loses its ARN once the table is disabled and re-enabled (its label lived only in the table row)

Streams

Area DynamoDB ExtendDB
Shards Shards open and close over time, with parent and child shards Four shards per stream, assigned by partition key hash. They close when the stream is disabled (see Stream disable and enable under Control Plane)
AT_TIMESTAMP iterator The first record created at or after Timestamp, compared at millisecond precision; older than retention resolves to the oldest record; past the newest record resolves to after it; more than about a second in the future is a ValidationException The same, on all four backends. The seek compares the record's stored creation time, taken from the same clock read as its ApproximateCreationDateTime. The future buffer is one second against the server clock

Time to Live (TTL)

Area DynamoDB ExtendDB
TTL attribute name Any UTF-8 string (1–255 bytes) Restricted to [a-zA-Z0-9._-]+ (1–255 bytes). Names with spaces, quotes, or other special characters are rejected. This eliminates SQL injection risk in the TTL expression index.
TTL deletion Background process, items deleted within 48 hours of expiry Background worker with an indexed sweep. All backends use the same fixed 60-second interval and 100-item batch; neither is configurable.
TTL stream records REMOVE events with userIdentity: {type: "Service", principalId: "dynamodb.amazonaws.com"} Supported — TTL deletions generate REMOVE stream records with the same userIdentity
TTL timestamps far in the past Ignored if more than five years before the current time No cutoff. Any positive epoch-second value is queued and expired, however old.
TTL attribute value validation Non-conforming values are ignored Cassandra matches: only a positive integral N is expired, and missing, non-numeric, fractional, zero, and negative values are ignored.
UpdateTimeToLive response timing Returns immediately; the change takes effect asynchronously (up to about an hour) Matches: the call returns once the catalog flip is durable. The Cassandra queue backfill runs in the background with a durable per-page cursor (a failed host's retry resumes rather than rescanning), and the disable drain is finished by the worker.
DescribeTimeToLive transitional states ENABLING and DISABLING are reported while a change settles Matches on Cassandra (all four states; ENABLED means the queue covers every item) and on PostgreSQL for enable (ENABLING until the concurrent index build publishes; its disable is synchronous so DISABLING never appears). During DISABLING, AttributeName is absent, unlike DynamoDB. Updates are rejected while a transition is settling, as in DynamoDB.
Concurrent same-key writes on a TTL-enabled table Unaffected by TTL Serialized through a base-row claim. Contention is retried internally against a re-read image, so writes stay last-writer-wins; only sustained contention surfaces TransactionConflictException.
TTL-enabled write cost Unaffected by TTL A claim LWT, with the base write becoming a logged batch (measured: roughly 2× put latency on a single-node bench). The TTL configuration is served from a 5-second cache, the remaining catalog read is overlapped with the index read, and the release is folded into the batch with an exact conditional release off the request path. Non-TTL tables keep the existing fast paths.
TTL on a table with an asynchronously propagated GSI (Cassandra backend only) Supported UpdateTimeToLive enabling TTL on such a table is a ValidationException naming the table, the first asynchronous GSI and its propagation delay. Before, it was an InternalServerError, which SDKs retry. A GSI is asynchronous unless its delay, or index_propagation_delay_ms when it sets none, is 0. Checked against Cassandra with a storage-level test and on a served build at the default delay (.review logs cited in the PR); the wire suite runs Cassandra at delay 0, where TTL is enabled
Cassandra TTL with asynchronous GSIs Supported Not currently supported. The Cassandra backend rejects TTL enable when any GSI has a nonzero effective propagation delay, and rejects creating such a GSI on a TTL-enabled table; base tables, LSIs, and synchronous GSIs are supported. See ADR-0010.
Enabling Cassandra TTL on a live table No application write quiescence required Writes that began while TTL was disabled must be quiesced until enable and synchronous backfill complete. Prefer enabling TTL before opening a new table to traffic. Once enabled, writes use the durable exact-claim path.
TTL expiration throughput Managed by the service Cassandra: about 1,000 items per table per minute — the sweep processes its batch concurrently across the queue's shard partitions under one per-table lease. Other backends: about 100 per table per minute (a serial 100-item batch per 60-second cycle, with unleased hosts contending for the same rows). A table expiring faster than its backend's rate accumulates backlog.
Cassandra TTL deployment bounds Managed by the service Writes for a table must be served from one Cassandra datacenter — claims and lifecycle LWTs use LOCAL_QUORUM/LOCAL_SERIAL and are linearizable only within a datacenter. Cassandra coordinators and ExtendDB hosts must remain time-synchronized because request batches use explicit timestamps, and request deadlines must stay well below the 120-second request claim lifetime. A write whose queue mutation loses an internal race is repaired by the background outbox; an ambiguous queue destroy retains a non-dischargeable marker that is rechecked every worker pass.
Cassandra TTL lifecycle contention Not observable Enabling or disabling TTL, and creating an index that would invalidate a live sweep, take a short lease and retry briefly. Sustained collision reports ResourceInUseException with a retry hint.
TTL modification cooldown Enforces a cooldown period between enable/disable changes ("Time to live has been modified multiple times within a fixed interval") No cooldown — TTL can be enabled and disabled immediately. Intentional divergence for faster local development.

Tagging

Area DynamoDB ExtendDB
TagResource / UntagResource Validates resource ARN exists, returns ResourceNotFoundException for missing tables Matches DynamoDB — validates resource ARN and returns ResourceNotFoundException for missing tables.
ResourceArn naming a backup (table/<name>/backup/<id>) Backups take no tags: TagResource, UntagResource, and ListTagsOfResource take table and stream ARNs, and the authorization reference lists no aws:ResourceTag key for the backup resource. The service's reply to a backup ARN was not measured TagResource, UntagResource, and ListTagsOfResource refuse it with ValidationException ("One or more parameter values were invalid: Provided Arn is not a DynamoDB resource arn: "), the reply already given for an ARN whose resource is not table/.... So are table/<name>/backup, table/<name>/backup/, and any longer path under a backup. Another account's backup ARN is AccessDeniedException "Access is denied" when this deployment's catalog does not hold the account and gets this ValidationException when it does, as on the service (measured); another region's stays the region ValidationException, and the table is not looked up. Earlier builds accepted a backup ARN and stored its tags; such tags stay in storage but nothing reads them: ListTagsOfResource and UntagResource refuse the ARN, and authorization ignores them (see "Tag conditions on backups" under Backup and Restore). TagResource and UntagResource are still authorized against table/*, so a policy statement on table/*/backup/* does not apply to them. Measured on PostgreSQL and SQLite; the check is in the engine, the same for every backend
Tag condition keys on tag operations aws:RequestTag/<key> and aws:TagKeys are populated for TagResource and CreateTable, and aws:TagKeys for UntagResource (service authorization reference, dynamodb v1.5). Whether CreateTable with Tags is also authorized as dynamodb:TagResource was not measured The same three operations populate the same keys, and every other operation leaves both absent. The operator semantics (set operators, Null, a bare negated operator on an absent aws:TagKeys, tag name case) come from iam simulate-custom-policy runs, not from DynamoDB requests. A request that names one tag under two spellings with differing values fails closed: a Deny that reads the key blocks and an Allow that reads it does not grant; the service's answer was not measured. The variable ${aws:TagKeys} in a condition value has no value: a positive operator is false against it and a negated one true (measured with the IAM policy simulator on 2026-10-27), and its text is not compared (measured the same way on 2026-10-31). On a table resource policy a StringEquals Deny with it did not apply for either tag order (measured 2026-10-27). Tag names in aws:RequestTag/<key> match without regard to case on both (Étag and étag match on the service), but ExtendDB's Unicode case folding also equates the sharp s with ss (Straße and STRASSE), which the service does not (measured on IAM and on a table resource policy, 2026-10-27). An Allow gated on aws:RequestTag/STRASSE grants a request carrying Straße on ExtendDB where the service would not (inferred from the same measurement; the Allow direction was not run)
A tag key repeated in one TagResource or CreateTable request ValidationException "Duplicate Tag Keys provided as input: Duplicate Tag Key found " on both operations (measured 2026-10-27), and nothing is stored TagResource accepts it and stores the last value, and authorization reads that value. CreateTable answers HTTP 500 InternalServerError on SQLite and PostgreSQL and creates nothing, because the tags are inserted with a plain INSERT. Measured on SQLite and PostgreSQL on 2026-10-27

Query

Area DynamoDB ExtendDB
A Query that names a table ARN in another account and has a fault in its request The request checks come first: {"N": "bob"} answers The parameter cannot be converted to a numeric value: bob, and Limit: 0 answers 1 validation error detected: Value at 'Limit' failed to satisfy constraint: Member must have value greater than or equal to 1. A body with no fault answers AccessDeniedException "The caller is not authorized to access the specified resource." (measured 2026-11-12) AccessDeniedException, with the answers of "A resource ARN in another account" above, ahead of the request checks (#974)
An N value written with Unicode decimal digits, such as {"N": "1"} Read as the number its digits stand for. A fullwidth, Arabic-Indic or Devanagari one as a sort key value or a filter value matches an item with N 1, and PutItem stores {"N": "1"} as 1 (measured 2026-10-25). Digit one of each of the 37 runs of ten Nd digits below U+10000 in Unicode 15.0 is accepted as a filter value, and digit one of each of the 31 runs from U+104A0 up is refused with The parameter cannot be converted to a numeric value: <value> (measured 2026-11-11) The Query number check accepts the digits of the 37 runs and refuses those of the 31 runs. The key condition, the filter and ExclusiveStartKey read the value as written, so a value written with these digits matches no item stored with the ASCII digits. A key condition value for a numeric sort key, or an ExclusiveStartKey, written that way answers InternalServerError on SQLite and PostgreSQL. PutItem, UpdateItem and the batch and transaction writes refuse the value (#565)
An N value that is not a number beside a Limit above 2147483647 Limit: 2147483648 beside :u = {"N": "bob"} answers ExpressionAttributeValues contains invalid value: The parameter cannot be converted to a numeric value: bob for key :u. Limit: 2147483647 beside it answers the text without the ExpressionAttributeValues contains invalid value: wrapper (measured 2026-11-12) The text without the wrapper for both (#976)

Secondary Indexes

Area DynamoDB ExtendDB
GSI update propagation Eventually consistent (milliseconds to seconds) Per-GSI propagation delay. System default: index_propagation_delay_ms setting (default 10ms). Each GSI can override with its own propagation_delay_ms (stored in catalog). A value of 0 means synchronous (future sync GSI feature).
Vector index update propagation Eventually consistent, the same model as a GSI Matches DynamoDB. Maintenance is queued on the same propagation queue as async GSIs, so a search immediately after a write may not see it. Governed by the same index_propagation_delay_ms setting; unlike a GSI there is no per-index override. A value of 0 applies maintenance inline in the write's own transaction, which is stricter than the service and exists so a test can assert steady state without waiting. Inline additionally requires the table's propagation queue to be empty: while rows queued during an index build are still draining, a new write queues behind them instead of overtaking them, so a brief search-after-write window exists even at 0 until the queue drains. That window is ordering, not data loss; the write is applied, in order, by the queue worker. That zero behaves differently while an index is still building, and the two backends differ: PostgreSQL applies inline only to an index that is already ACTIVE, and defers a write to a building index whatever the delay says, because the write must not reach the index ahead of the backfill's older snapshot of the same item; SQLite does not check the status on this path, so with a zero delay a write during a backfill is applied inline and bypasses the hold that keeps the two ordered. The SQLite behaviour is tracked as a defect (F-20), not intended, and it is reachable only with the zero delay, which is a test setting.
SearchVectors score at extreme magnitudes (PostgreSQL backend only) Returns the true distance as a number for any vector of finite components The score is bounded to a finite value instead, and the bound is not a measured service answer. pgvector accumulates distances in single precision, so magnitudes far below f32::MAX overflow inside the extension: Euclidean above about 9.2e18, dot product above about 1.8e19, and cosine at both ends, above about 1.8e19 and below about 3.7e-23, which is where a component's single-precision square rounds to zero. A non-finite score cannot be serialised as JSON at all, so the result is bounded in SQL: 1e308 for an overflowed distance, -1e308 for an overflowed negated inner product, which the score contract negates so a client sees 1e308 in Score, and 1.0 for a cosine that comes back NaN. Ranking is unaffected at the overflow end, because each bound sits at the end its metric overflows towards, so the farthest row stays farthest and the most similar stays most similar; two rows that both overflow tie, and the tie breaks on the base key. At the underflow end cosine loses resolution rather than being bounded, and which side is tiny decides how much. For a tiny query vector, its norm underflows while the inner product usually does not, so the quotient is an infinity that pgvector clamps and the reported distance collapses to one of 0, 1 or 2 following the sign of the inner product, with the 1.0 substitute firing only when the vectors are exactly orthogonal and the quotient is therefore 0/0 (measured). For a tiny stored vector it is worse: the stored norm is computed in single precision and reaches zero, so the zero-vector guard fires and that row reports 1.0 at every angle, parallel included. A corpus of tiny embeddings therefore loses ranking altogether rather than losing resolution. For a tiny query vector, by contrast, ranking still separates nearer-than-orthogonal from farther and loses resolution only within each half. The SQLite backend owns its own arithmetic, computes in double precision, and reports the true value, which is why this row is scoped to PostgreSQL.
Vector index deletion window UpdateTable Delete leaves the index in DELETING long enough to observe, then removes it No observable DELETING window on either backend: the catalog row is removed inside the UpdateTable transaction, so a DescribeTable immediately afterwards already omits the index. The index's data table is dropped after that commit, in a separate transaction, and the two backends handle a failure there differently. PostgreSQL treats it as best effort, because the data table lives in a different database entirely: a failure is logged and skipped rather than failing the request. SQLite propagates it, so a failed drop returns an error from an UpdateTable whose catalog change has already committed, which is the more surprising outcome of the two: the index is gone from the catalog and the caller saw a failure. So an operator debugging a leftover _ddb_vec_* table should look for that warning rather than assume the delete was incomplete.
Backing up and restoring a table that has vector indexes Restores the table with its vector indexes intact: the configuration survives, items keep their vector attributes, and SearchVectors works as soon as the table is ACTIVE (measured) Partial. With a configured [backup.store], CreateBackup of such a table succeeds on PostgreSQL and SQLite, the two backends with vector indexes: the backup is written to the store and its manifest records the index specifications, and DescribeBackup and ListBackups report it as any other backup (wire test on both backends). Without a store (the section absent on PostgreSQL, or kind = "disabled"), where CreateBackup writes the in-catalog format, it is refused with ValidationException "table has vector index(es); restoring a table with vector indexes is not supported by this storage backend" and no backup is created, because that format cannot carry the index data across. RestoreTableFromBackup of a store-backed vector backup restores the table with its vector indexes into PostgreSQL and SQLite, the two backends with vector support (SearchVectors answers as soon as the table is ACTIVE; matrix cells), and is refused into MongoDB or Cassandra with ValidationException "backup has vector index(es); restoring a table with vector indexes is not supported by this storage backend" before any target table is created. A backup of a vector table taken before catalog 0.0.4 is refused at restore on PostgreSQL with the same message naming the backup; on SQLite such a backup restores without its vector indexes. A backup of a table with no vector indexes restores normally.
SearchVectors endpoint Served only on search-dynamodb.<region>.amazonaws.com. The standard dynamodb.<region>.amazonaws.com endpoint answers the same request with HTTP 400 UnknownOperationException ("This operation is not supported by this endpoint"); every control-plane and item operation stays on the standard endpoint. Signing is unchanged either way (service name dynamodb, target prefix DynamoDB_20120810) Served on the same endpoint as every other operation, so a client is pointed at one ExtendDB endpoint for all of them. Two consequences worth knowing: an SDK that resolves a separate search hostname from its endpoint ruleset needs its endpoint overridden to reach ExtendDB, and ExtendDB does not reproduce the service's refusal, so a test asserting UnknownOperationException for vector search on the base endpoint passes against Amazon DynamoDB and fails here.
SearchVectors result order for equal distances Measured unstable: three identical searches returned tied rows in three different orders, and a top-k that truncates a tie group keeps an arbitrary subset of it Deterministic on both backends, by different means. PostgreSQL sorts explicitly on the base table's full primary key after the score, so the order is a property of the query. SQLite issues no ORDER BY and resolves ties by scan order through a stable top-k, so its order is a property of the plan rather than something the query guarantees. Either way a client re-issuing an identical search sees the same order, which is stricter than the service rather than divergent in outcome. Do not rely on the two backends agreeing on which subset of a truncated tie group they keep.
Vector indexes on the MongoDB backend Vector indexes and SearchVectors are available Not supported at all. That backend provides no vector search implementation, so the engine's capability gate refuses CreateTable and UpdateTable carrying VectorIndexes and every SearchVectors request, with the same capability message a PostgreSQL deployment without pgvector returns. Every other vector row in this document describes the PostgreSQL and SQLite backends.
Multi-part base table keys Not supported Preview extension (opt-in via the limits.allow_multipart_table_keys setting). Standard single/composite keys work identically.
GSI throughput on a PROVISIONED table Every GSI needs ProvisionedThroughput of at least 1 read and 1 write unit A GSI ProvisionedThroughput below 1 (including 0/0) is ValidationException on CreateTable of a PROVISIONED table and on UpdateTable's GSI Create ("ReadCapacityUnits and WriteCapacityUnits must both be greater than or equal to 1 for index: "; the service's text was not captured). A GSI with no ProvisionedThroughput is still accepted on a PROVISIONED table, and UpdateTable to PROVISIONED leaves an on-demand table's GSIs without one; see the BillingModeOverride row under Backup and Restore for how a backup of such a table restores
Projected attributes across all indexes At most 100 Enforced on CreateTable (and so on RestoreTableFromBackup, which validates its target the same way) and on UpdateTable's GSI Create: every NonKeyAttributes entry of every GSI and LSI is counted, so an attribute projected into two indexes counts twice. Over 100 is ValidationException ("Number of projected attributes in all indexes exceeds limit of 100, projected: "; the service's text was not captured)
Index key validation on UpdateItem and transaction writes A secondary-index key attribute must carry its declared scalar type and may not be empty. On UpdateItem a literal operand of the wrong type (SET k = :v, ADD, DELETE, list_append of literals) is refused on the statement, ahead of the ConditionExpression, naming the attribute and the index; a value computed from the item (an attribute reference, the fallback of if_not_exists) is refused after the condition passes with the message "The update expression attempted to update the secondary index key to unsupported type"; a key left empty is refused after the condition passes with the update-expression wording. In TransactWriteItems a wrong-typed key (table or index) on any member cancels the transaction with the first such member's ValidationError in position and None elsewhere; otherwise an empty index key on any member is a top-level ValidationException; otherwise members report their own conditions. On a Put member both checks come ahead of the member's condition. (Measured on the service.) Matches on every backend. Two known shared differences: an empty index key supplied through the legacy AttributeUpdates parameter is reported with the update-expression wording where the service uses the PutItem wording naming the index; and a request whose own value exceeds 400 KB is refused for size by the service before any index-key check, where ExtendDB reports the index-key fault first.
Query on a GSI with several RANGE attributes (MongoDB and Cassandra backends) Orders results over every RANGE attribute in key-schema order and serves a key condition on each of them (equality on every one before the last, any operator on the last) SQLite and PostgreSQL match the service. The MongoDB and Cassandra backends filter the first RANGE attribute of such an index only: a key condition on a later RANGE attribute is refused with ValidationException naming the attribute and the backend. MongoDB orders results by the first RANGE attribute then the base table key. Cassandra orders a page over every RANGE attribute then the base table key, and refuses a Query that carries an ExclusiveStartKey on such an index with ValidationException (the cursor compares the first RANGE attribute only). Every refusal the service gives for the condition's shape (one condition per key, condition count, missing HASH attribute, RANGE gap, non-key attribute, value type) is the same on every backend.

Backup and Restore

Behaviour stated as measured, and every number below, was observed with release builds for each backend (PostgreSQL, SQLite, MongoDB, Cassandra) on one host with the database on loopback, except where a row says otherwise, so timings say how the backends compare, not what a networked deployment will see. Numbers marked (earlier build) were measured on an earlier build and not repeated on the final one. Sentences marked (from the code) rest on reading the code and on storage-level tests, not on a running server.

Area DynamoDB ExtendDB
What a restore carries across Key schema, attribute definitions, items, secondary indexes, billing mode and provisioned throughput, on-demand throughput (table and GSI level), SSE settings. Table class is not carried: a restore is STANDARD whatever the source's class (measured). Stream settings, TTL, tags, auto scaling, IAM policies, and CloudWatch settings must be reapplied by hand. DescribeTable on a freshly restored table reports ItemCount 0 and TableSizeBytes 0 (measured on 15 restored tables, one of them ten minutes after ACTIVE) The same set on all four backends, with one gap: the table's on-demand throughput is carried, a GSI's is not (ExtendDB records no per-index on-demand maximum, and OnDemandThroughput is not a member of its GSI definition). Table class is not restored: a STANDARD_INFREQUENT_ACCESS source restores as STANDARD, as on the service. Streams, TTL, tags, and deletion protection are not restored. DescribeTable on a restored table reports ItemCount 0 and TableSizeBytes 0 when the table goes ACTIVE, as the service does (measured: 0 and 0 on 15 restored tables, one of them ten minutes after it went ACTIVE), until the statistics pass next rewrites both from the restored rows (from the code). A backup written before catalog 0.0.4 (PostgreSQL, SQLite, Cassandra) has no recorded table definition and restores with its keys, items, and billing mode but no secondary indexes. A provisioned one restores with 5/5 throughput on PostgreSQL and SQLite and with its recorded throughput on Cassandra
How RestoreTableFromBackup runs Returns at once with the target CREATING; the service copies in the background The same on all four backends: the response carries the target CREATING, and the items are copied by a background task in the server, so a client that times out or disconnects does not stop it. Once the request has been authenticated and authorized, the rest of it, from reading the backup to registering the restore, runs in a task of its own, so a client that disconnects after that does not cancel it either: the restore runs and the client finds the target with DescribeTable. A client that disconnects while the request is still being authenticated or authorized cancels it, and nothing is created (from the code). Measured with a client whose 1 ms read timeout closed its connection before any response arrived: on all four backends the restore was registered and finished. Measured (in-catalog restore, an earlier build) with a 60,000-item backup of a table with no secondary indexes: response in 0.032 s (PostgreSQL), 0.012 s (SQLite), 0.053 s (MongoDB), 0.151 s (Cassandra); ACTIVE after 1.5 s, 2.1 s, 3.6 s, and 11.2 s. Measured (store-backed restore, this release) with the same shape (60,000 items of 200 bytes, composite key, no secondary index) from a filesystem store on loopback: response in 0.051 s (PostgreSQL), 0.016 s (SQLite), 0.055 s (MongoDB); ACTIVE after 0.67 s, 1.85 s and 3.74 s (on MongoDB the job's DONE at 1.8 s and the index backfill worker's flip after); 1M items of 200 bytes in key order (the server's own backups) ACTIVE after 9.5 s on PostgreSQL and 26.8 s on SQLite, the same items as an unordered backup (a MongoDB source, a multi-part-key table) after 17.5 s and 66 to 90 s (docs/design/15-backup-restore-bench-pr9.md, which has the host and its load); the store-backed response includes the sidecar and manifest reads and its ACTIVE time the download and the per-file verification, and Cassandra as a store-backed target was measured at 12,000 items (the kill points: a resumed restore of 12,000 items of 4,000 bytes in two data files reached ACTIVE 8.3 s after its takeover on a single-node container) and at 1M items of 200 bytes in key order, ACTIVE after 49.0 s, and MongoDB's restore of its own unordered backup of 1M such items ACTIVE after 33.8 s, which another run may exceed by up to 5 s, since MongoDB's backfill worker flips the table at its next 5 s cycle after the load (docs/design/15-backup-restore-bench-pr11.md, which has the host and its load). On Cassandra the response waits for the target table's schema to be created: 0.75 to 1.3 s with five restores running at once (earlier build), which is longer than a client read timeout of 1 s. On every backend the request waits at most 60 s (RESTORE_REGISTRATION_TIMEOUT) for its background task to register the CREATING target of a store-backed restore (a bound against a connection pool that has stopped answering; the manifest and sidecar reads that precede the registration are not under it); past that it answers InternalServerError while the task goes on, so the target can appear after the error, holding the backup in use (BackupInUseException to DeleteBackup) and the name until the restore ends; DescribeTable is where a client finds it (from the code). Because that 60 s bound equals botocore's default read timeout, a client whose first attempt times out while the registration is still in flight (a backup's backup_index row held under a slow lock) retries: a retry that names the same backup and target waits for the in-flight registration and is answered its CREATING description rather than registering a second target, and a restore of a different backup into the same name while the first is in flight is TableInUseException (from the code). The wait is per server process: each server keeps its own list of in-flight registrations, so a retry waits for the first attempt's registration only when it reaches the server that holds it; a retry that reaches another server behind a load balancer finds the name free until the registration commits and then TableInUseException (the registration took the name) or, once the target exists, the same CREATING description from the catalog (from the code). The job permit is the last of the request's checks: a restore that finds every [backup] max_concurrent_jobs slot held (default 4; backups and restores together, per server process) waits up to 30 s for one and is then LimitExceededException ("Too many backup and restore jobs are running on this server (at most N at once, the [backup] max_concurrent_jobs bound); retry later"), creating nothing, where the service accepted five restores sent together (measured on DynamoDB); on the store-backed path the permit is taken before the manifest is read, after the catalog row's state, the target name and the backup's in-use rule are checked, in that order (a restore of a backup into its own CREATING target is TableInUseException, measured on DynamoDB). A restore runs inside the server process; if the process stops, see the abandoned-restore row
RestoreSummary The restore response and DescribeTable while CREATING report SourceBackupArn, SourceTableArn, RestoreDateTime (the backup's BackupCreationDateTime, not the time the restore ran), and RestoreInProgress=true. Once the table is ACTIVE, DescribeTable omits RestoreSummary The same on all four backends. No response that describes a table (CreateTable, UpdateTable, DeleteTable, DescribeTable, RestoreTableFromBackup) carries RestoreSummary unless the table is CREATING; what the service's UpdateTable returns for a restored table was not measured
Reads on a restore target A GetItem or Scan on the target while CREATING is ResourceNotFoundException; the first read after DescribeTable reports ACTIVE succeeds (measured) The same on all four backends. The server's key-info cache stores a negative entry (5 s TTL by default) for a name the catalog does not have, and does not store one for a name the catalog has in a state other than ACTIVE: on a not-found answer it asks the catalog once more with DescribeTable, and authorization records the name as missing in the key-info snapshot it hands the engine, so the engine does not look it up again. A GetItem, PutItem, UpdateItem, DeleteItem, Query, or Scan on the target while it is CREATING therefore costs exactly one table_key_info and one describe_table catalog load, uncached, per request (on SQLite five SQL statements: one for the key info, four for DescribeTable; on PostgreSQL describe_table is two queries), plus one describe_table on the first such request for the throttle registry; the first read after ACTIVE loads once more and is then cached. Measured on SQLite with a GetItem loop on a CREATING restore target of 100,000 items: 40 requests refused, 40 key-info and 41 DescribeTable loads in the server's statement log; with the hand-off to the engine removed, 80 and 81. In an earlier run of the fidelity test the first GetItem after ACTIVE answered in 3 ms after 72 refused reads.
RestoreTableFromBackup overrides Current request members are BillingModeOverride, ProvisionedThroughputOverride, GlobalSecondaryIndexOverride, LocalSecondaryIndexOverride, SSESpecificationOverride, OnDemandThroughputOverride, and VectorIndexOverride; DynamoDB applies them to the restored table See the overrides table below. A refused override is refused before the target table is created
Members of the RestoreTableFromBackup response The CREATING description omits DeletionProtectionEnabled, the table's ProvisionedThroughput.NumberOfDecreasesToday, and each GSI's IndexStatus The same on all four backends; DescribeTable reports the first two. Each GSI's ProvisionedThroughput keeps NumberOfDecreasesToday; what the service sends there was not measured
Restoring into a name that exists TableAlreadyExistsException; into a name that is itself a CREATING restore target, TableInUseException: "Table: is already being restored from backup: " for the same backup, and "Attempt to change a resource which is still in use: Table: is being used." for a different one (both measured) TableAlreadyExistsException on all four backends for an existing table; TableInUseException for a name that is a CREATING restore target, whichever backup is restored, always with the same-backup text naming the backup the existing target is being restored from (the service's text for a different backup is not reproduced). The engine checks the name after the backup is read and before the overrides are checked against it, the order the service uses: a restore of a missing backup into an existing table, into a table CreateTable is still creating or into a CREATING restore target is BackupNotFoundException "Backup not found: " (measured on DynamoDB, twice each, and the same on main); an earlier build of this release checked the name first and answered TableAlreadyExistsException or TableInUseException for those three. The name is still checked before the job permit is taken, so the answer does not depend on whether a permit is free; each backend checks the name again under its registration (a missing backup reaches the backend only when it is deleted after the engine has read it), whose target insert is the fence that tells an existing table from a CREATING target, so two simultaneous requests cannot both pass. The existing table or target is unchanged
UpdateTable on a CREATING restore target ResourceNotFoundException (measured on DynamoDB) ResourceInUseException on all four backends, the engine's mapping of a table that is not ACTIVE. A plain CreateTable into the target's name is ResourceInUseException "Table already exists: ", the service's text for a taken name (measured on DynamoDB), without the backup ARN. The target is unchanged
BackupArn that is malformed or belongs to another account Not an ARN of the right shape, too long (over 1024), a control character, a slash or .. in the region: ValidationException "Invalid Request: BackupArn is not valid". The right shape with an id that is not a backup id (not hex, a wildcard): ValidationException "Invalid Backup ARN" (both measured; which input gets which text was captured for one input only: a bare 13-digit id is "Invalid Request: BackupArn is not valid"). Surrounding whitespace, a trailing newline for one, is trimmed, and an ARN naming another region of the caller's account resolves (measured). One in another partition is ValidationException (measured; text not captured) The same two texts on all four backends, split by ExtendDB's parser: a string that is not arn:aws:dynamodb:<region>:<account>:table/<name>/backup/<id> with a region in [a-z0-9-], a digit-only account, a name in [a-zA-Z0-9_.-], only printable ASCII, and at most 1024 bytes after trimming is "Invalid Request: BackupArn is not valid" (so is one in a partition other than aws, the only one ExtendDB issues); one of that shape whose id is neither [0-9]{14}-[0-9a-f]{8} nor a shape an earlier build issued (13 digits, -, 8 hex digits, which every backend issued before the shared id; 13 bare digits, which PostgreSQL v0.1.0 to v0.1.2 issued) is "Invalid Backup ARN"; no build has put a UUID in a backup ARN, so none resolves. Surrounding ASCII whitespace is trimmed (only a trailing newline was measured on the service; trimming all surrounding whitespace is ExtendDB's generalisation), and the region is checked for shape only: the backup is looked up under the ARN rebuilt in this deployment's server.region first and, when that is not found and the caller wrote a different ARN, under the ARN as written, so another region's resolves and a backup created under an earlier server.region stays reachable by the ARN ListBackups reports for it, though not by that ARN rewritten with the new region (see the upgrade manual on server.region). A bare 13-digit id (the shape PostgreSQL v0.1.0 to v0.1.2 issued) passes the id check, so such an ARN that names no backup is BackupNotFoundException, where the service answers ValidationException "Invalid Request: BackupArn is not valid" (measured on DynamoDB). Under a server.region outside [a-z0-9-] no backup ARN can be formed, so CreateBackup is refused with a ValidationException naming server.region, and the backups taken before the upgrade under such a region keep an ARN the three operations refuse as "not valid"; the server starts and logs a warning saying so. A well-formed ARN naming another account, of any number of digits, is refused on DescribeBackup, DeleteBackup, and RestoreTableFromBackup before any policy is evaluated, in dev mode too, with the service's answers (see "A resource ARN in another account"). The same checks apply to ListBackups's ExclusiveStartBackupArn, where another account's or region's cursor is instead a ValidationException (see ListBackups paging). In every build, dev mode included, DescribeBackup and DeleteBackup first refuse a BackupArn that does not parse as a backup ARN at all (a table ARN, an xrn: prefix, an empty field) with "Invalid Backup ARN" before any policy is evaluated, as the service does (measured on DynamoDB), so those shapes get that text instead of the engine's. Every other BackupArn is authorized as the backup it names in this deployment (the table and id, in the server's region and the caller's account, surrounding whitespace trimmed as the engine trims it) and then checked by the engine as above. Same on all four backends
Tag conditions on backups The backup resource has no aws:ResourceTag condition key: a backup has no tags to match DescribeBackup, DeleteBackup, and RestoreTableFromBackup are authorized on the backup ARN as a resource with no tags. An aws:ResourceTag/<key> condition finds the key absent for a backup (and dynamodb:ResourceTag/<key> is absent for every resource), so, for example, an Allow conditioned on StringEquals never grants on a backup and a Deny conditioned on StringEquals never denies one. This holds whatever an earlier build stored under the backup ARN (it accepted TagResource on one; see Tagging), and a backup does not take its table's tags. For RestoreTableFromBackup, the seven item actions evaluated on table/<TargetTableName> (see the authorization rows below) read that ARN's resource tags. A target that does not exist has no tags, so an aws:ResourceTag/<key> condition on those actions finds none and does not grant the restore; a target that exists is evaluated with its tags, and a request that is otherwise valid then passes authorization and fails TableAlreadyExistsException (or TableInUseException for a CREATING restore target) when the condition is met, and fails AccessDeniedException naming the first item action when it is not (measured on SQLite). Whether the service reads a target's tags in these evaluations was not measured. Scope backup permissions by ARN (table/<name>/backup/*). Measured on PostgreSQL and SQLite for the Allow case, including tags written under a backup ARN by the earlier build and then served by this one; the Deny case and role sessions rest on unit tests of the authorization path, which is the same for every backend
Authorization of ListBackups dynamodb:ListBackups is evaluated on arn:aws:dynamodb:<region>:<account>:table/*/backup/*, or on table/<TableName>/backup/* when TableName filters the list (measured on DynamoDB) The same on all four backends (the check runs in the server before the backend is reached). A statement on * or table/* covers every list; one on table/<name>/backup/* (or table/<name>/*) covers only the list filtered to that table; one on the table's own ARN, table/<name>, covers none. The unfiltered list is one resource, so a Deny on table/<name>/backup/* denies the list filtered to that table and not the unfiltered list that would include its backups, which follows from the resources the service evaluates. A TableName that is not a string is evaluated as no filter; the engine then refuses the request. These resources have been evaluated since v0.1.14; the admin guide's compatibility notes describe what earlier builds evaluated
Authorization of RestoreTableFromBackup dynamodb:RestoreTableFromBackup on the backup ARN, and dynamodb:Scan, dynamodb:Query, dynamodb:GetItem, dynamodb:PutItem, dynamodb:UpdateItem, dynamodb:DeleteItem, and dynamodb:BatchWriteItem on table/<TargetTableName>, each of which must be allowed; dynamodb:RestoreTableFromBackup is not evaluated on the target (measured on DynamoDB) The same eight evaluations on all four backends, in that order: the backup first, then the target under each item action in the order listed, stopping at the first denial, which the AccessDeniedException names (User: ... is not authorized to perform: dynamodb:Scan on resource: arn:aws:dynamodb:<region>:<account>:table/<target>); the service's order was not measured. A missing TargetTableName is evaluated as table/ (an empty name, which no statement but *-style wildcards covers); the engine then refuses the request. The seven item-action evaluations read the target ARN's resource tags: a target that does not exist has none, one that exists is evaluated with its tags and the restore then fails TableAlreadyExistsException (see Tag conditions on backups). Every DynamoDB condition key (dynamodb:LeadingKeys, dynamodb:Attributes, dynamodb:Select, dynamodb:ReturnValues, dynamodb:ReturnConsumedCapacity, dynamodb:FullTableScan, dynamodb:EnclosingOperation) is absent in these seven evaluations, so ForAllValues:* and Null: true conditions pass and bare StringEquals and Bool conditions fail: an Allow of the item actions conditioned on ForAllValues:StringEquals dynamodb:LeadingKeys grants the restore of every item in the backup, an Allow of dynamodb:Scan conditioned on Bool dynamodb:FullTableScan: false blocks every restore, and a Deny of dynamodb:Scan conditioned on Bool dynamodb:FullTableScan: true blocks none; the keys the service sets in these evaluations were not measured. The backup ARN is evaluated as the backup it names in this deployment: the table and backup id from the request, in the server's region and the caller's account, whatever partition, region or account the caller wrote, with surrounding whitespace trimmed as the engine trims it. The engine resolves the same table and id (under the server's region first, then as written for a backup created under an earlier server.region), so it never acts on a backup other than the one evaluated. DescribeBackup and DeleteBackup are evaluated the same way. These resources have been evaluated since v0.1.14 (see the admin guide's compatibility notes). A Deny of dynamodb:RestoreTableFromBackup on a table does not block restores into it; deny one of the seven item actions on it instead
Multi-part base table keys (preview) Not supported A store-backed backup of a table created under limits.allow_multipart_table_keys is written unordered, and its restore preserves the item set: the restored table holds what the source's Scan held, with the source's key schema and attribute definitions, the target laid out as a natively created table (bulk_load keys rows with the backend's own key functions) (measured on PostgreSQL and SQLite with the preview enabled, tests/test_backup_job.py; the engine test a_multi_part_key_manifest_is_registered). The preview's item paths address such a table by its first HASH attribute on every backend, restored or not: on PostgreSQL a GetItem by the whole key finds nothing on the source or on the restored table (a Query naming both key attributes does find the item), on SQLite the source itself keeps one item per first HASH key value and a GetItem returns that item whatever second key it was given, and a Query on the first HASH key alone is refused on both ("Query condition missed key schema element") (measured on PostgreSQL and SQLite with the preview enabled). An in-catalog backup of such a table (no store, or Cassandra) is refused at restore with ValidationException (from the code and storage-level tests)
DeleteBackup and DeleteTable during a restore DeleteTable on the CREATING target is ResourceInUseException. DeleteBackup during a restore was not measured While the target is CREATING, DeleteTable on it is ResourceInUseException on all four backends, as on the service. DeleteBackup on its source backup is BackupInUseException on all four: that refusal is ExtendDB's contract, not measured against the service. Both succeed once the target is ACTIVE. How the restore and DeleteBackup are ordered differs (from the code). PostgreSQL and SQLite register the restore in the transaction that creates the target, holding the backup row, so a concurrent DeleteBackup is ordered strictly before (the restore then finds no backup) or after (it finds the restore). MongoDB runs the restore's registration and DeleteBackup's claim each as one session transaction that first increments a lock field on the backup's catalog document while it is AVAILABLE, so the two conflict and one orders wholly before the other: a DeleteBackup that wins leaves the registration no AVAILABLE backup (BackupNotFoundException), a registration that wins makes the DeleteBackup BackupInUseException. Cassandra uses two lightweight transactions on different partitions: the target's row is inserted first (IF NOT EXISTS, which reserves the name), then the restore is registered on the backup's row (IF backup_status = 'AVAILABLE'), which DeleteBackup claims on the same partition; a concurrent DescribeTable can therefore see a CREATING target for a restore that then fails with BackupNotFoundException, after which the target is removed. On MongoDB DeleteBackup writes the backup DELETING before it drops the data and DELETED after; a DeleteBackup whose request fails or is cancelled after the drop started leaves the backup DELETING, which DescribeBackup, ListBackups and a restore treat as gone (BackupNotFoundException), and a retry of DeleteBackup finishes the drop and answers DELETED (from the code and storage-level tests). MongoDB reads the catalog from the primary with read concern local regardless of the connection string, which the lock and the job records rely on; the connection string must use readPreference=primary (any other read preference is refused at startup). The write concern follows the connection string and must be majority (the server default): a connection string with w=1 is refused at startup, because a DELETING write or a job record acknowledged under w=1 just before a primary failover can be rolled back
Concurrent restores of one backup A second RestoreTableFromBackup of a backup while a restore from it is still CREATING is BackupInUseException (measured) The same on all four backends: the second restore is refused with BackupInUseException and creates nothing; the check runs inside the transaction that registers the restore (PostgreSQL, with the backup row locked FOR UPDATE; SQLite), inside the claim on the backup document followed by a check for a CREATING target of the backup (MongoDB), or inside the lightweight transaction on the backup row (Cassandra), so two simultaneous requests cannot both pass. For a store-backed restore the registration takes the same lock on the backup_index row instead of the legacy backups row (PostgreSQL SELECT ... FOR UPDATE, SQLite the BEGIN IMMEDIATE write transaction, MongoDB a $inc lock_seq on the backup_index document, Cassandra the active_restores lightweight transaction on the backup's partition), the same ordering guarantee, so a legacy restore and a store-backed restore of two different backups never contend and a DeleteBackup of a store-backed backup meets only store-backed registrations. Two concurrent registrations of one backup leave one restore target on Cassandra as on MongoDB: the registration's lightweight transaction (IF backup_status = 'AVAILABLE' AND active_restores = null) is linearized on the backup's partition, so the second finds active_restores non-null and is BackupInUseException; the in-use pre-read is advisory (storage-level tests on both). Once the first target is ACTIVE the backup restores again; on MongoDB the check reads majority-committed data (at the default transaction read concern) while DescribeTable reads at local, so a RestoreTableFromBackup or DeleteBackup issued within the majority-commit lag after DescribeTable first shows the target ACTIVE can still be BackupInUseException and succeeds when retried (the lag is the journal flush plus any concurrent batch write still holding an earlier oplog slot; measured at 7 to 12 ms, once in about 2,000 observations, with a 3,000-item insert running beside the write). A restore of a backup whose DeleteBackup is in progress answers BackupNotFoundException on every backend (the service's answer was not measured), by two mechanisms: on MongoDB and Cassandra the delete marks the backup DELETING before it drops the data, and the restore finds no AVAILABLE backup; on PostgreSQL and SQLite the restore waits for the delete's transaction and then finds no backup. Earlier builds accepted concurrent restores of one backup on PostgreSQL, SQLite, and Cassandra, and on MongoDB after a 2 s retry
Restore interrupted by the server stopping Managed by the service The copy runs in the server process, so a stopped process leaves its target CREATING with a RUNNING restore job record whose heartbeat stops. The engine's reconciler, once at startup and then every backup.reconcile_interval_secs (default 60 s), marks the record FAILED and removes the target once the heartbeat is older than backup.stale_job_after_secs (default 300 s) on the database's clock, on every backend alike, logs the removal with the table name, and then lets DeleteBackup and a new restore into the name succeed (from the code). On SQLite a restart ages every record of the stopped process at once (one process serves the file), so the first cycle removes it without the stale window. Until then DeleteTable and DeleteBackup are refused as during a running restore. A store-backed restore (one run from a [backup.store]) is instead resumed, not discarded: its owner's death leaves a RUNNING restore job record with a stale heartbeat and the target CREATING, and the reconciler of any instance with the configured store takes the record over under a fresh owner generation once the heartbeat is stale (on SQLite at once after a restart, by the record's slot; on PostgreSQL once the owner's claim session has ended as well), stamping a fresh heartbeat in the same write so no second instance takes it too, and resumes the load from its recorded progress (per data file on PostgreSQL, per batch on SQLite, MongoDB and Cassandra), re-downloading to its own spool when the dead owner's spool_host is not this host's; the target reaches ACTIVE with the backup's full item count, its secondary indexes complete: a resumed Cassandra restore re-applies its last batch as idempotent upserts that rewrite the same base and index rows (the write path rewrites an unchanged item's GSI and LSI rows rather than deleting them, #424). A resume that finds no recorded progress and a target holding more items than the backup's total is FAILED with reason target_not_empty and the target is left in place: the rule protects a catalog restored from a dump that names a restore which finished and was written to since. A target holding no more than the total with no recorded progress is a first data file applied in part: on Cassandra, which records a batch's progress after its writes, an ordinary crash before the first progress record (the first 10,000 items or 32 MiB) leaves written items and no progress, and the resume re-applies the first file with idempotent upserts and reaches ACTIVE with the exact count (from the code; the storage and engine cells). MongoDB records each batch's documents and its progress in one transaction, so a mid-file crash leaves no items the record does not account for and resumes to ACTIVE; only a crash before the first batch commits leaves an empty target, which resumes from the start. A record that one instance's reconciler has taken over five times without the restore ending (a resume whose final count or progress read fails every time, or that stops with the record RUNNING) is failed on the next takeover with reason owner dead: taken over 5 times by one instance without the restore ending and its target removed, so a record that can never finish does not hold its name and its backup for as long as the server runs; the count is per instance and a restart starts it over (from the code). The target stays CREATING with a FAILED record: DeleteTable on it is ResourceInUseException, DeleteBackup of its backup and a second restore of that backup are BackupInUseException, and the reconciler does not remove it; extenddb backup remove-target --account <id> <table> (the admin guide's backup section) removes the target and its record, after which DeleteBackup and a new restore into the name succeed. A legacy (in-catalog) restore is still failed and its target removed. Measured (binary-level, this release): SIGTERM during a store-backed restore left the record RUNNING and the restarted server resumed it to ACTIVE with every item (on PostgreSQL after the 45 s stale window, on SQLite at once); a SIGKILL at each restore kill point left the target to finish with the exact count (the base table's and the GSI's) or, for a failing restore, gone, except at the first reach of the Cassandra point that pauses before a batch's first progress record: on Cassandra (killed after the first batch's 10,000 upserts, before their record) the resume of that build answered target_not_empty and left the target CREATING, and extenddb backup remove-target then removed it, after which DescribeTable was ResourceNotFoundException and DeleteBackup succeeded; this release resumes that case with upserts to ACTIVE (from the code; the nightly kill-point job runs it). On MongoDB a SIGKILL after a file's insert_many leaves the batch's items and its progress committed together, so the resume continues to ACTIVE rather than target_not_empty. Not covered (from the code): on MongoDB, a target whose base copy had finished has its record DONE and is left alone by the reconciler; the index backfill worker finishes it after a restart, and if that backfill fails on every attempt the worker retries it every 5 s with a warning and never gives up, so the target stays CREATING (and DeleteTable and DeleteBackup stay refused) until the cause is fixed or the target's catalog document is removed by hand (no failing case was found to reproduce this). A target left CREATING by a build before this release is backfilled by the catalog migration as a RUNNING record with a heartbeat at the epoch, so the first cycle removes it. Heartbeats and the stale window are measured on the database server's clock, so the application hosts' clocks play no part. The same reconciler resolves a store-backed CreateBackup the server stopped (one reconciler with one duty list, in place of per-backend sweeps): a CREATING backup row whose owner is dead (on PostgreSQL and MongoDB a heartbeat older than stale_job_after_secs, on PostgreSQL once the owner's claim session has ended as well; on SQLite, where one process serves the file, every CREATING row after a restart and, at runtime, a row whose in-process slot no task holds, so a job task that died is resolved by the next cycle without a restart) is taken over under a fresh owner generation and becomes AVAILABLE when a complete, verified manifest is under its prefix in the configured store (the process died between the manifest write and the status write) and FAILED otherwise, never continuing the upload; the objects of a FAILED backup are deleted once its heartbeat is older than stale_job_after_secs; a DELETING backup's deletion is finished; a DELETED backup's prefix that still lists objects is swept; and FAILED and DELETED rows are removed once their prefix is empty and their completed_at is older than failed_row_retention_secs (7 days). Measured (binary-level, this release): SIGKILL between the data file and the manifest left the row CREATING and the data file under the prefix, and after the restart the row was FAILED in the first cycle on SQLite and 46 s after the kill on PostgreSQL (stale_job_after_secs = 45), with the prefix deleted in the same cycle on PostgreSQL (the stale heartbeat is what made the owner dead) and once the dead owner's heartbeat was stale on SQLite, 45 s after the kill (the slot made the owner dead at once; the prefix waits for the heartbeat clock on every backend); the same at a kill between the three documents and the manifest, which leaves the documents under the prefix and no manifest; SIGKILL between the manifest write and the status write left the five objects, and the row was AVAILABLE with the manifest's size and count after the restart (SQLite at once, PostgreSQL after 48 s); SIGTERM during an upload left the row FAILED with reason shutdown and an empty prefix. These duties run only while the configured store is healthy, and under a maintenance claim only the dead-owner and DELETING duties run. A FAILED backup is BackupNotFound to clients; extenddb backup list --failed prints it with its reason
Point-in-time recovery 35-day window: UpdateContinuousBackups enables continuous backups, and RestoreTableToPointInTime restores to any second in the window Not supported; use on-demand backups (CreateBackup and RestoreTableFromBackup) instead. DescribeContinuousBackups reports ContinuousBackupsStatus: ENABLED (the service reports this unconditionally) with PointInTimeRecoveryStatus: DISABLED and no restorable-time window. UpdateContinuousBackups with PointInTimeRecoveryEnabled: true returns ContinuousBackupsUnavailableException; with false it returns the same description. RestoreTableToPointInTime returns PointInTimeRecoveryUnavailableException, the exception the service models on that operation, for every request. Both refusals carry "Point-in-time recovery is not supported by this storage backend" and come after authentication and before authorization. They read only the operation name and, for UpdateContinuousBackups, PointInTimeRecoveryEnabled, so every caller gets them, with or without permissions, and no table is read. An UpdateContinuousBackups whose PointInTimeRecoveryEnabled is not true or "true" goes to authorization and the request's checks as before. The service authorizes first: a caller with no policy is denied on dynamodb:Scan on the restore's target table, and a caller with permissions gets the request's checks and "Point in time recovery is not enabled for table ''". A table that does not exist is TableNotFoundException ("Table not found: ") on DescribeContinuousBackups and on a disable, as on the service. Same on all four backends
Where backups live Managed storage, independent of the table With a configured [backup.store] (a filesystem root, which is the default beside a SQLite database file, or an S3 bucket and prefix) on PostgreSQL, SQLite and MongoDB: under the store's root, at <account id>/<table name>/<backup id>/, as gzip data files of DynamoDB JSON lines (data/000001.json.gz, ...) and the manifest documents (extenddb-manifest.json last, the commit record), with a backup_index row in the catalog as the index; a lost database loses the rows, not the bytes (extenddb backup sync gives a new catalog a row for each backup under the root, and --adopt-store first makes it the owner of a root another catalog owned; a root copied to a new place keeps its backups' ARNs once --move-store re-points their rows). A prefix copied from a server of another region, whose manifest spells its ARN in that region, is adopted under this server's region: its row carries the ARN this server issues, so ListBackups names this server's region (every ListBackups answer measured on the service names the endpoint's region) and DescribeBackup, RestoreTableFromBackup and DeleteBackup find it under either region's spelling, as they find the backups this server made and as the service finds a backup under another region's spelling of its ARN (measured; DescribeBackup answers with this server's spelling, as it does for this server's own backups, where the service echoes the spelling sent); the manifest keeps the spelling it was written with, and so does the source table's ARN, which DescribeBackup's SourceTableDetails.TableArn, ListBackups' BackupSummaries[].TableArn and the restore's RestoreSummary.SourceTableArn answer in the manifest's region (a backup this server made names this server's region in every ARN it answers); the restore and the reconciler accept a manifest whose ARN differs from the row's in the region alone. extenddb backup migrate-legacy <arn> or --all copies in-catalog backups into the store under their own ARNs, refusing the ones 0.1.14 and earlier releases took (their backup ids have the 13-digit shape those releases issued, and a store prefix carries only the 14-digit shape). Without a store, and on Cassandra always, inside the database the server already uses, so a lost database loses its backups too: on PostgreSQL in the catalog database (backups, backup_items, backup_definitions, table_restores), on SQLite in the one database file, on MongoDB as a backups metadata collection in the catalog database and one data collection per backup in the data database, on Cassandra as backup metadata in the catalog keyspace and item payloads in the account's keyspace; take database-level backups for off-host copies there
Backup creation CreateBackup returns while the backup is CREATING; ListBackups and DescribeBackup expose that state until it becomes AVAILABLE. BackupName and TableName are checked as the model says: length 3 to 255 and [a-zA-Z0-9_.-]+, with "1 validation error detected: Value '' at 'backupName' failed to satisfy constraint: " texts, joined under "2 validation errors detected:" when both fail (measured). TableName may be the table's ARN (measured). A table that does not exist or is still CREATING is TableNotFoundException "Table not found: " (measured) With a configured [backup.store] on PostgreSQL, SQLite and MongoDB, CreateBackup takes the table's snapshot and writes the catalog row in the request and returns the backup CREATING; a job then uploads it and the backup becomes AVAILABLE, which DescribeBackup and ListBackups show as on the service (BackupSizeBytes is 0 while CREATING and the compressed size once AVAILABLE; ItemCount and TableSizeBytes in SourceTableDetails are the table's figures as last counted by the stats pass while CREATING, which is 0 and 0 for a table the stats pass has not reached yet, such as one loaded seconds before CreateBackup, and the backup's exact figures once AVAILABLE: the items written and the sum of their DynamoDB sizes; the service reported 0 and 0 in every fresh-table backup measured). CREATING lasts the whole upload (the durations below), and while it lasts DeleteBackup and RestoreTableFromBackup of the backup answer BackupInUseException "Backup is being created: " on all three backends; the 16 service backups measured were AVAILABLE 12 to 90 ms after CreateBackup answered, so a client that deletes or restores a backup right after creating it polls DescribeBackup first here. The backup is the table as it stood when its snapshot opened, which is inside the request but after the request's checks (the table's state, the store's health, the maintenance claim) and after any wait for a job permit, up to 30 s (below): every write acknowledged before the open is in the backup and none acknowledged after it, so a PutItem acknowledged while the request waited for a permit is in the backup (measured: a write acknowledged 1.01 s after a CreateBackup that waited for a permit was in it, 2 of 2 runs), and BackupCreationDateTime is the open's millisecond. Measured on the service: a restored backup contained every write acknowledged before CreateBackup was sent and the 18 writes acknowledged in the 0.1 s up to BackupCreationDateTime, and none of the 11,754 acknowledged in the 75 s that followed, so the service takes the table at an instant inside the request as well. A backup the job cannot finish (a store failure, an item no restore can load, a shutdown) is FAILED, which is BackupNotFound to clients, and its objects are deleted (the restore-interruption row). A CreateBackup still waiting in its snapshot open or row insert when the server stops writes no row; it is answered ServiceUnavailable "The server is shutting down. Retry the request." only after a registration loss, where the jobs' token is cancelled while the listener still serves, since on SIGTERM the listener's 5 s connection drain closes the connection before that token is cancelled (measured: the connection closed 8.2 s after the request was sent). Measured (this release, 16-core host, filesystem store, the record in docs/design/15-backup-restore-bench-pr8.md): 100,000 items of a composite-key table with two GSIs AVAILABLE in 1.85 s on PostgreSQL and 1.44 s on SQLite, 1,000,000 in 36.1 s and 12.45 s. Without a store, and on Cassandra always, CreateBackup copies the items before it returns and returns the backup AVAILABLE. On PostgreSQL, MongoDB, and Cassandra a concurrent ListBackups never saw an in-catalog backup CREATING (earlier build); on SQLite the backup row is visible as CREATING to other requests while the copy runs. Measured (earlier build, in-catalog): 1.3 s for 60,000 items on PostgreSQL, 1.9 s for 60,000 on SQLite, 0.2 s for 20,000 on MongoDB, 5.1 s for 20,000 on Cassandra. MongoDB's in-catalog backups report BackupSizeBytes 0. The name checks are the service's, with its texts (the length clause before the pattern clause when both fail; the service's order was not captured), counting characters, with TableName taking the deployment's table-name limits; before them a 200 KB name was stored and returned in every ListBackups page (a 500 on Cassandra) and a NUL byte was a 500 on PostgreSQL. TableName as an ARN (arn:aws:dynamodb:<region>:<account>:table/<name>) is accepted on all four backends: an ARN whose region is not the server's (server.region, compared as written, so US-EAST-1 differs from us-east-1) is ValidationException "1 validation error detected: Invalid AWS region in ''" (the service's answer, measured on DynamoDB twice; an earlier build resolved it to the server region's table), another account's is refused with the service's answers (see "A resource ARN in another account"), the account checked before the region, so another account's ARN in another region is AccessDeniedException (measured on DynamoDB for CreateBackup and ListBackups, twice each); an SDK built from the model refuses the ARN form client-side, so only a hand-built request sends it. TableNotFoundException "Table not found: " for a missing or CREATING table on all four backends, built from the request's name (the backends' own payloads differ). Without a store, and on Cassandra, a table the deployment can create is backed up whatever its name, as the service does (measured on DynamoDB: a table named ... answered ContinuousBackupsUnavailableException "Backups are being enabled for the table: .... Please retry later" 13.2 s after CreateTable and was backed up at 33.7 s): the in-catalog format writes no store prefix. With a store, a name over 255 bytes (reachable only with [limits] max_table_name_length raised) or made only of dots fits no store prefix, so the store-backed create refuses it with ValidationException before it opens a snapshot or writes a row ("TableName cannot be backed up: a backup ARN cannot be formed for it: invalid backup ARN: table name of N bytes is longer than 255" / "... invalid backup ARN: table name "..." is only dots"). Every table under a server.region outside [a-z0-9-] is refused (the BackupArn row); the checks run after the table's ACTIVE probe and before the job permit, so the refusal takes no slot. The permit is the last check: a request that finds every [backup] max_concurrent_jobs slot held (default 4) waits up to 30 s for one and is then LimitExceededException ("Too many backup and restore jobs are running on this server (at most N at once, the [backup] max_concurrent_jobs bound); retry later"), where the service accepted six CreateBackup calls sent together (measured on DynamoDB, two runs)
DeleteBackup response The full DescribeBackup description with BackupStatus DELETED, including SourceTableDetails.ProvisionedThroughput (a required member) and SourceTableFeatureDetails (measured) The same on all four backends: the engine reads the backup's recorded definition before the delete and fills the description as DescribeBackup does, with BackupStatus DELETED. A backup whose definition this build cannot read or that does not parse is still deleted and described without feature details (logged at warn), which means a damaged PROVISIONED backup is described with on-demand ProvisionedThroughput {0, 0}: ExtendDB's choice, deletability over the throughput member of a row that is being removed, where DescribeBackup on the same row is an InternalServerError; a failure to reach the database fails the request and deletes nothing.
Concurrent DeleteBackup of one backup A DeleteBackup of a backup already deleted is BackupNotFoundException; which call of several concurrent ones answers DELETED was not measured The same on all four backends: the one DeleteBackup that deletes the backup answers DELETED, and every other one, concurrent or later, BackupNotFoundException "Backup not found: ". For an in-catalog backup the status is read again where the deletion is decided: under the row's lock on PostgreSQL, under the write lock on SQLite, in the document's transaction on MongoDB and by the DELETING claim's lightweight transaction on Cassandra; on MongoDB and Cassandra a DeleteBackup that finds another one's DELETING (running, or stopped by a crash or a failed call) finishes that cleanup and answers BackupNotFoundException, as DescribeBackup already answers for such a backup, so a client that retries a DeleteBackup that failed after it started gets BackupNotFoundException too. A second DeleteBackup of a store-backed backup answers BackupNotFoundException on all four backends. (from the code and the tests)
A backup maintenance command holding the catalog's claim Not applicable: the service has no maintenance command While extenddb backup purge (or another backup maintenance command: backup sync, backup migrate-legacy or backup remove-target) holds the catalog-level maintenance claim, CreateBackup and RestoreTableFromBackup on every instance of the catalog answer HTTP 400 LimitExceededException "A backup maintenance command holds this catalog's maintenance claim; backup and restore jobs are refused until it finishes", after every other check of the request (a request refused on its own terms, a bad table name or override, gets its own error) and before the job permit. The refusal ends when the command releases the claim, or when a command that died goes stale after [backup] stale_job_after_secs.
A store-backed backup while the configured store is unhealthy Not applicable: managed storage CreateBackup on PostgreSQL, SQLite and MongoDB with a configured [backup.store], and DeleteBackup and RestoreTableFromBackup of a backup in that store, while the store is unhealthy or its first check is pending, answer HTTP 400 ValidationException "The filesystem backup store configured on this server is unhealthy (owned by another catalog); the operation is refused until the store's check passes", the kind (filesystem, s3) and the category in parentheses being the store's (/health reports the same category); before the first check of a store checked after the listener: "The s3 backup store configured on this server has not passed a check yet (its first check is pending); the operation is refused until it does". DescribeBackup and ListBackups still describe such a backup. Once DeleteBackup's DELETING write has committed the request answers the description with BackupStatus DELETED whatever the object deletion does; a deletion the store does not answer within its bound is left DELETING for the reconciler, logged, and the request still answers DELETED. CreateBackup's refusal comes after the table's ACTIVE probe and the name checks and before the maintenance check and the job permit, so it takes no slot and writes no row; the in-catalog create (no store, Cassandra) touches no store and is not refused.
DescribeBackup when the definition cannot be read Not applicable A definition row that does not parse, a renamed column, or a revoked privilege (Internal from the backend) is an InternalServerError, as it is for RestoreTableFromBackup on the same read; only a definition version this build does not know is described without SourceTableFeatureDetails.
Consistency of a backup Point-in-time snapshot of the table PostgreSQL and SQLite take the items from one snapshot, and so does MongoDB with a configured [backup.store]. How (from the code): with a store, the request opens the table snapshot (SnapshotEngine, the module docs of crates/storage/src/snapshot.rs and the backends' snapshot_engine.rs are the record): on PostgreSQL one REPEATABLE READ transaction holds the definition and the items on the shared layout, and on the separate layout the catalog row is held shared until the data transaction is pinned, the items then paged by the data table's primary key under that transaction, each page cut at 64 MiB of item text; on SQLite one deferred read transaction opened without the engine's write lock, paged by key with the same cut; on MongoDB a session with readConcern: snapshot, so items copied late reflect the same instant as items copied early. That snapshot is the majority-committed one, which can trail DescribeTable's local read by the majority-commit lag, so a CreateBackup sent as soon as DescribeTable shows a new table ACTIVE could find it missing; the open then waits, at most 2 s, until the snapshot shows the table, and answers TableNotFoundException only for a table a local read does not show ACTIVE either. Without a store, PostgreSQL holds the table's catalog row shared from the first definition read until the data snapshot (REPEATABLE READ, pinned by a read of the table before the row is released) is taken, so the definition recorded is the one in force for the items read; the catalog and the data are separate databases, so this is a barrier, not one cross-database snapshot. SQLite reads all items in one deferred read transaction opened while the engine's write lock was held for the definition read, so writers continue during the copy; that long reader pins WAL checkpointing, so the WAL grows for the duration of the backup by the size of the backup rows written plus any concurrent writes. MongoDB without a store ($out from the live collection) and Cassandra (paging the live table) are not point-in-time: items copied early reflect the table as it was when the copy started, items copied late reflect writes made during the copy. A backup can therefore hold a write without an earlier write it followed, a state the table was never in. Measured (earlier build) with a writer that updated an early item and then a late item, pair after pair, during CreateBackup: 16 of 66 pairs on MongoDB and 123 of 800 on Cassandra had the late write without the early one; 0 on PostgreSQL (of 228) and SQLite (of 230). Back up a Cassandra table, or a MongoDB table on a server without a store, while it is not being written if the backup must be consistent
CreateBackup of a table holding an N value the wire did not validate Every stored value is a valid number, and a backup holds the table as it is With a configured [backup.store] the backup fails. Four write paths of earlier builds stored an N value such as 1E126 or abc without validating it (#618: BatchWriteItem, TransactWriteItems, UpdateItem on an absent item in the key it creates, ImportTable), and UpdateItem and a TransactWriteItems Update of builds before #433 stored an attribute name over 65,535 bytes without checking it, and the store-backed job validates every item before encoding it with the rule the restore applies (validate_restorable_item: every N and NS member a valid number, the nesting depth, the key shape (each key attribute present, of its declared type, not empty, an N key normalized), the item size against the instance's max_item_size_bytes, the hash and range key sizes and the attribute name sizes against the instance's limits, and for an item over the default item limit the data file line against the format's 32 MiB cap), so no backup that no restore can load is reported AVAILABLE. After the first refusal the job reads and validates the rest of the snapshot, logs each refused item with its key, attribute path and reason beside the backup ARN (up to 1,000, then a count), and fails the backup with a reason giving the count and the first item, naming #618 only when that item's refusal is an N value ("3 item(s) cannot be restored; first: key {...}, attribute amount: Number overflow... (#618)"); an item over max_item_size_bytes (stored under a higher limit) fails it the same way with a reason naming the size and the limit and not #618. The client sees CREATING and then BackupNotFound; the reason reaches the operator (extenddb backup list --failed, and the log, which a tenant's support case can cite; every tenant-supplied text in the line is written as a JSON string's content, control characters and the Unicode line separators U+0085, U+2028 and U+2029 escaped, so a newline or a line separator in an attribute name or a number value cannot forge a second log record); the way out is to rewrite or delete each named item through the wire (an item whose key itself holds such a number cannot be rewritten or deleted through the wire, since a PutItem or a DeleteItem with that key is refused; #982 tracks a way to remove it). The in-catalog create (no store, Cassandra) backs such a table up and restores it as before (wire tests on PostgreSQL and SQLite for each path)
Restoring into MongoDB an N key value past Decimal128 Not applicable A store-backed restore into the MongoDB backend of a backup holding an N sort-key value of more than 34 significant digits (the sort-key column is BSON Decimal128) fails: the restore job applies the file through the write path, whose ValidationException ("Numeric sort key value '' exceeds supported precision (Decimal128, 34 significant digits)") becomes the restore's FAILED reason, so the client sees the target CREATING and then gone and the server log carries the text. PostgreSQL, SQLite and Cassandra restore the same value (their sort-key columns are numeric or decimal). A non-key N of up to 38 digits is stored as the item's text and restores intact on every backend, MongoDB included (wire tests against the MongoDB runner)
ListBackups paging At most 100 summaries per page, with LastEvaluatedBackupArn; Limit 1 to 100. TimeRangeLowerBound, TimeRangeUpperBound, and BackupType filter the list. TableName is checked as the model says (3 to 255, [a-zA-Z0-9_.-]+, the "N validation error(s) detected" texts). An ExclusiveStartBackupArn of another account is ValidationException "Invalid Request: The supplied ExclusiveStartBackupArn does not match the account"; of another region, or of a table other than TableName's, ValidationException ("does not match the region", "does not match the table name predicate"); a time bound before the epoch is ValidationException; a lower bound above the upper bound is ValidationException "Time range lower bound must be less than or equal to upper bound" (all measured) The same paging on all four backends: Limit outside 1 to 100 is ValidationException, ExclusiveStartBackupArn resumes after the given backup, and summaries are ordered by creation time then ARN. Summaries carry TableId. TimeRangeLowerBound (inclusive) and TimeRangeUpperBound (exclusive) keep backups created in that range, and BackupType keeps backups of that type (USER when absent, every type for ALL); every ExtendDB backup is USER, so SYSTEM and AWS_BACKUP list nothing. The filters apply before paging, so Limit and the cursor count only backups that pass. Measured on SQLite and PostgreSQL with whole-second bounds between two backups taken 2 s apart; the millisecond edges are from the engine's unit tests. The request checks above are the service's, with its texts where captured: the account text in full; the region and table-name texts complete the captured fragments on the account text's pattern ("Invalid Request: The supplied ExclusiveStartBackupArn does not match the region" / "... the table name predicate"), checked in that order after the ARN's shape; a bound before the epoch is refused with ExtendDB's own text naming the member; equal bounds list nothing. An ExclusiveStartBackupArn that is not in the listing (excluded by the filters, or deleted since the previous page) is placed by the creation time in its id; one whose id carries no time (the 13-digit ids of earlier builds, with or without the hex suffix: only the 14-digit form carries one) is then a ValidationException. A cursor in another region is accepted only when it is the stored ARN of a backup of the account (or of TableName), which is what LastEvaluatedBackupArn hands out for a backup created under an earlier server.region, so paging passes such a backup; any other cursor in another region is refused ("does not match the region"). If that backup is deleted between two pages, its ARN is no longer a stored one and the next page is refused the same way (a same-region cursor would be placed by its time instead); start the listing again. Under a server.region outside [a-z0-9-] the cursor is still the stored ARN: a listing of backups created under a valid region pages, and a cursor that is the ARN of a backup an earlier release created under the invalid region is refused with "Invalid Request: BackupArn is not valid". TableName is a table name or a table ARN, as CreateBackup accepts it (the service accepts both, measured on DynamoDB): the ARN form lists what the name lists, an ARN whose region is not the server's (compared as written) is ValidationException "1 validation error detected: Invalid AWS region in ''" (the service's answer, measured on DynamoDB twice), another account's ARN is AccessDeniedException, and the cursor's table check runs against the resolved name. A numeric TableName is refused with the text the service uses for a map ("Start of structure or map found where not expected"), not measured for a number. Every ListBackups request reads all of the account's backups (or all of the table's, with TableName) from storage and pages them in memory, so walking N backups 100 at a time reads about N²/100 rows in total (from the code)
Backup ARN and creation time Backup id is 14-digit zero-padded epoch milliseconds, -, 8 hex digits; BackupCreationDateTime has sub-second precision The same shape on all four backends; BackupCreationDateTime is the millisecond in the ARN
Running two servers against one MongoDB catalog Not applicable MongoDB uses the fixed database names extenddb_catalog and extenddb_data whatever --catalog-db and --data-db say, and takes no serve lock: two servers on one replica set share one catalog and both start. Each server's reconciler acts only on a restore whose job record's heartbeat is older than backup.stale_job_after_secs (default 300 s) on the database's clock, so one server does not remove another live server's restore; every heartbeat a restore writes, the registration's first one included, is stamped with the database's $$NOW inside the registration's transaction, so a host whose clock is behind the database's plays no part in that judgement (from the code and storage-level tests). Running more than one server per catalog is otherwise unsupported (see the deployment guide)

RestoreTableFromBackup overrides

The same on all four backends.

Member ExtendDB
BillingModeOverride Applied. Switching to PAY_PER_REQUEST drops table and GSI throughput. Switching to PROVISIONED needs each restored GSI's throughput from the request: whenever BillingModeOverride is PROVISIONED and the backup has a GSI, a GlobalSecondaryIndexOverride entry must give that GSI's ProvisionedThroughput (or the list must drop it), else ValidationException "Invalid Request: Must override ProvisionedThroughput if BillingMode is overridden to PROVISIONED for index ", naming the first GSI (the service's text, measured on DynamoDB on an on-demand backup; the text conditions on the override, so ExtendDB applies the rule whatever the backup's billing mode and whatever throughput the backup recorded for the index: a PROVISIONED backup, and an on-demand backup whose GSI still carries a throughput from before a billing switch, are refused the same way, not measured on the service). The list route restores the table PROVISIONED with the listed throughput, as on the service. Without BillingModeOverride, a PROVISIONED backup keeps its GSIs' recorded throughput; one whose GSI has no provisioned throughput, or {0, 0} (ExtendDB's CreateTable accepts such a table, and UpdateTable to PROVISIONED leaves an on-demand table's GSIs so), restores with that GSI taking the restored table's throughput. DynamoDB cannot produce such a backup, so that is ExtendDB's choice
ProvisionedThroughputOverride Applied; required with BillingModeOverride PROVISIONED, refused with PAY_PER_REQUEST
SSESpecificationOverride Applied: the restored table's SSEDescription reflects it
GlobalSecondaryIndexOverride Applied as the service applies it (measured on DynamoDB): the list replaces the backup's GSIs. An empty list restores no GSI; a subset restores those, in the list's order; each entry's ProvisionedThroughput is the restored index's. The attribute definitions only dropped indexes used are dropped with them. Each entry must name a GSI of the backup, once, with its KeySchema (in order) and Projection (NonKeyAttributes compared as a set: any order, and an entry with a duplicate is accepted): an index the backup does not have, one listed twice, or a changed KeySchema or Projection is ValidationException naming the index, as on the service (ExtendDB cannot restore an index the backup did not record). On a PROVISIONED restore an entry without ProvisionedThroughput is ValidationException "Invalid Request: Must override ProvisionedThroughput if BillingMode is overridden to PROVISIONED for index " (the service's text when BillingModeOverride is PROVISIONED; applied by ExtendDB with the same text also when the restore is PROVISIONED because the backup is and no BillingModeOverride is given, which the service's reply to, and its text, were not measured; ExtendDB's CreateTable accepts a PROVISIONED table whose GSI has no throughput, so there is no CreateTable text to borrow), and an entry's OnDemandThroughput is refused; on an on-demand restore an entry's ProvisionedThroughput is refused with CreateTable's text, and its OnDemandThroughput is accepted and not recorded (ExtendDB keeps no per-index on-demand maximum; the service applies it). {0, 0} is refused as CreateTable refuses it, so the list DescribeBackup's SourceTableFeatureDetails gives is accepted as is for a PROVISIONED backup, and with ProvisionedThroughput left out for an on-demand one (the model requires at least 1 per member; boto3 and the AWS CLI refuse {0, 0} before sending). An entry with a member outside the model (WarmThroughput, for one) is refused with ValidationException; what the service does with it was not measured. Measured on SQLite
LocalSecondaryIndexOverride As GlobalSecondaryIndexOverride, with IndexName, KeySchema, and Projection only: an empty list restores no LSI, a subset restores those, an unknown or changed index is refused
OnDemandThroughputOverride Applied on an on-demand restore, as on the service (measured on DynamoDB): equal to the backup's, changed, with one member, or on a PROVISIONED backup restored with BillingModeOverride PAY_PER_REQUEST. It replaces the backup's on-demand throughput as a whole: a member left out means no maximum, as on CreateTable, so {} restores a table with no maxima. On a PROVISIONED restore (from a PROVISIONED backup or by override) it is refused with ValidationException, as is a member other than MaxReadRequestUnits and MaxWriteRequestUnits. Measured on SQLite
VectorIndexOverride Refused with ValidationException

Item Size

ExtendDB enforces the 400 KB (409,600-byte) item-size limit. This section is the single reference for how an item and an update are sized; docs/dynamodb-limits.md records the limit and points here. Every figure was measured against the service in us-east-1 on 2026-10-19.

How an item is sized: its attribute names plus its values. A string or binary value costs its byte length. A number costs 1 + ceil(integer significant digits / 2) + ceil(fraction significant digits / 2), plus one for a sign, the two halves rounded up separately, so 1.5 is 3 bytes and 3.14159 is 5. A list costs 3 bytes plus one per element; a map costs 3 bytes plus, per entry, the entry name, its value, and one more.

How a standalone UpdateItem is sized: by the statement, not the finished item. A base of 3; 18 per SET or ADD clause; a skeleton of the written paths (each map level 3 bytes plus one per named entry, each list level 3 bytes plus one per element, untouched siblings left out) whose SET or ADD leaves carry their value-placeholder bytes; one more per clause written through a list index; 26 plus the name length per function call; 34 per + and 37 per -; and 15 plus the name per document path operand (14 for a nested attribute, 15 for an index). REMOVE and DELETE cost their path skeleton only. The legacy AttributeUpdates form costs 3 plus the name and finished value of each attribute it names that remains. The key and untouched attributes are left out. Both the statement figure and the finished item are checked against the limit, and a breach refuses with Item size to update has exceeded the maximum allowed size.

A transacted Update and a PartiQL UPDATE are sized by the finished item alone, with the same wording. For PartiQL this holds in ExecuteStatement, BatchExecuteStatement and ExecuteTransaction (measured in us-east-1 on 2026-11-04).

Area DynamoDB ExtendDB
UpdateItem item-size accounting In 31 of 33 commercial regions a standalone UpdateItem is sized by the statement (the rule above). At a one-byte key the largest finished item it can produce is 409,581 bytes. Two regions (eu-south-2, me-central-1) size an UpdateItem on the finished item, like a PutItem. PostgreSQL and SQLite follow the 31-region statement rule. A transacted Update and a PartiQL UPDATE are sized on the finished item on both, as on the service. Cassandra sizes every update on the finished item against a fixed 409,600 bytes; MongoDB applies no item-size limit on updates.

Capacity and Throttling

Area DynamoDB ExtendDB
Provisioned throughput Token bucket per table/partition Token bucket per table/partition, matching DynamoDB's burst and refill behavior
On-demand capacity Automatic scaling Fixed initial burst capacity (4000 WCU / 12000 RCU), no auto-scaling
Warm throughput Pre-provisions partitions to the requested read and write units; raising it is a long-running operation (Status: UPDATING for minutes, the previous values reported meanwhile); a request above the account's table maximum is LimitExceededException Stored and reported with the same shape, defaults and validation so clients that read it (the Terraform AWS provider since 6.13.0) work: the previous values are reported with Status: UPDATING for control_plane_delay_seconds after a change, then the new values ACTIVE; a decrease is measured against the reported values, as on the service. Nothing acts on the values: no pre-warming and no scaling at the database level. The account maximum is not known to ExtendDB and is not enforced. A provisioned table whose warm throughput was never set, or was set on one side only, reports its new units at once after a capacity change, where the service reports the old units until the table is ACTIVE. Switching a table to PAY_PER_REQUEST stores 12000 read and 4000 write units where its warm throughput is lower, and the stored values stay after a switch back to PROVISIONED, as on the service; the response to the switch reads the new values with Status: UPDATING for control_plane_delay_seconds, where the service answers with the previous values and Status: ACTIVE
Throttling Always on; throttles requests that exceed provisioned/burst capacity. No setting to disable Configurable via throttling_enabled runtime setting (default: true)

Transactions

ExtendDB decides whether a TransactWriteItems request, or an ExecuteTransaction write, with a known ClientRequestToken is a replay. It compares a fingerprint of the TransactItems JSON, ReturnConsumedCapacity and ReturnItemCollectionMetrics with the fingerprint stored for the token. For an ExecuteTransaction write, ExtendDB builds the TransactItems from the parsed statements. The service compares the parsed request.

Area DynamoDB ExtendDB
TransactWriteItems token retry that changes only the spelling of a number (1 and 1.0) or the spacing of an expression Replays it (measured 2026-10-24) Answers IdempotentParameterMismatchException, because the fingerprint hashes the TransactItems JSON as the request writes it (measured on SQLite)
TransactWriteItems token retry that names an attribute through an ExpressionAttributeNames alias, or adds ReturnValuesOnConditionCheckFailure: NONE inside an item Replays it (measured 2026-10-24) Answers IdempotentParameterMismatchException, for the same reason (measured on SQLite)
TransactWriteItems token retry whose item lists the same attributes in another key order Answers 200, as it does to an identical retry (measured 2026-11-10) Replays in a build without the MongoDB backend, where serde_json writes map keys in sorted order. A build with the MongoDB backend keeps map keys in request order (bson enables serde_json's preserve_order), so the retry answers IdempotentParameterMismatchException (from the code)
Unknown top-level field in TransactWriteItems A raw signed request with the field answers 200 and writes the item (measured 2026-11-10) Refused with SerializationException "Start of structure or map found where not expected: unknown field ..." (measured on SQLite)
ReturnItemCollectionMetrics: SIZE on the first call, table without a local secondary index {"ItemCollectionMetrics": {}} (measured 2026-11-10) {}, without the key (measured on SQLite)

PartiQL

ExtendDB implements ExecuteStatement, BatchExecuteStatement, and ExecuteTransaction as a translation over the existing data plane: a SELECT runs as a point read, a Query, or a Scan by the shape of its WHERE; INSERT, UPDATE, and DELETE run as the matching item writes. Behaviour was measured against the service in us-east-1 on 2026-11-02. The build feature partiql is on by default; with it off the three operations return UnknownOperationException.

Area DynamoDB ExtendDB
Request-rate throttling of PartiQL operations A PartiQL request is throttled against the table's provisioned or burst capacity like the classic operation it performs Not throttled by table. The server's throttle is keyed on a request's top-level TableName, which a PartiQL request does not carry (the table is named inside the statement), so a PartiQL request is not counted against a table's token bucket. Consumed capacity is still reported. Parsing the statement in the throttle path to recover the table would duplicate the PartiQL parser outside the feature boundary, so it is deliberately not done.
PartiQL on a multi-attribute key schema A SELECT, INSERT, UPDATE, or DELETE against a table or index whose key schema has more than one HASH or more than one RANGE attribute is refused with ValidationException "PartiQL statements cannot be executed on tables with multi-attribute HASH keys or multi-attribute RANGE keys." (A multi-attribute key is reachable on the service only through the few preview APIs that create one.) Same. The base table's own key is single or composite (one HASH, optional one RANGE) in both the standard and the multi-part-key preview; the refusal applies when the statement's target (base table or named index) carries a multi-attribute key, and a write to a single-key base table is unaffected by a multi-attribute GSI on the same table.
BatchExecuteStatement SELECT that names an index Refused per statement with "Select statements within BatchExecuteStatement must specify the primary key in the where clause." (a batch read is a base-table point read; no index read is possible) Same, whatever the WHERE names. A missing index is the per-statement "The table does not have the specified index".
ExecuteTransaction SELECT that names an index Refused with ValidationException "Validation failed in TransactStatements[i]: Reads on indices are not supported within transactions." Same, for an existing GSI, a vector index, or a missing index.
ExecuteTransaction read naming an unknown table Cancels the whole transaction: TransactionCanceledException with a positional ResourceNotFound cancellation reason Same.
ConsistentRead=true on an index SELECT A GSI or vector index is refused with "Strongly consistent read is not supported on Global Secondary Indexes", ahead of the vector refusal Same ordering.

Operations Not Implemented

The following operations return UnknownOperationException:

  • CreateGlobalTable, DescribeGlobalTable, ListGlobalTables, UpdateGlobalTable
  • DescribeGlobalTableSettings, UpdateGlobalTableSettings
  • DescribeContributorInsights, UpdateContributorInsights
  • DescribeKinesisStreamingDestination, EnableKinesisStreamingDestination, DisableKinesisStreamingDestination
  • DescribeTableReplicaAutoScaling, UpdateTableReplicaAutoScaling

Runtime Configuration

ExtendDB exposes runtime settings that have no DynamoDB equivalent:

Setting Default Description
control_plane_delay_seconds 5 Simulated delay for table state transitions (CREATING → ACTIVE, DELETING → removed)
index_propagation_delay_ms 10 System-wide default propagation delay for asynchronous secondary-index maintenance (milliseconds), covering GSIs and vector indexes alike. Per-GSI overrides stored in catalog; vector indexes have no per-index override. 0 = synchronous. Accepts the pre-rename name gsi_propagation_delay_ms as a deprecated alias, and a catalog created before the rename keeps honouring a value stored under it.
throttling_enabled true Enable provisioned capacity throttling (token bucket per table/partition)
limits.allow_multipart_table_keys false Enable multi-part base table key extension
log_level info Runtime log level (trace, debug, info, warn, error)
sqlx_log_level warn Separate log level for sqlx query traces
allow_credential_import false Allow importing credentials via the management API. Only true enables it

Web Console

ExtendDB includes a built-in web management console at /console for credential and account management. DynamoDB uses the AWS Management Console.


License

Copyright 2026 ExtendDB contributors. Licensed under the Apache License, Version 2.0. See LICENSE for the full text.

This software is provided "as is" without warranty of any kind. ExtendDB is an open source project maintained by AWS. It is not Amazon DynamoDB or an AWS service. "DynamoDB" is a trademark of Amazon.com, Inc. or its affiliates.