artifact: "engineering-report" database: "wordpress" job_id: "8dd35fce" generated: "2026-11-23T04:18:25+00:00" filename: "wordpress_engineering-report_8dd35fce_v2_20261123.md" source_artifact: "wordpress/8dd35fce/synthesis/v2/report.json" commit: "8f99214b1709"
Database Modernization: Engineering Report
Approve wave 1: move wordpress to Aurora MySQL
Wave 1: Suggested, 2 warnings to accept
Source database: wordpress. This is the build companion to the executive report (executive-report.pdf): the source-to-target mapping, the per-engine target schemas, and the query groups.
Call rates: execution counts are divided by each statement's own observed window (163 statements), the server uptime (0 statements), or an assumed 24 hours (0 statements); costs assume that rate runs continuously.
Executive summary
Recommendation: move the wordpress MySQL database to three purpose-built AWS services in three waves, with every target schema designed. Wave 1 moves it to Aurora MySQL, which keeps 66.3% of the queries on the same engine family. Wave 2 puts ElastiCache in front of 38 hot reads, 82.1% of calls. Wave 3 moves 33.7% of the queries to DynamoDB. The projected cost of the full modernization is $1,300 per month at AWS Price List on-demand prices for us-east-1, retrieved 2026-11-04. No current cost was collected for the source database, so the plan claims no saving against it.
Risk: overall risk is medium, with 9 open medium-severity risks. Two drive it, both in wave 3. Reads on Aurora MySQL use copies that change data capture (CDC) keeps current from DynamoDB, so test that replication. A group of queries was settled by a close score between Aurora MySQL and DynamoDB, so confirm where those queries run before wave 3 starts.
Decision: approve wave 1. It moves the database 1:1 to Aurora MySQL, the same engine family as MySQL, and keeps its current data model. The cutover is your responsibility. Approving wave 1 accepts its 2 design review warnings, listed in the roadmap. Approving wave 2 accepts its 3 design review warnings, listed in the roadmap. Approving wave 3 accepts its 4 design review warnings, listed in the roadmap.
Engine and query assignments are produced deterministically. No language model decides which engine a table or query goes to. The executive summary is written over already-computed results and cannot change a recommendation.
Target engines
| Engine | Role | Workload | Scope | Why |
|---|---|---|---|---|
| Aurora MySQL | Retained | 66.3% | source schema retained | 75% mean fit across 90 queries (16 rated tables; 1 query without table-level evidence), kept relational by aggregation, full-text or pattern search and multi-table joins (42 of all 108 routed); 18 more queries are pinned (utility), not in the mean. Schema design: 22 target tables, 108 in-scope access patterns. |
| DynamoDB | Migration target | 33.7% | 20 source tables served: 19 migrate, 1 kept current by CDC | 86% mean fit across 55 queries (20 rated tables), led by key-value lookups (15 of 55). Schema design: 17 target tables, 48 in-scope access patterns. |
| ElastiCache | Cache layer | 38 designed cached reads · 82.1% of calls | 31 key designs | Cache layer for 38 designed cached reads (82.1% of calls), mostly point lookups, cache-aside in front of the engines that own these reads, in the order the wave plan gives, which stay the system of record; 37% mean cache fit across 38 cached reads (17 rated tables). Schema design: 31 key designs, 34 in-scope access patterns. These reads total 1289.35 calls/s, above the 1 calls/s hot-read floor. |
| Total | 100% | 19 tables migrate |
Queries moved: 55 of 163 queries move to a new engine (a migration target or a search read model); the rest stay on the engine that runs them today.
Distinct query patterns: 163 queries in 149 distinct query patterns. Queries that read or write the same rows the same way (the same tables, filters, sort order, row limit and operation, where an insert, an update, a delete and an upsert are four operations, and for a count or total the same grouping) are one query pattern, whatever columns they return. 11 of the patterns are made by more than one query (25 queries in all).
Aurora MySQL is retained as the relational core (source-compatible, no migration). The migration moves the 19 tables assigned to DynamoDB. In the Scope column, “served” is the source tables a migration target’s queries read. The tables it owns migrate, and the Total counts only those. A table another engine of the same wave owns moves to that engine. A table an engine outside the wave owns stays there and is kept current by CDC from it, as in the wave plan. These counts are about reads; Sources of truth and replicas below lists where each written table's writes land and which engines hold copies of it.
Workload fit: how closely this engine's capabilities match the access patterns of the queries routed to it. It is not a probability that the migration will succeed.
Cache fit: how closely the cache layer's capabilities match the reads it fronts. The cache layer owns no queries, so this is not a workload fit and is not compared with the owning engines' figures.
Cost
Full-modernization estimate: all waves done, every kept engine running.
- Projected monthly (target): $1,300.45
- Scenario at the measured rate: the rate window is not representative (under a day; short against the server's uptime; counted from a reset or a restart; well above the server's own rate), so the costs and the rate-driven risks assume that window's load runs all day, every day. Collect again over a longer window (at least 7 days of usual load, without resetting the statement statistics first) for figures that represent normal traffic.
- List prices: AWS Price List, us-east-1 on-demand, retrieved 2026-11-04
| Engine | Role | Est. monthly | Sized for |
|---|---|---|---|
| Aurora MySQL | Retained | $497.25 | 108 queries, 647.74 calls/s, plus 27 tables no query reads |
| DynamoDB | Migration target | $618.61 | 55 queries, 923.66 calls/s |
| ElastiCache | Cache layer | $184.59 | 38 cached reads, 1,289.35 calls/s, also billed on their owners |
| Total | $1,300.45 |
Assumptions: On-demand capacity mode for all target databases; Does not include data transfer, backups, or global tables; Reads the cache layer fronts are also billed on their owner engines, as if every one missed the cache (conservative); 27 source tables no in-scope query reads (<0.01 GB) are stored on Aurora MySQL, where wave 1 moves them; The DynamoDB figure includes $122.12/mo for the design's 5 global secondary indexes at on-demand prices: $0.05 of storage (each index's item count times its projected item size plus 100 bytes of index overhead per item) and $122.07 of index writes (one for each put or delete whose item may set the index's keys, two for an update that changes an index key or does not say what it changes, one for an update that changes only a projected attribute, billed at the standard rate per 1 KB of the projected item, on average load with the collected rows per call, an average of exactly zero counted as one row). Index reads are not added, since each is one of its query's reads and already priced, and the free tier is left out; DynamoDB reads are priced eventually consistent, except transactions, which are priced at transactional rates..
Assumptions
- Growth: 5× (default), shown as a separate what-if scenario. The costs and risks in this report use the collected traffic.
- Peak: not measured (the collection has no CloudWatch metrics covering 7 to 14 days): the rates are used as measured (default).
- Rate window: execution counts are divided by each statement's own observed window (163 statements), the server uptime (0 statements), or an assumed 24 hours (0 statements); costs assume that rate runs continuously; the windows run from 17.4 minutes to 28 minutes (half the calls counted over 27.4 minutes or less), between 2026-11-06 11:35 and 2026-11-06 12:03 (the server's clock); a short window right after a statistics reset overstates traffic, and a fixed divisor (the server uptime or an assumed 24 hours) can bias either way (collected).
- Rate window check: not representative: half the calls were counted over 27.4 minutes or less, under a day, so the window covers no full daily cycle; that window is 27.4 minutes on a server up 198.6 days; 162 of 163 statements were first seen within 5 minutes of 2026-11-06 11:35: their counts started together, after a statistics reset or a restart; the measured rate, 1,571.4 calls/s, is 206× the server's own 7.63 statements/s over its uptime of 198.6 days (the server counts a procedure call once, its statements each, so a workload of stored routines can reach this without a burst) (collected).
- Region and prices: us-east-1, on-demand prices from the AWS Price List retrieved 2026-11-04 (default).
- Growth scenario: 1× $1,300.45/mo (the collected traffic), 5× $3,774.37/mo (the default growth), 10× $6,866.77/mo; a what-if only, not part of the costs and risks in this report.
- Busiest estimated partition key value (reads), share of its limit: 1× 0.15%, 5× 0.76%, 10× 1.5%; that key value can take 656× its collected traffic before it reaches its limit.
Estimates from public on-demand list prices for the stated Region. Check them with your own pricing in the AWS Pricing Calculator (https://calculator.aws/).
Migration map (23 tables: 19 migrate, 1 kept current by CDC, 3 stay on Aurora MySQL)
Each table has one owner, as in the wave plan: the engine that takes its writes; a table no query writes stays on the plan's relational engine, or on the source database when the plan has none. A cache never owns a table. Every other engine that reads a table reads a copy kept current from its owner via CDC. Also read by names those engines; Cached by names the cache in front of the table's reads. Migrate and kept current by CDC are as Target engines above defines them; Migrate counts the same tables as its Total.
Of the 23 mapped tables, DynamoDB owns 19 and Aurora MySQL owns 4; 20 tables are also read by another engine through CDC replicas; 17 tables are cached by ElastiCache.
| Source table | Owner | Also read by | Cached by | Target | Pattern | Workload fit |
|---|---|---|---|---|---|---|
wordpress.wp_actionscheduler_actions |
DynamoDB | Aurora MySQL | ElastiCache | wp_actionscheduler_actions |
separate | 91 |
wordpress.wp_actionscheduler_groups |
Aurora MySQL | — | ElastiCache | wp_actionscheduler_groups |
- | 87 |
wordpress.wp_actionscheduler_logs |
DynamoDB | Aurora MySQL | — | wp_actionscheduler_logs |
separate | 93 |
wordpress.wp_commentmeta |
DynamoDB | Aurora MySQL | ElastiCache | wp_comments |
- | 77 |
wordpress.wp_comments |
DynamoDB | Aurora MySQL | ElastiCache | wp_comments |
item_collection | 88 |
wordpress.wp_options |
DynamoDB | Aurora MySQL | ElastiCache | wp_options |
separate | 91 |
wordpress.wp_postmeta |
DynamoDB | Aurora MySQL | ElastiCache | wp_posts |
- | 80 |
wordpress.wp_posts |
DynamoDB | Aurora MySQL | ElastiCache | wp_posts |
item_collection | 87 |
wordpress.wp_term_relationships |
DynamoDB | Aurora MySQL | ElastiCache | wp_term_relationships |
identifying_relationship | 90 |
wordpress.wp_term_taxonomy |
DynamoDB | Aurora MySQL | ElastiCache | wp_term_taxonomy |
separate | 89 |
wordpress.wp_termmeta |
DynamoDB | Aurora MySQL | ElastiCache | wp_termmeta |
identifying_relationship | 92 |
wordpress.wp_terms |
Aurora MySQL | — | ElastiCache | wp_terms |
relational_table | 84 |
wordpress.wp_usermeta |
DynamoDB | Aurora MySQL | ElastiCache | wp_usermeta |
- | 82 |
wordpress.wp_users |
DynamoDB | Aurora MySQL | ElastiCache | wp_users |
separate | 90 |
wordpress.wp_wc_admin_notes |
Aurora MySQL | — | — | wp_wc_admin_notes |
relational_table | 65 |
wordpress.wp_wc_customer_lookup |
DynamoDB | Aurora MySQL | ElastiCache | wp_wc_customer_lookup |
item_collection | 91 |
wordpress.wp_wc_product_meta_lookup |
DynamoDB | Aurora MySQL | — | wp_wc_product_meta_lookup |
- | 83 |
wordpress.wp_wc_reserved_stock |
DynamoDB | Aurora MySQL | — | wp_wc_reserved_stock |
identifying_relationship | 89 |
wordpress.wp_wc_tax_rate_classes |
Aurora MySQL | DynamoDB | ElastiCache | wp_wc_tax_rate_classes:all (ElastiCache design) |
string | 66 |
wordpress.wp_woocommerce_api_keys |
DynamoDB | Aurora MySQL | — | wp_woocommerce_api_keys |
separate | 90 |
wordpress.wp_woocommerce_downloadable_product_permissions |
DynamoDB | Aurora MySQL | — | wp_woocommerce_downloadable_product_permissions |
identifying_relationship | 86 |
wordpress.wp_woocommerce_order_itemmeta |
DynamoDB | Aurora MySQL | ElastiCache | wp_woocommerce_order_items |
- | 83 |
wordpress.wp_woocommerce_order_items |
DynamoDB | Aurora MySQL | ElastiCache | wp_woocommerce_order_items |
- | 85 |
Close calls (29 queries), plus 5 exact ties a rule settled
These queries went to an engine that scores less than 5 points above another engine the plan keeps, which could serve them too. The assessment decides for you; you can move them yourself.
| Went to | Could run on | Close calls | Gap (points) | Settled ties | Compared on group mean | First queries |
|---|---|---|---|---|---|---|
| Aurora MySQL | DynamoDB | 19 | 1 to 4 | 5 | 0 | 22726c84, 2389b8a0, 4f2e27db, 5ae79e00, 7a3e82dd (+19 more) |
| DynamoDB | Aurora MySQL | 10 | 1 to 4.5 | 0 | 7 | 0278ef63, 1c1e3f90, 65f7884e, 126679dc, 2c0093ed (+5 more) |
A query compared on its co-dependency group's mean score moves with its group. First queries shows the first characters of each query id. The Assessment Data (JSON) lists every close call, with its full query id and both scores, under query_traces.close_calls.
To move any of them, change its engine in the assignment review (a query in a co-dependency group moves with its group); that writes a new assignment version and redesigns only the engines it touches. The results page's Why this engine trace shows both scores for each query.
Cache layer (ElastiCache)
ElastiCache fronts 38 designed cached reads (82.1% of calls, 1,289.4 calls/s). ElastiCache is recommended as a cache-aside layer in front of the engine that owns each cached read: the cached reads are hot, small and can be rebuilt from that engine, so it stays the system of record and the cache is sized for the hot reads, not the whole dataset. ElastiCache for Valkey 9.0 and later offers durability on Multi-AZ clusters; this assessment does not use it as a system of record today. It fronts Aurora MySQL with no data migration of its own, and keeps serving the same reads as their owners move in later waves: invalidation follows the engine that owns each cached table.
- Owner engines: Aurora MySQL 26, DynamoDB 12
- Read shapes: point lookup 37, small reference read 1
- Eligible: a SELECT at ≥ 1 calls/s returning ≤ 100 rows on average, with a point, top-N, session or small reference-read shape, on tables that are not write-heavy.
- 39 cache candidates, 38 designed; it stays on its owner engine.
Adoption paths (2)
The relational step moves the whole database, a cache step fronts reads and moves no data, and every other step moves one group of queries to one engine; each wave of the roadmap holds one or more steps. A step runs in stages, each with its own gate. A stage moves units: a unit is the smallest set of queries and tables that moves on its own, and each step's pilot is its first unit to move.
Each path is this plan stopped after one of its steps: it takes steps 1 to that step, and the queries of every later step stay on Aurora MySQL. The staged full target is the default; an earlier stop is a smaller end state.
Each path's cost adds up its engines' estimates for the queries that path places on each of them, so the relational engine is estimated for every query the path leaves on it.
| Path | Queries off Aurora MySQL | Monthly cost | Against the relational move only | Open critical and high risks |
|---|---|---|---|---|
| Relational move only | 0 | $681.84 | - | 0 |
| Full target, the default | 55 | $1,300.45 | $618.61 more | 0 |
Relational move only
- Engines: Aurora MySQL, ElastiCache
- Steps 1 to 2, the last on ElastiCache in wave 2; 2 stages, 2 gates
- Queries: 163 on Aurora MySQL
- Monthly cost: $681.84
- First gate: Full load complete and replication in progress from MySQL to Aurora MySQL for 50 tables. The cutover is your responsibility.
Full target, the default
- Engines: Aurora MySQL, ElastiCache, DynamoDB
- Steps 1 to 3, the last on DynamoDB in wave 3; 4 stages, 4 gates
- Queries: 108 on Aurora MySQL, 55 on DynamoDB
- 20 tables read through a CDC copy, in one direction or the other:
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_logs,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_termmeta,wordpress.wp_usermeta,wordpress.wp_users,wordpress.wp_wc_customer_lookup,wordpress.wp_wc_product_meta_lookup,wordpress.wp_wc_reserved_stock,wordpress.wp_wc_tax_rate_classes,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions,wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - 19 CDC copies back to an earlier engine, for reads that stay there
- Monthly cost: $1,300.45, $618.61 more than the relational move only
- First gate: Stated under "Relational move only" above. The cutover is your responsibility.
One step
- The same end state in one step, in place of 3 steps and 4 stages.
- Its one gate holds all 4 stage gates.
- It needs none of the 19 CDC copies back to an earlier engine that the staged form carries.
These checks describe the shape of this workload. Not every check holds, so it does not suit a one-step move.
| Check | Observed | At most | Holds |
|---|---|---|---|
| No open critical or high risk | 0 | 0 | yes |
| At most one purpose-built target | 1 | 1 | yes |
| No stage that needs a CDC copy back to an earlier engine | 1 | 0 | no |
To take the full target in one step, adopt the target schemas in "Target schemas by engine" below directly.
Migration roadmap (3 waves)
This is one suggested adoption path. To modernize in one step instead, adopt the full target in "Adoption paths" above directly.
The cutover is your responsibility.
A wave is suggested only when its design exists, was reviewed, and no check holds it: an open critical or high risk on it, an access pattern its design leaves unserved, a design review that did not approve its design, a plan that costs more than the source while the wave carries an open performance risk, or a wave 1 that is not suggested yet.
Wave 1: Move to Aurora MySQL
- Engines: Aurora MySQL
- all 163 queries at cutover; 108 (66.3%) remain on Aurora MySQL at the end
- 50 source tables and views:
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_claims,wordpress.wp_actionscheduler_groups,wordpress.wp_actionscheduler_logs,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_links,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_termmeta,wordpress.wp_terms,wordpress.wp_usermeta,wordpress.wp_users,wordpress.wp_wc_admin_note_actions,wordpress.wp_wc_admin_notes,wordpress.wp_wc_category_lookup,wordpress.wp_wc_customer_lookup(+30 more) - Moves from: the source MySQL database
- Why: The whole source database (MySQL 8.0.45) moves 1:1 to Aurora MySQL: same engine family. The collector reports engine and version only; feature compatibility is not assessed here. 108 queries (66.3%) remain on Aurora MySQL once later waves have moved their share; later waves move subsets of these 50 tables and views out of Aurora MySQL. 23 of these tables and views are mapped to a target engine in the migration map; later waves move 19 of the 50 off Aurora MySQL, and the other 31 stay on Aurora MySQL: 4 migration-map rows that do not migrate and 27 tables and views the map does not list.
- Gate before the next wave: Schema and data parity validated against the source database. Later waves move from Aurora MySQL, not from the source MySQL database. The cutover is your responsibility. Decommissioning the source database is your responsibility. Close RISK-005 and RISK-006 before this gate (source objects' database logic and design trade-offs).
- Readiness: Suggested, with 2 design review warnings to accept: Aurora MySQL wp_actionscheduler_actions (query
59163c18): Add a concrete index for query59163c18to the delta instead of leaving it as an EXPLAIN suggestion: an index onwp_actionscheduler_actions(hook(163),s; Aurora MySQL wp_posts.idx_posts_type_date (query 12f856ea): Correct the trade-off foridx_posts_type_date: query ``12f856ea`` usesSQL_CALC_FOUND_ROWS, so MySQL still reads every row of the post type to computeFOUND_. If you do not accept them: revise the Aurora MySQL schema design in your modernization session and review it again. - Step 1 (1 stage):
| Stage | What it moves | Units | Queries | Gate |
|---|---|---|---|---|
| 1 | the whole database at once | 1 | 163 | Stated under "Relational move only" above. The cutover is your responsibility. |
- Why each step sits where it does:
-
Step 1 comes first: it moves the whole database to Aurora MySQL, 163 queries and 50 tables, and both later steps build on the tables it carries.
-
Table classes:
- 3 tables stay on Aurora MySQL, read by no other engine
- 1 table stays on Aurora MySQL and is read as a CDC copy by another engine
- 27 tables are read by no collected query
- The other tables move in a later step.
Wave 2: Cache hot reads with ElastiCache
- Engines: ElastiCache
- 38 queries (82.1% of calls)
- Fronts: Aurora MySQL
- Why: 38 hot reads (82.1% of calls), cache-aside in front of Aurora MySQL in wave 2, then DynamoDB once wave 3 moves these reads: no data migration, fully reversible. It takes the read pressure off before the data migrations that follow. These reads belong to queries that move in wave 1 (Aurora MySQL) and wave 3 (DynamoDB); this share overlaps the owner shares, which alone sum to 100%.
- Gate before the next wave: Cache hit rate and invalidation verified against Aurora MySQL. Close RISK-003, RISK-004 and RISK-008 before this gate (dropped cache reads, unsupported cache patterns and design trade-offs).
- Readiness: Suggested, with 3 design review warnings to accept: ElastiCache wp_posts:name:{post_name}:{type_set}:{post_status}, wp_posts:title:{title_digest}:{post_type}:{status_set}, wp_posts:{post_parent}:children:{post_type}:{status_set}, wp_posts:{post_parent}:child_ids:{post_type}:{post_status}, wp_actionscheduler_actions:hook:{hook}:{status_set}: Collapse each family of query-parameter variants into one hash per hash tag, with the variant as the field:
wp_posts:name:{post_name}with fields likepage,p; ElastiCache EC-AP-32 (wp_posts:slug:{post_name}:{post_type}, query fcfd82fa): Serve the pre-save slug uniqueness check from the owner database, and drop thewp_posts:slug:{post_name}:{post_type}key, or keep the key only for read paths ; ElastiCache wp_options:{option_name} (EC-AP-1, EC-AP-5) and every fixed TTL in the design: Add a random jitter of about 10% to everyEXPIRE(for example 3240 to 3960 seconds for the one-hour keys) and have the miss path use a short per-key lock (SE. If you do not accept them: revise the ElastiCache schema design in your modernization session and review it again. - Step 2 (1 stage):
| Stage | What it moves | Units | Queries | Gate |
|---|---|---|---|---|
| 2a | the reads the cache fronts | 1 | 38 | Cache hit rate and invalidation verified against Aurora MySQL for the 38 cached reads. |
- Why each step sits where it does:
- Step 2 puts ElastiCache in front of 38 reads, 82.1% of calls, and moves no data; it caches 17 tables that step 1 carries on Aurora MySQL.
Wave 3: Move key-value and point-lookup queries to DynamoDB
- Engines: DynamoDB
- 55 queries (33.7% of queries)
- 20 source tables (19 to move):
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_logs,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_termmeta,wordpress.wp_usermeta,wordpress.wp_users,wordpress.wp_wc_customer_lookup,wordpress.wp_wc_product_meta_lookup,wordpress.wp_wc_reserved_stock,wordpress.wp_wc_tax_rate_classes,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions,wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - 1 table group:
- 55 queries, independent: the wave's source tables above
- Moves from: Aurora MySQL
- 1 table kept current by CDC from their owner:
wordpress.wp_wc_tax_rate_classes-> Aurora MySQL (CDC) - Why: 55 key-value and point-lookup queries (33.7% of queries) across 1 table group, where co-dependent tables move together: the pattern DynamoDB fits best, and the smallest-blast-radius data migration available once the cache wave has absorbed the read pressure.
- Gate before the next wave: Dual-write/backfill validated and query parity confirmed per table group. All 19 tables moving to DynamoDB (listed under "Sources of truth and replicas" below) stay dual-read by Aurora MySQL queries, which remain on Aurora MySQL; DynamoDB owns them, so keep the Aurora MySQL copy current from DynamoDB via CDC. 1 query read 1 table (the tables kept current by CDC above) Aurora MySQL owns (wave 1) and keeps owning; keep a DynamoDB copy of them current via CDC. Close RISK-001, RISK-002, RISK-007 and RISK-009 before this gate (tables kept current by CDC, close calls, design trade-offs and redesigns routing relies on).
- Readiness: Suggested, with 4 design review warnings to accept: DynamoDB
DDB-AP-4,DDB-AP-17,DDB-AP-18(wp_posts and wp_comments META items): Add a FilterExpression meta_key = :meta_key to the Query in each of the three patterns (with Select=COUNT the filter is applied before counting), or escape '#' ; DynamoDBDDB-AP-20: Set gsi_name to PostmetaByMetaId onDDB-AP-20(or split it into the index Query and the BatchWriteItem so each step carries its own table and index); DynamoDB wp_woocommerce_api_keys.last_access (DDB-AP-41, query0452bed2): Give wp_woocommerce_api_keys a sort key (record_type) and keep last_access on its own small ACCESS item (PK key_id, SK ACCESS, about 50 bytes) next to the KEY i; DynamoDBDDB-AP-44(queries611079ff,ee8b8e21), USER_ID_SENTINEL condition: Match the source REPLACE INTO: when the transaction is cancelled on the sentinel condition (read the holder with ReturnValuesOnConditionCheckFailure=ALL_OLD), r. If you do not accept them: revise the DynamoDB schema design in your modernization session and review it again. - Step 3 (2 stages):
| Stage | What it moves | Units | Queries | Gate |
|---|---|---|---|---|
| 3a | reads on a CDC copy | 1 | 1 | CDC from Aurora MySQL to DynamoDB is within the reads' staleness tolerance, and the read returns the same rows on DynamoDB. |
| 3c | ownership with a CDC copy back to an earlier engine | 19 | 54 | Backfill complete and query parity confirmed for 19 tables (wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_logs, wordpress.wp_commentmeta, wordpress.wp_comments, wordpress.wp_options, wordpress.wp_postmeta, wordpress.wp_posts, wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_termmeta, wordpress.wp_usermeta, wordpress.wp_users, wordpress.wp_wc_customer_lookup, wordpress.wp_wc_product_meta_lookup, wordpress.wp_wc_reserved_stock, wordpress.wp_woocommerce_api_keys, wordpress.wp_woocommerce_downloadable_product_permissions, wordpress.wp_woocommerce_order_itemmeta, wordpress.wp_woocommerce_order_items); CDC from DynamoDB to Aurora MySQL carries the 139 reads that stay there, within their tolerance. |
- Why each step sits where it does:
- Step 3 moves 55 queries and 19 tables to DynamoDB, 58.8% of calls, in wave 3 of the roadmap, with its 20 tables copied across and 35 write statements that change engine; no step but step 1 shares its tables.
| Step | How tightly tied | Shared by many parts | Tables copied across | Write statements that change engine | Share of calls it moves |
|---|---|---|---|---|---|
| Step 3 | 0.66 | 0 | 20 | 35 | 58.8% |
- Units of each stage, the first 10:
| Stage | Pilot | Queries | Owns | Reads a copy of | CDC copy back to | How tightly tied | Shared by many parts | What the move touches |
|---|---|---|---|---|---|---|---|---|
| 3a | Pilot | 1 | - | wordpress.wp_wc_tax_rate_classes |
- | 1 | 0 | 1 |
| 3c | - | 1 | wordpress.wp_actionscheduler_logs |
- | Aurora MySQL (1 read) | 0.5 | 0 | 2 |
| 3c | - | 1 | wordpress.wp_woocommerce_downloadable_product_permissions |
- | Aurora MySQL (1 read) | 0.5 | 0 | 2 |
| 3c | - | 1 | wordpress.wp_wc_reserved_stock |
- | Aurora MySQL (1 read) | 0.5 | 0 | 2 |
| 3c | - | 2 | wordpress.wp_woocommerce_api_keys |
- | Aurora MySQL (1 read) | 0.33 | 0 | 3 |
| 3c | - | 3 | wordpress.wp_wc_customer_lookup |
- | Aurora MySQL (1 read) | 0.25 | 0 | 4 |
| 3c | - | 3 | wordpress.wp_termmeta |
- | Aurora MySQL (2 reads) | 0.4 | 0 | 5 |
| 3c | - | 1 | wordpress.wp_wc_product_meta_lookup |
- | Aurora MySQL (4 reads) | 0.8 | 0 | 5 |
| 3c | - | 1 | wordpress.wp_actionscheduler_actions |
- | Aurora MySQL (4 reads) | 0.8 | 0 | 5 |
| 3c | - | 4 | wordpress.wp_commentmeta |
- | Aurora MySQL (3 reads) | 0.43 | 0 | 7 |
| 3c | - | 7 | wordpress.wp_options |
- | Aurora MySQL (1 read) | 0.12 | 0 | 8 |
| 3c | +9 more units |
Sources of truth and replicas (19 written tables)
Each table's writes land on one engine, its source of truth. An engine that serves the table's reads keeps a copy current from it via CDC, so those reads are eventually consistent.
| Table | Source of truth | CDC to replicas | Reads on a replica |
|---|---|---|---|
wordpress.wp_posts |
DynamoDB | DynamoDB → Aurora MySQL | 44 |
wordpress.wp_term_taxonomy |
DynamoDB | DynamoDB → Aurora MySQL | 15 |
wordpress.wp_postmeta |
DynamoDB | DynamoDB → Aurora MySQL | 12 |
wordpress.wp_comments |
DynamoDB | DynamoDB → Aurora MySQL | 9 |
wordpress.wp_users |
DynamoDB | DynamoDB → Aurora MySQL | 9 |
wordpress.wp_term_relationships |
DynamoDB | DynamoDB → Aurora MySQL | 8 |
wordpress.wp_usermeta |
DynamoDB | DynamoDB → Aurora MySQL | 8 |
wordpress.wp_woocommerce_order_itemmeta |
DynamoDB | DynamoDB → Aurora MySQL | 8 |
wordpress.wp_woocommerce_order_items |
DynamoDB | DynamoDB → Aurora MySQL | 7 |
wordpress.wp_actionscheduler_actions |
DynamoDB | DynamoDB → Aurora MySQL | 4 |
wordpress.wp_wc_product_meta_lookup |
DynamoDB | DynamoDB → Aurora MySQL | 4 |
wordpress.wp_commentmeta |
DynamoDB | DynamoDB → Aurora MySQL | 3 |
wordpress.wp_termmeta |
DynamoDB | DynamoDB → Aurora MySQL | 2 |
wordpress.wp_actionscheduler_logs |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
wordpress.wp_options |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
wordpress.wp_wc_customer_lookup |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
wordpress.wp_wc_reserved_stock |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
wordpress.wp_woocommerce_api_keys |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
wordpress.wp_woocommerce_downloadable_product_permissions |
DynamoDB | DynamoDB → Aurora MySQL | 1 |
Every replicated table above has this risk. Eventually consistent: a read on a replica reads a copy kept current from the table's owner (its source of truth) via CDC, so it sees a write only after CDC applies it, behind by the replication lag; a read that must see its own write should read from the owner.
Target schemas by engine
Aurora MySQL (22 target objects, 108 access patterns)
| Target | Pattern | Source tables | GSIs |
|---|---|---|---|
wp_actionscheduler_actions |
relational_table | wordpress.wp_actionscheduler_actions |
0 |
wp_actionscheduler_groups |
relational_table | wordpress.wp_actionscheduler_groups |
0 |
wp_actionscheduler_logs |
relational_table | wordpress.wp_actionscheduler_logs |
0 |
wp_commentmeta |
relational_table | wordpress.wp_commentmeta |
0 |
wp_comments |
relational_table | wordpress.wp_comments |
0 |
wp_options |
relational_table | wordpress.wp_options |
0 |
wp_postmeta |
relational_table | wordpress.wp_postmeta |
0 |
wp_posts |
relational_table | wordpress.wp_posts |
0 |
wp_term_relationships |
relational_table | wordpress.wp_term_relationships |
0 |
wp_term_taxonomy |
relational_table | wordpress.wp_term_taxonomy |
0 |
wp_termmeta |
relational_table | wordpress.wp_termmeta |
0 |
wp_terms |
relational_table | wordpress.wp_terms |
0 |
wp_usermeta |
relational_table | wordpress.wp_usermeta |
0 |
wp_users |
relational_table | wordpress.wp_users |
0 |
wp_wc_admin_notes |
relational_table | wordpress.wp_wc_admin_notes |
0 |
wp_wc_customer_lookup |
relational_table | wordpress.wp_wc_customer_lookup |
0 |
wp_wc_product_meta_lookup |
relational_table | wordpress.wp_wc_product_meta_lookup |
0 |
wp_wc_reserved_stock |
relational_table | wordpress.wp_wc_reserved_stock |
0 |
wp_woocommerce_api_keys |
relational_table | wordpress.wp_woocommerce_api_keys |
0 |
wp_woocommerce_downloadable_product_permissions |
relational_table | wordpress.wp_woocommerce_downloadable_product_permissions |
0 |
wp_woocommerce_order_itemmeta |
relational_table | wordpress.wp_woocommerce_order_itemmeta |
0 |
wp_woocommerce_order_items |
relational_table | wordpress.wp_woocommerce_order_items |
0 |
Application-layer notes (2):
- Zero date default on
wp_posts, wp_comments, wp_users, wp_wc_admin_notes, wp_wc_reserved_stock, wp_woocommerce_downloadable_product_permissions: TheseNOT NULLdate columns had aDEFAULT '0000-00-00 00:00:00'that Aurora MySQL refuses under its defaultsql_mode(NO_ZERO_DATE,STRICT_TRANS_TABLES), so the target DDL has no default. WordPress and WooCommerce write these columns explicitly on insert; check any custom plugin that inserts rows without them. Replace stored zero dates with a real date (for example the row's_gmttwin or1970-01-01 00:00:01) in the data load, or the load fails on those rows. The nullablewp_actionscheduler_*date columns default to NULL instead, and Action Scheduler reads NULL the same way it read the zero date. - Deprecated sql on
SQL_CALC_FOUND_ROWS: WordPress list queries (12f856ea,daf3cf85,4f645105,f4fcc7f6,d4bf16d6) useSQL_CALC_FOUND_ROWSandFOUND_ROWS(). Aurora MySQL 3 (MySQL 8.0 compatible) still runs them but marks them deprecated. Keep them for the migration, and track the WordPress core change that replaces them with a separateCOUNT(*)query.
Column defaults changed or dropped (17): set these by hand where the application relies on them.
- DEFAULT '0000-00-00 00:00:00' is a MySQL zero date, which Aurora MySQL does not accept, so the target DDL uses DEFAULT NULL instead. Rows holding a zero date need a real date or NULL when the data is migrated. Columns:
wp_actionscheduler_actions.last_attempt_gmt,wp_actionscheduler_actions.last_attempt_local,wp_actionscheduler_actions.scheduled_date_gmt,wp_actionscheduler_actions.scheduled_date_local,wp_actionscheduler_logs.log_date_gmt,wp_actionscheduler_logs.log_date_local. - DEFAULT '0000-00-00 00:00:00' is a MySQL zero date, which Aurora MySQL does not accept, and the column is NOT NULL, so the target DDL drops it; set it by hand. Rows holding a zero date need a real date when the data is migrated. Columns:
wp_comments.comment_date,wp_comments.comment_date_gmt,wp_posts.post_date,wp_posts.post_date_gmt,wp_posts.post_modified,wp_posts.post_modified_gmt,wp_users.user_registered,wp_wc_admin_notes.date_created,wp_wc_reserved_stock.expires,wp_wc_reserved_stock.timestamp,wp_woocommerce_downloadable_product_permissions.access_granted.
ER diagram omitted (22 target objects); see the table above.
DynamoDB (17 target objects, 48 access patterns)
| Target | Pattern | Source tables | GSIs |
|---|---|---|---|
wp_comments |
item_collection | wordpress.wp_comments, wordpress.wp_commentmeta |
0 |
wp_posts |
item_collection | wordpress.wp_posts, wordpress.wp_postmeta |
1 |
wp_users |
separate | wordpress.wp_users |
0 |
wp_actionscheduler_logs |
separate | wordpress.wp_actionscheduler_logs |
0 |
wp_wc_customer_lookup |
item_collection | wordpress.wp_wc_customer_lookup |
0 |
wp_wc_reserved_stock |
identifying_relationship | wordpress.wp_wc_reserved_stock |
0 |
wp_wc_tax_rate_classes |
separate | wordpress.wp_wc_tax_rate_classes |
0 |
wp_woocommerce_api_keys |
separate | wordpress.wp_woocommerce_api_keys |
1 |
wp_woocommerce_downloadable_product_permissions |
identifying_relationship | wordpress.wp_woocommerce_downloadable_product_permissions |
0 |
wp_actionscheduler_actions |
separate | wordpress.wp_actionscheduler_actions |
0 |
wp_term_relationships |
identifying_relationship | wordpress.wp_term_relationships |
0 |
wp_term_taxonomy |
separate | wordpress.wp_term_taxonomy |
0 |
wp_termmeta |
identifying_relationship | wordpress.wp_termmeta |
1 |
wp_usermeta |
identifying_relationship | wordpress.wp_usermeta |
0 |
wp_wc_product_meta_lookup |
separate | wordpress.wp_wc_product_meta_lookup |
0 |
wp_woocommerce_order_items |
item_collection | wordpress.wp_woocommerce_order_items, wordpress.wp_woocommerce_order_itemmeta |
0 |
wp_options |
separate | wordpress.wp_options |
2 |
ER diagram omitted (17 target objects); see the table above.
ElastiCache (31 target objects, 34 access patterns)
| Target | Pattern | Source tables | GSIs | TTL(s) |
|---|---|---|---|---|
wp_options:{option_name} |
hash | wordpress.wp_options |
0 | 3,600 |
wp_postmeta:{post_id} |
string | wordpress.wp_postmeta |
0 | 3,600 |
wp_postmeta:{post_id}:ids |
hash | wordpress.wp_postmeta |
0 | 3,600 |
wp_posts:{ID} |
string | wordpress.wp_posts |
0 | 3,600 |
wp_posts:{post_parent}:children:{post_type}:{status_set} |
string | wordpress.wp_posts |
0 | 900 |
wp_posts:{post_parent}:child_ids:{post_type}:{post_status} |
string | wordpress.wp_posts |
0 | 900 |
wp_posts:title:{title_digest}:{post_type}:{status_set} |
string | wordpress.wp_posts |
0 | 300 |
wp_posts:name:{post_name}:{type_set}:{post_status} |
string | wordpress.wp_posts |
0 | 900 |
wp_posts:slug:{post_name}:{post_type} |
set | wordpress.wp_posts |
0 | 900 |
wp_posts:related:{params_digest} |
string | wordpress.wp_posts, wordpress.wp_term_relationships, wordpress.wp_term_taxonomy |
0 | 3,600 |
wp_term_relationships:{object_id}:terms:{taxonomy} |
string | wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_terms |
0 | 3,600 |
wp_term_relationships:{object_id}:terms:{taxonomy}:order:{meta_key} |
string | wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_terms, wordpress.wp_termmeta |
0 | 3,600 |
wp_term_relationships:{object_id}:tt_ids |
set | wordpress.wp_term_relationships |
0 | 3,600 |
wp_terms:{term_id} |
string | wordpress.wp_terms, wordpress.wp_term_taxonomy |
0 | 3,600 |
wp_term_taxonomy:{taxonomy}:terms |
string | wordpress.wp_term_taxonomy, wordpress.wp_terms |
0 | 3,600 |
wp_term_taxonomy:{taxonomy}:by_name |
hash | wordpress.wp_term_taxonomy, wordpress.wp_terms |
0 | 3,600 |
wp_term_taxonomy:{taxonomy}:by_slug |
hash | wordpress.wp_term_taxonomy, wordpress.wp_terms |
0 | 3,600 |
wp_termmeta:{term_id} |
string | wordpress.wp_termmeta |
0 | 3,600 |
wp_termmeta:{term_id}:ids |
hash | wordpress.wp_termmeta |
0 | 3,600 |
wp_woocommerce_order_itemmeta:{order_item_id} |
string | wordpress.wp_woocommerce_order_itemmeta |
0 | 600 |
wp_woocommerce_order_itemmeta:{order_item_id}:ids |
hash | wordpress.wp_woocommerce_order_itemmeta |
0 | 600 |
wp_woocommerce_order_items:{order_id} |
string | wordpress.wp_woocommerce_order_items |
0 | 600 |
wp_usermeta:{user_id} |
string | wordpress.wp_usermeta |
0 | 900 |
wp_usermeta:{user_id}:ids |
hash | wordpress.wp_usermeta |
0 | 900 |
wp_users:{ID} |
hash | wordpress.wp_users |
0 | 900 |
wp_comments:{comment_ID} |
hash | wordpress.wp_comments |
0 | 3,600 |
wp_commentmeta:{comment_id} |
string | wordpress.wp_commentmeta |
0 | 3,600 |
wp_actionscheduler_actions:{action_id} |
string | wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_groups |
0 | 60 |
wp_actionscheduler_actions:hook:{hook}:{status_set} |
string | wordpress.wp_actionscheduler_actions |
0 | 30 |
wp_wc_tax_rate_classes:all |
string | wordpress.wp_wc_tax_rate_classes |
0 | 3,600 |
wp_wc_customer_lookup:{user_id}:customer_id |
string | wordpress.wp_wc_customer_lookup |
0 | 3,600 |
Unsupported patterns (1):
- Query
aa03c203(FOUND_ROWS()) reads no table: it returns the row count of the previousSQL_CALC_FOUND_ROWSquery on the same database connection, so it has no cacheable key. The query stays on its owner database. When the child id list ofEC-AP-22comes from the cache, the application takes the total from that array's length and skips this call (queryaa03c203).
Migration notes:
- transaction Cache-aside reads with negative caching: Every read tries the cache first and, on a miss, reads the owner database and fills the key with its TTL. Lookups that most calls answer with no row (options, post titles, child posts, customer ids) store a miss marker with a 300-second TTL so repeated misses stay off the owner.
- transaction Invalidation after owner writes: After each owner write listed in the cache invalidation section commits, the application deletes the listed keys. Keys of one entity share a hash tag, so one
DELclears them in one call. - constraint Loaded-hash and loaded-set markers: Hashes and sets that answer existence checks are filled whole from the owner with a
_loadedfield or a0member, and the application treats a missing field or member in a loaded key as a definite no and a missing key as a cache miss.
ER diagram omitted (31 target objects); see the table above.
Query groups (48 of 83)
Queries grouped by the access patterns that serve them. The other 35 groups run only on Aurora MySQL; Queries on Aurora by table lists their queries per table. A cache layer group lists the reads it fronts as cached reads; their owner's group serves them. These are not the assignment's 2 co-dependency groups (tables that must move together).
| Group | Engines | Access patterns | Source queries | Design RPS |
|---|---|---|---|---|
| Option lookups | DynamoDB | 3 | 3 | 615.49 |
| API key management | DynamoDB | 2 | 2 | 93.45 |
| Post reads | DynamoDB | 3 | 3 | 75.18 |
| Post meta writes | DynamoDB | 3 | 5 | 33.48 |
| Option writes | DynamoDB | 3 | 4 | 29.75 |
| Order item meta writes | DynamoDB | 2 | 2 | 15.46 |
| User lookups | DynamoDB | 2 | 2 | 11.56 |
| User meta writes | DynamoDB | 2 | 2 | 9.65 |
| Tax rate class reads | DynamoDB | 1 | 1 | 9.15 |
| Term meta reads | DynamoDB | 2 | 2 | 5.9 |
| Post writes | DynamoDB | 2 | 5 | 5.52 |
| Comment reads | DynamoDB | 2 | 2 | 2.56 |
| Product lookup writes | DynamoDB | 1 | 1 | 1.99 |
| Comment writes | DynamoDB | 2 | 2 | 1.69 |
| Comment meta reads | DynamoDB | 3 | 3 | 1.66 |
| Order item writes | DynamoDB | 1 | 1 | 1.46 |
| Term relationship reads | DynamoDB | 1 | 1 | 1.34 |
| Term meta writes | DynamoDB | 1 | 1 | 1.22 |
| Customer lookup writes | DynamoDB | 1 | 2 | 1.21 |
| Customer lookup reads | DynamoDB | 1 | 1 | 1.21 |
| User writes | DynamoDB | 2 | 2 | 0.89 |
| Scheduled action writes | DynamoDB | 1 | 1 | 0.8 |
| Action scheduler log writes | DynamoDB | 1 | 1 | 0.8 |
| Download permission writes | DynamoDB | 1 | 1 | 0.74 |
| Reserved stock writes | DynamoDB | 1 | 1 | 0.7 |
| Comment meta writes | DynamoDB | 1 | 1 | 0.39 |
| Term taxonomy writes | DynamoDB | 1 | 1 | 0.14 |
| Term taxonomy reads | DynamoDB | 1 | 1 | 0.14 |
| Term relationship writes | DynamoDB | 1 | 1 | 0.14 |
| wordpress.wp_options | ElastiCache | 2 | 2 cached reads | 0 |
| wordpress.wp_postmeta | ElastiCache | 2 | 3 cached reads | 0 |
| wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_terms | ElastiCache | 2 | 3 cached reads | 0 |
| wordpress.wp_posts | ElastiCache | 7 | 7 cached reads | 0 |
| wordpress.wp_woocommerce_order_itemmeta | ElastiCache | 2 | 3 cached reads | 0 |
| wordpress.wp_usermeta | ElastiCache | 2 | 3 cached reads | 0 |
| wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_groups | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_termmeta, wordpress.wp_terms | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_term_taxonomy, wordpress.wp_terms | ElastiCache | 4 | 4 cached reads | 0 |
| wordpress.wp_woocommerce_order_items | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_users | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_wc_tax_rate_classes | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_termmeta | ElastiCache | 2 | 2 cached reads | 0 |
| wordpress.wp_commentmeta | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_comments | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_term_relationships | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_wc_customer_lookup | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_actionscheduler_actions | ElastiCache | 1 | 1 cached read | 0 |
| wordpress.wp_posts, wordpress.wp_term_relationships, wordpress.wp_term_taxonomy | ElastiCache | 1 | 1 cached read | 0 |
Queries on Aurora by table
Aurora MySQL (108 queries)
| Table | Queries | Calls/s | Reason |
|---|---|---|---|
| wordpress.wp_postmeta | 6 | 222.9 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL |
| wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_terms | 3 | 81.82 | co-dependency group → Aurora MySQL |
| wordpress.wp_woocommerce_order_itemmeta | 4 | 81.51 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL |
| wordpress.wp_posts | 28 | 68.73 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL; reality check: consolidated from OpenSearch → Aurora MySQL |
| wordpress.wp_usermeta | 4 | 40.38 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL (scores tie with DocumentDB; Aurora MySQL is the source-compatible relational engine) |
| wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_groups | 2 | 27.13 | reality check: consolidated from DocumentDB → Aurora MySQL |
| wordpress.wp_term_taxonomy, wordpress.wp_terms | 8 | 26.44 | co-dependency group → Aurora MySQL; highest fit for Aurora MySQL |
| wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_termmeta, wordpress.wp_terms | 1 | 19.67 | co-dependency group → Aurora MySQL |
| wordpress.wp_actionscheduler_actions | 2 | 19.39 | highest fit for Aurora MySQL (scores tie with DocumentDB; Aurora MySQL is the source-compatible relational engine) |
| wordpress.wp_woocommerce_order_items | 2 | 13.24 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL |
| wordpress.wp_options | 1 | 9.62 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_woocommerce_api_keys | 1 | 8.5 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_comments | 7 | 4 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL; reality check: consolidated from DocumentDB → Aurora MySQL |
| wordpress.wp_posts, wordpress.wp_term_relationships, wordpress.wp_term_taxonomy, wordpress.wp_terms | 1 | 3.16 | co-dependency group → Aurora MySQL |
| wordpress.wp_users | 5 | 2.72 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine; highest fit for Aurora MySQL; reality check: consolidated from DocumentDB → Aurora MySQL |
| wordpress.wp_posts, wordpress.wp_term_relationships, wordpress.wp_term_taxonomy | 2 | 2.5 | co-dependency group → Aurora MySQL |
| wordpress.wp_postmeta, wordpress.wp_posts | 4 | 1.9 | co-dependency group → Aurora MySQL |
| wordpress.wp_usermeta, wordpress.wp_users | 4 | 1.02 | reality check: consolidated from DocumentDB → Aurora MySQL |
| wordpress.wp_posts, wordpress.wp_woocommerce_order_itemmeta, wordpress.wp_woocommerce_order_items | 3 | 0.86 | co-dependency group → Aurora MySQL |
| wordpress.wp_actionscheduler_groups | 1 | 0.8 | reality check: consolidated from DocumentDB → Aurora MySQL |
| wordpress.wp_actionscheduler_logs | 1 | 0.8 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_woocommerce_downloadable_product_permissions | 1 | 0.74 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_termmeta | 1 | 0.73 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_wc_product_meta_lookup | 1 | 0.7 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_wc_reserved_stock | 1 | 0.7 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_wc_admin_notes | 1 | 0.64 | highest fit for Aurora MySQL |
| wordpress.wp_wc_customer_lookup | 1 | 0.61 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_postmeta, wordpress.wp_posts, wordpress.wp_woocommerce_order_items | 1 | 0.56 | co-dependency group → Aurora MySQL |
| wordpress.wp_posts, wordpress.wp_wc_product_meta_lookup | 3 | 0.49 | highest fit for Aurora MySQL |
| wordpress.wp_commentmeta | 1 | 0.27 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
| wordpress.wp_commentmeta, wordpress.wp_comments | 2 | 0.24 | co-dependency group → Aurora MySQL |
| wordpress.wp_posts, wordpress.wp_term_relationships | 1 | 0.14 | co-dependency group → Aurora MySQL |
| wordpress.wp_postmeta, wordpress.wp_posts, wordpress.wp_woocommerce_order_itemmeta, wordpress.wp_woocommerce_order_items | 1 | 0.12 | co-dependency group → Aurora MySQL |
| No source table | 1 | 4.15 | highest fit for Aurora MySQL |
| Utility and session statements | 2 | 0.57 | administration or metadata statement, kept on Aurora MySQL as the source-compatible engine |
Risk posture
- Overall risk: medium
- The rate-driven risks are a scenario at the measured rate too: the rate window is not representative (under a day; short against the server's uptime; counted from a reset or a restart; well above the server's own rate).
- Open risks: 9 (9 medium)
- Resolved by the assignment: 4 (1 high, 3 medium)
Overall risk is the highest severity among the open risks; risks the assignment resolved do not count.
Risk register (9)
DynamoDB
- RISK-001 · Medium · data consistency · Wave 3: 104 queries read 20 tables on an engine that does not own them. 103 of them read a copy of 19 tables that CDC keeps current from DynamoDB across 1 engine pair, so a read there can miss a recent write. The other table is written by no captured query; CDC keeps its copy current too, and the copy changes only when something outside the captured workload writes the table.
- Mitigation: Before Wave 3 starts, set up CDC for each engine pair the sources of truth section lists, and send any read that must see its own write to its source of truth; set up CDC for the table no captured query writes, and check whether anything outside the captured workload writes it. Compare the row counts on both sides. See the Wave 3 gate in the roadmap.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_logs,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships(+12 more) - RISK-002 · Medium · migration complexity · Wave 3: 29 queries were decided by less than 5 points, and 5 more were exact ties a routing rule settled, listed by engine pair under Close calls. A small change in the scores moves them.
- Mitigation: Confirm the engine for these queries in the assignment review before Wave 3 starts, using the close calls section; move any that fit the runner-up better.
- Affects:
wordpress.wp_actionscheduler_groups,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_taxonomy,wordpress.wp_terms,wordpress.wp_usermeta(+1 more) - RISK-007 · Medium · migration complexity · The DynamoDB schema design records 41 trade-offs to review, listed under Migration trade-offs in the engineering report.
- Mitigation: Review these trade-offs with the team that builds DynamoDB before Wave 3 starts, and test each one the application depends on.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_logs,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships(+12 more) - RISK-009 · Medium · migration complexity · Routing did not penalise DynamoDB for the frequent-full-scan finding the source shows on 1 query, because the design removes the read it is about (each query's evidence says how).
- Mitigation: Design this query in DynamoDB as each one's evidence says, and serve none of them as a scan. See the Wave 3 gate in the roadmap.
- Affects:
wordpress.wp_wc_tax_rate_classes - A whole read of a small reference table, which the design keeps as one item collection or caches.
ElastiCache
- RISK-003 · Medium · performance degradation · 1 read the plan meant to cache was dropped from the cache layer and goes to Aurora MySQL uncached.
- Mitigation: Load-test these reads on Aurora MySQL without the cache, or add a cache design that serves them. See the Wave 2 gate in the roadmap.
- RISK-004 · Medium · migration complexity · The cache design marks 1 pattern unsupported; the engineering report lists each one with its workaround under Target schemas by engine.
- Mitigation: Serve this pattern from its owner engine or add it to the cache design, as the design's workaround for each says. See the Wave 2 gate in the roadmap.
- RISK-008 · Medium · migration complexity · The ElastiCache schema design records 10 trade-offs to review, listed under Migration trade-offs in the engineering report.
- Mitigation: Review these trade-offs with the team that builds ElastiCache before Wave 2 starts, and test each one the application depends on.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy(+6 more)
Aurora MySQL
- RISK-005 · Medium · operational risk · 19 source objects need application code on Aurora MySQL: 17 column defaults; 1 deprecated sql; 1 zero date default. The schema carries them over without the database logic.
- Mitigation: Move the logic of each one into the application, as the schema design's note for it says. See the Wave 1 gate in the roadmap.
- RISK-006 · Medium · migration complexity · The Aurora MySQL schema design records 5 trade-offs to review, listed under Migration trade-offs in the engineering report.
- Mitigation: Review these trade-offs with the team that builds Aurora MySQL before Wave 1 starts, and test each one the application depends on.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_actionscheduler_logs,wordpress.wp_comments,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_usermeta,wordpress.wp_users,wordpress.wp_wc_admin_notes(+4 more)
Resolved by the assignment (4)
- Medium · Aurora MySQL (kept) · Kept on Aurora MySQL because of a utility or DDL statement and multi-table joins on this table.
- Resolved because Aurora MySQL is also required for a utility or DDL statement and multi-table joins on this table, so keeping it there is a deliberate routing decision, not an open risk; revisit DynamoDB for this table's simple key-value reads in a later wave if those other queries are retired or move too.
- Affects:
wordpress.wp_termmeta - Medium · Aurora MySQL → DynamoDB · Moved to DynamoDB: Table with no foreign keys and no join participation: all queries are single-table CRUD. Aurora serves single-table CRUD natively and uses none of its relational features for it (Amazon Aurora User Guide, What is Amazon Aurora).
- Resolved because the Aurora MySQL analysis recommended DynamoDB for these queries and the assignment moved them there.
- Affects:
wordpress.wp_actionscheduler_logs,wordpress.wp_options,wordpress.wp_termmeta,wordpress.wp_wc_customer_lookup,wordpress.wp_wc_reserved_stock,wordpress.wp_wc_tax_rate_classes,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions - Medium · Aurora MySQL → DynamoDB · Moved to DynamoDB: Table accessed by at most 2 distinct query patterns, all single-table, all by primary key or single column filter. Aurora serves these reads natively and its query optimizer adds nothing to them (Amazon Aurora User Guide, What is Amazon Aurora).
- Resolved for the same reason as the first Aurora MySQL → DynamoDB risk above.
- Affects:
wordpress.wp_actionscheduler_logs,wordpress.wp_wc_reserved_stock,wordpress.wp_wc_tax_rate_classes,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions - High · DynamoDB → Aurora MySQL · GROUP BY, HAVING, or an aggregate over rows no key anchors or over a join (one key's COUNT or SUM is a Query on that key, not this pattern). DynamoDB has no server-side aggregation: a Query or Scan can only count the items it reads (Select = COUNT), so a grouped result needs the application layer, pre-computed aggregates or a separate analytics store (Amazon DynamoDB API Reference, Query).
- Resolved because the queries run as SQL on Aurora MySQL.
- Affects:
wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_terms,wordpress.wp_users(+3 more)
Mitigation strategies
- After wave 1 (Aurora MySQL): compare the latency of 163 queries with their source baseline (weighted average 1.33 ms) and check the engine sustains the collected traffic of 1,571.4 requests/s before starting wave 2.
- After wave 2 (ElastiCache): track the cache hit rate for the 38 hot reads it fronts on Aurora MySQL (82.1% of calls, 1,289.4 calls/s) and compare their latency with the source before starting wave 3.
- After wave 3 (DynamoDB): compare the latency of 55 queries with their source baseline (weighted average 0.76 ms) and check the engine sustains the collected traffic of 923.7 requests/s.
Migration trade-offs (60)
Aurora MySQL
Indexes (2)
- Added composite indexes on (
post_id,meta_key), (user_id,meta_key) and (order_item_id,meta_key) to the three metadata tables, next to the existing single-column indexes.: The busiest point lookups (queries3dbc7d9a,eb232c6c,22cb9563, together about 118 calls per second) read only the matching row instead of every metadata row of the post, user or order item. Each insert and update on those tables now maintains one more index, which costs little at the write rates measured. - Affects:
wp_postmeta,wp_usermeta,wp_woocommerce_order_itemmeta - Added an index on
wp_posts(post_type,post_date,ID) for the admin post lists that exclude statuses with!=and sort by date.: Query12f856eaexamines about 47,000 rows to return 20 because the existingtype_status_dateindex cannot use a not-equal status filter. The new index reads posts of one type in date order and stops at the page size. It adds one index to maintain on each post write. - Affects:
wp_posts
Keys and data layout (1)
- No table is partitioned.: All tables together are under 300 MB and the largest has 910,705 rows, so a single Aurora MySQL cluster serves them from memory. Partitioning would change primary keys without a read benefit at this size.
- Affects:
wp_postmeta,wp_woocommerce_order_itemmeta
Data types (1)
- Date columns that defaulted to the MySQL zero date have no default (
NOT NULLcolumns) or default to NULL (nullable Action Scheduler columns) on Aurora MySQL.: Existing rows holding0000-00-00 00:00:00need a real date before or during the data load, and any code that relied on the zero-date default must write the column itself. WordPress core and WooCommerce already do. - Affects:
wp_actionscheduler_actions,wp_actionscheduler_logs,wp_comments,wp_posts,wp_users,wp_wc_admin_notes,wp_wc_reserved_stock,wp_woocommerce_downloadable_product_permissions
Operations (1)
- Report queries go to an Aurora Replica through the reader endpoint.: Sales and refund reports read data up to about 100 ms behind the writer (Aurora replica lag, visible in the
AuroraReplicaLagmetric). Dashboards show figures that are at most that far behind, and the storefront keeps the writer's full capacity. - Affects:
wp_postmeta,wp_posts,wp_woocommerce_order_itemmeta,wp_woocommerce_order_items
DynamoDB
Item and value size (5)
- The long text columns (post_content, post_content_filtered, post_title, post_excerpt, to_ping, pinged, comment_content and both meta_value columns) stay inline: the measured average rows are 757 bytes for posts, 446 for comments and 151 for post meta, against the 400 KB item limit.: A value that would take an item past 400 KB (a very large post body or serialized meta value) is stored in Amazon S3 with a pointer attribute on the item; every other value is read in the same request as its item.
- Affects:
wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_postmeta,wordpress.wp_posts - The nonces LONGTEXT column of
wp_woocommerce_api_keysstays inline as a string attribute: the table's measured avg_row_size_bytes is 52,429 against the 400 KB item limit, and the design counts the column at 1 KB.: A nonce list that grows past 400 KB makes the write fail; the application trims old nonces before it writes the item, or moves the list to Amazon S3 with a pointer attribute if it outgrows that limit. - Affects:
wordpress.wp_woocommerce_api_keys - The message TEXT column of
wp_actionscheduler_logsstays inline: the table's measured avg_row_size_bytes is 182 against the 400 KB item limit.: Each log entry is one item written for 2 write units at the schema's 1,188-byte size estimate; a message over 400 KB fails the write. - Affects:
wordpress.wp_actionscheduler_logs - Large text columns stay inline: meta_value in wp_usermeta (144-byte average row) and in wp_woocommerce_order_itemmeta (139 bytes), order_item_name (131 bytes), description in wp_term_taxonomy (3,495 bytes) and schedule and extended_args in wp_actionscheduler_actions (706 bytes) are all far below the 400 KB item limit; wp_termmeta has no rows to measure.: A single value above 400 KB fails its PutItem; the application stores such a value in Amazon S3 with a pointer attribute in the item.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_term_taxonomy,wordpress.wp_termmeta,wordpress.wp_usermeta,wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - option_value (LONGTEXT) stays inline in the item: the table's average row is 338 bytes against the 400 KB item limit.: A write whose value exceeds 400 KB is rejected by DynamoDB; the application stores such a value in Amazon S3 and keeps the object key in option_value with a marker, and reads it from S3 when the marker is present.
- Affects:
wordpress.wp_options
Generated IDs (4)
- The source's AUTO_INCREMENT ids for posts, post meta, comments, comment meta and users are generated by the application, and each insert is a conditional PutItem that fails when the key already exists.: The application needs an id source (an atomic counter item updated with ADD, or a reserved block of ids per writer); a collision makes the insert fail and retry with a new id instead of overwriting a row.
- Affects:
wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_users - The auto-increment ids log_id, customer_id, key_id and permission_id are generated by the application, and the log insert of query
b05af520carries attribute_not_exists(log_id) so a reused id fails instead of overwriting a log entry.: The application needs an id source (for example a counter item updated with an atomic ADD, or a time-ordered id) in place of MySQL AUTO_INCREMENT. - Affects:
wordpress.wp_actionscheduler_logs,wordpress.wp_wc_customer_lookup,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions - The auto-increment ids action_id, umeta_id, order_item_id and meta_id of order item meta are generated by the application on insert, and each new item's PutItem is conditional on the id not existing where a duplicate would overwrite a row.: Your application needs an id generator (a counter item updated with an atomic ADD, or a Snowflake-style id) that keeps ids numeric and increasing, because the term meta, user meta and order item meta reads sort by them.
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_usermeta,wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - MySQL generated option_id with AUTO_INCREMENT; the application now generates it as a 64-bit time-ordered id (timestamp, worker and sequence bits) and writes it with if_not_exists(option_id, :new_id) in the upsert, so an existing option keeps its id.: Ids are unique by construction and are never reused, so no sentinel item guards them; they are no longer consecutive, which no captured query relies on.
- Affects:
wordpress.wp_options
Indexes (5)
- The KEYS_ONLY index PostmetaByMetaId on meta_id serves the delete of post meta by meta_id (query
596b8fed), which names no post_id; only META items carry meta_id, so post items stay out of the index.: Each post meta insert also writes the index, about 28.5 extra write units per second, for a delete that runs 0.0114 times per second; the index lags the table until DynamoDB applies each write to it, so a meta row inserted and deleted within that window is found by a retry of the delete. - Affects:
wordpress.wp_postmeta - ConsumerKeyIndex uses an INCLUDE projection of user_id, permissions, consumer_secret and nonces, which covers every column query
1794daedreturns, and leaves last_access out so the 85 updates per second of query0452bed2never write to the index.: Authentication needs no second read of the table, and the frequent last-access update costs 2 write units per call on the table only (about 170 write units per second in total). - Affects:
wordpress.wp_woocommerce_api_keys - Term meta is keyed by term_id with meta_id as the sort key, and the KEYS_ONLY index TermMetaByTermAndKey (partition key term_id and meta_key, sort key meta_id) serves the meta_id lookup (query
ee386e4a) and finds the items the key-scoped update (query3c5c8a79) changes.: Reading a term's meta in meta_id order (query50b46567) is one Query per term id in the IN list instead of the full table scans the source ran; the index returns only keys, so the lookup reads no base item and the update writes nothing to the index, because meta_value is not one of its keys. - Affects:
wordpress.wp_termmeta - The source primary key option_id stays reachable through the KEYS_ONLY index OptionsById, so another part of the design that reads an option by its id finds its option_name with one Query and then reads the item.: The index adds one small write (about 60 bytes) when an option is created or deleted, 12.80 write units per second at most; value updates do not touch it because option_id never changes.
- Affects:
wordpress.wp_options - The autoload read (query
413c99e4) is served by the OptionsByAutoload index, partitioned on autoload with option_name as sort key and option_value projected, so one Query returns the about 249 autoloaded options without a Scan or a base-table fetch.: autoload has few distinct values, so each value is one index partition: the read is 101.08 read units per second and the index writes 37.18 write units per second at design load, both under 4% of one partition key value's limit, so no shard suffix is needed. Every option write also writes the index (twice when the upsert changes autoload). - Affects:
wordpress.wp_options
Keys and data layout (11)
- Posts and their meta share one item collection in the
wp_poststable keyed by post_id: the post is the item with sort key POST and each meta row an item with sort key META#{meta_key}#{meta_id}.: A post read by ID stays a single GetItem, and every meta row of a post sits under the same key, so the meta update by post and key (queryea7778dband its pattern) is a Query on one partition instead of an index lookup on a 910,705-row table. - Affects:
wordpress.wp_postmeta,wordpress.wp_posts - The tables keep the source surrogate ids (post ID, comment ID, user ID) as partition keys: post_name, user_login and user_email have only non-unique indexes in the source, so none of them is proven unique enough to be a key.: Every lookup in this workload is by ID, and other parts of the design read these rows by the same IDs, so they keep working unchanged; a duplicate post slug or login cannot overwrite another row.
- Affects:
wordpress.wp_comments,wordpress.wp_posts,wordpress.wp_users - The meta sort key META#{meta_key}#{meta_id} groups a post's or comment's meta by key; a NULL meta_key becomes an empty segment (META##{meta_id}), and the meta-by-comment read (query
65f7884e) is sorted by meta_id in the application.: Reads by key are prefix Queries; the read of all a comment's meta returns about 9 items, so the sort in application code is cheap. - Affects:
wordpress.wp_commentmeta,wordpress.wp_postmeta - Comments and their meta share one item collection in the
wp_commentstable keyed by comment_id, with sort keys COMMENT and META#{meta_key}#{meta_id}.: The comment meta reads, count and insert all address one comment's partition; with 6,820 meta rows over 55,500 comments, each collection holds a few items. - Affects:
wordpress.wp_commentmeta,wordpress.wp_comments - The
wp_woocommerce_api_keystable stays keyed by key_id, and the consumer-key lookup of query1794daedruns on the ConsumerKeyIndex GSI, because the source's consumer_key index is not unique and a table key on it would let one PutItem overwrite another key's row.: API authentication reads an index instead of the table. ConsumerKeyIndex lags the table until DynamoDB applies each write to it; a key created in the admin screen authenticates once that write reaches the index, and a flow that must see it at once reads the base item with a strongly consistent GetItem by key_id. - Affects:
wordpress.wp_woocommerce_api_keys - Customer items stay keyed by the surrogate customer_id (CUSTOMER#{customer_id}): the natural candidate user_id is unique but nullable, since guest customers have no WordPress account, so it cannot be the table key.: Every customer, guest or registered, has one stable key; registered customers are also reachable by user_id through their sentinel item.
- Affects:
wordpress.wp_wc_customer_lookup - The 2 tax rate classes share one constant partition key (tax_rate_class_scope = ALL) with tax_rate_class_id as the sort key, so query
329367a2is one Query instead of a full table scan, and the application sorts the 2 items by name.: The list read costs 0.5 read units per call (about 4.6 read units per second in total), 0.15% of one key value's limit; slug stays unique with no sentinel because no in-scope write sets it. - Affects:
wordpress.wp_wc_tax_rate_classes wp_woocommerce_downloadable_product_permissionsis keyed order_id plus permission_id andwp_wc_reserved_stockorder_id plus product_id, so the key-scoped writes of queries2264704dand77cd1ad7find their items with a Query on order_id and then update or delete each item by key.: Neither write scans its table; each costs one Query plus one write per matching item. A read of a download permission by permission_id alone has no key in this design and needs a GSI on permission_id if one is added later.- Affects:
wordpress.wp_wc_reserved_stock,wordpress.wp_woocommerce_downloadable_product_permissions - Order item meta rows are stored in the same item collection as their order item, keyed by order_item_id with sort keys ITEM and META#{meta_id}, because every meta write in scope (queries
2caa2be1and4b856e29) addresses meta by order_item_id.: One Query on an order item returns the item and its meta (about 9 meta rows per item: 473,830 meta rows over 48,460 items); a meta update reads that collection, filters on meta_key and updates each match by its key. - Affects:
wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - Every table keeps the source's surrogate id in its key: no natural attribute in this part qualifies, since sku in wp_wc_product_meta_lookup is nullable and not unique, and the unique (term_id, taxonomy) pair of wp_term_taxonomy is not what its queries look up by (they read by term_taxonomy_id).: Other parts of the design that read these rows by their source id reach them with GetItem or Query on the same key; no unique attribute is inserted or changed by a write here, so no sentinel item is needed (the term count update leaves term_id and taxonomy unchanged).
- Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_wc_product_meta_lookup - The wp_options table is keyed on option_name instead of the surrogate option_id, because every in-scope read and write addresses an option by its name and option_name is unique, NOT NULL and has one distinct value per row (55,527).: Lookups, updates, upserts and deletes are single-item calls on the table key, and DynamoDB enforces one item per option name without a sentinel; renaming an option is a delete and a put, which WordPress never does in the captured workload.
- Affects:
wordpress.wp_options
Query translation (7)
- The comment meta count by comment and meta key (query
0278ef63) is a Query with Select=COUNT on the comment partition and the META#{meta_key}# prefix, with no counter item.: The count reads about one item at 0.12 requests per second, so a counter maintained on every write would cost more than it saves. - Affects:
wordpress.wp_commentmeta - Reads by an IN list of IDs (posts, comments, users) become BatchGetItem calls of up to 100 keys, and the comment meta read by an IN list of comment IDs becomes one Query per comment run in parallel.: The application issues the batch call, retries any UnprocessedKeys it returns, and merges the results; the lists measured here average 8 to 9 IDs.
- Affects:
wordpress.wp_commentmeta,wordpress.wp_comments,wordpress.wp_posts,wordpress.wp_users - The post read by ID and post type (query
3440484f) is a GetItem by post_id with the post_type check done in the application.: The read costs the same as a lookup by ID, and the dropped ORDER BY had one row to sort. - Affects:
wordpress.wp_posts - The source REPLACE INTO of queries
611079ffandee8b8e21becomes a Put of the whole CUSTOMER item, which replaces the previous version in place, inside the sentinel transaction.: The upsert keeps its replace semantics without the delete and insert pair MySQL runs for REPLACE (which is why the source reports 1.77 affected rows per call). - Affects:
wordpress.wp_wc_customer_lookup - User meta updates by user_id and meta_key (query
41b2f2d1) are a Query on the user's partition with a filter on meta_key, then an UpdateItem per match, with no secondary index.: A user has about 19 meta rows (the source examines 18.8 per update) at 144 bytes each, so the Query reads under 4 KB, half a read unit, and an index on meta_key would add a write to every one of the 8.4 inserts per second. - Affects:
wordpress.wp_usermeta - The scheduled-action insert (query
7ead756f) is an INSERT ... SELECT guarded by a subquery that tests only a bound value, so the application evaluates that guard and then writes a PutItem conditional on attribute_not_exists(action_id).: The write stays a single-item PutItem; the source table's status and date indexes have no in-scope reader here, so no secondary index is created for them in this table. - Affects:
wordpress.wp_actionscheduler_actions - REPLACE INTO wp_wc_product_meta_lookup (query
d72966f8) becomes an unconditional PutItem on product_id, which replaces the whole item in one write where MySQL deletes and reinserts the row.: The write costs one write unit per call at 618 bytes per item, and every PutItem carries all fourteen columns, as the source statement does. - Affects:
wordpress.wp_wc_product_meta_lookup
Consistency and freshness (3)
- The customer-by-user lookup of query
3b1641a7is a strongly consistent GetItem on the user's sentinel item, which carries customer_id, so no GSI on user_id is needed.: The lookup that precedes each customer upsert sees the latest mapping and costs 1 read unit per call; there is no index to keep current. - Affects:
wordpress.wp_wc_customer_lookup - TermMetaByTermAndKey lags the wp_termmeta table until DynamoDB applies each write to it; a caller that must see a meta row written in the same request reads the term's base items with a strongly consistent Query on term_id.: The meta_id lookup and the update's item search read the index eventually consistent, which matches the source workload: no term meta insert runs in this part of the workload.
- Affects:
wordpress.wp_termmeta - OptionsByAutoload lags the wp_options table until DynamoDB applies each write to it, so the autoload Query can return an option's previous value; a caller that must see the latest value reads the item with a strongly consistent GetItem on option_name.: Per-option reads by name stay current when read strongly consistent at 1 read unit per item instead of 0.5; the update returns the new item with ReturnValues=ALL_NEW, so a read right after a write needs no extra call.
- Affects:
wordpress.wp_options
Uniqueness and conditional writes (3)
- No sentinel items are written for users: the source has no unique index besides the primary key on
wp_users(user_email and user_login are non-unique indexes), so DynamoDB enforces uniqueness on user_id only.: Login and email uniqueness stays the WordPress application check it is in the source; two concurrent sign-ups with the same login can both succeed, as they can in the source schema. - Affects:
wordpress.wp_users - The unique user_id of
wp_wc_customer_lookupis enforced with a USER_ID_SENTINEL item (USER#{user_id}) in the same item collection, written with the CUSTOMER item in one TransactWriteItems whose Put carries attribute_not_exists(customer_lookup_key) OR customer_id = :customer_id.: Two customers can never claim one WordPress user. The upsert of queries611079ffandee8b8e21writes 2 items (1 for a guest with no user_id, 3 when the user_id changes and the old sentinel is deleted), each billed twice as a transaction: about 6 write units per call, 7.3 write units per second in total. The transaction stays far below the 100-item limit and holds only in the Region that runs it on a global table. - Affects:
wordpress.wp_wc_customer_lookup - The UPDATE by option_name carries attribute_exists(option_name), so it changes only an option that exists, as the SQL UPDATE does, while the INSERT ... ON DUPLICATE KEY UPDATE becomes an unconditional UpdateItem that creates or overwrites.: An update of a missing option (most of the 71% of updates that change no row in the source) fails with a conditional check error that the application treats as zero rows affected; a failed conditional write still consumes one write unit.
- Affects:
wordpress.wp_options
Data types (2)
- DATETIME columns become ISO 8601 strings; the source default '0000-00-00 00:00:00' has no valid ISO form and is written as an empty string.: Dates sort as text in the same order as in the source, and code that tests for the zero date tests for the empty string instead.
- Affects:
wordpress.wp_comments,wordpress.wp_posts,wordpress.wp_users - DATETIME and TIMESTAMP columns become ISO 8601 strings, and the MySQL zero date '0000-00-00 00:00:00' is written as an absent attribute.: Dates sort correctly as strings; code that tested for the zero date tests for a missing attribute instead.
- Affects:
wordpress.wp_actionscheduler_logs,wordpress.wp_wc_customer_lookup,wordpress.wp_wc_reserved_stock,wordpress.wp_woocommerce_api_keys,wordpress.wp_woocommerce_downloadable_product_permissions
Capacity and hot keys (1)
- Capacity uses the measured request rates (peak not measured, so the peak factor is 1) and the measured average row sizes; the busiest key load is the
wp_poststable's 54.6 read units per second in total, spread over 24,276 posts.: No table or index comes near the 3,000 read or 1,000 write units per second that one partition key value allows, so no sharding is needed. - Affects:
wordpress.wp_postmeta,wordpress.wp_posts
ElastiCache
Keys and data layout (1)
- Each metadata table (post, user, order item, term, comment meta) is cached as one JSON array per parent id, read in full and deleted in full on any write to that parent.: A post's 26 meta rows come back in one round trip, matching how WordPress loads them, and a single meta write deletes the whole array, so the next read refills it from the owner database.
- Affects:
wordpress.wp_commentmeta,wordpress.wp_postmeta,wordpress.wp_termmeta,wordpress.wp_usermeta,wordpress.wp_woocommerce_order_itemmeta
Query translation (3)
- The object-to-terms joins are denormalized into one array per object and taxonomy, holding each term's id and name in name order.: The three-table join that runs about 80 times a second becomes one key read per object and taxonomy. A term rename has no captured write, so a cached array shows the old name order for at most the one-hour TTL unless the admin edit deletes the taxonomy keys.
- Affects:
wordpress.wp_term_relationships,wordpress.wp_term_taxonomy,wordpress.wp_termmeta,wordpress.wp_terms - IN-list queries (posts, post meta, user meta, order item meta, terms, comment meta) become one pipelined
GETper id, because the per-entity hash tags put the ids in different slots.: A list of nine posts is one network round trip of nine commands. A singleMGETacross those keys is refused with aCROSSSLOTerror in cluster mode, so the client library pipelines them instead. - Affects:
wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_terms FOUND_ROWS()(queryaa03c203) is not cached: it reads no table and returns the row count of the previous query on the same connection.: The call stays on the owner database. When the child id list ofEC-AP-22comes from the cache, the application takes the total from that array's length and skips this call.- Affects:
wordpress.wp_posts
Consistency and freshness (3)
- Every cached key is cleared by the application after the owner write commits, and every key carries a TTL as the fallback bound.: After a write the cached value stays until the application deletes its key, and for at most its TTL (60 seconds for scheduled actions, 10 to 15 minutes for orders, users and child post lists, one hour for options, posts, terms and comments) if that delete fails. A read that must see the write before then reads the owner database, which serves every cache miss.
- Affects:
wordpress.wp_comments,wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts,wordpress.wp_usermeta,wordpress.wp_users,wordpress.wp_woocommerce_order_itemmeta,wordpress.wp_woocommerce_order_items - Lookups that return no row in most calls (option names at 0.31 rows a call, post titles and child posts at zero, post meta existence at 0.04) cache a miss marker with a 300-second TTL.: Repeated lookups for missing options and posts stop reaching the owner database. A row created on the owner shows for these lookups when the write's invalidation deletes the marker, and for at most 300 seconds if that delete fails.
- Affects:
wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts - The related-products query (query
4b79d7a8) is cached as its result list, keyed by a digest of its parameters, with expiry as its only invalidation.: Its result depends on the term links of every candidate post, and no single write names the cached lists it changes, so a related-products list reflects term and status changes after at most its one-hour TTL. - Affects:
wordpress.wp_posts,wordpress.wp_term_relationships,wordpress.wp_term_taxonomy
Uniqueness and conditional writes (1)
- The slug check before a post save (query
fcfd82fa) and the pending-action check before an action is scheduled (query06584926) are served from the cache, with the insert that changes each answer deleting its key.: A post or action inserted on the owner shows in these checks once the write's invalidation deletes the key. The check and the insert are separate statements on the owner database too, so two concurrent saves can pass the same check there as well. Status updates by the queue runner are not in the captured writes, so the pending-action list lags them for at most its 30-second TTL; code that needs the committed answer reads the owner database. - Affects:
wordpress.wp_actionscheduler_actions,wordpress.wp_posts
Capacity and hot keys (1)
- The cached working set is about 300 MB across about 500,000 keys at full fill, the largest being post rows (about 100 MB) and post meta arrays (about 63 MB).: The set fits the planned cache with room to spare, and per-entity hash tags spread the hottest key families (options at about 529 reads a second) across slots, so no slot nears its throughput limit.
- Affects:
wordpress.wp_options,wordpress.wp_postmeta,wordpress.wp_posts
Operations (1)
- The cached user rows hold password hashes and activation keys, and cached user meta holds session tokens, because the source queries return every column.: The cache holds credential material, so it runs with encryption in transit and at rest and with access control (IAM authentication or user access strings) limited to the application.
- Affects:
wordpress.wp_usermeta,wordpress.wp_users
Reality check
- Consolidated 15 queries from DocumentDB → Aurora MySQL: DocumentDB provides no unique capabilities over Aurora MySQL. No saving is claimed: DocumentDB does not run today; it was a candidate this plan considered and does not recommend.
- Consolidated 4 queries from DocumentDB → DynamoDB: DocumentDB provides no unique capabilities over DynamoDB. DocumentDB does not run today, so no saving is claimed.
- Consolidated 1 query from OpenSearch → Aurora MySQL: OpenSearch provides no unique capabilities over Aurora MySQL. No saving is claimed: OpenSearch was never justified by the workload. None of its first-assignment queries clear the real-search-depth plus traffic-or-result-size floor a standing deployment needs, so no infrastructure cost was ever justified for it.
- Recommended pattern: Event-Driven Sync. Use database change streams or event logs to propagate changes between databases asynchronously. Each database maintains its own optimized representation of the data.
Appendix: per-query routing decisions (21 queries)
The routing record traces all 163 queries from their first assignment to their final engine. Each query below changed engine after its first assignment, was tied at some step, or was placed by an override or a listed rule (20 changed engine after the first assignment, 1 tied at some step (0 still open)).
The other 142 queries stayed on the engine their first assignment chose, placed by:
- highest score: 88 queries
- write group: one source of truth: 24 queries
- co-dependency group: 20 queries
- tie settled by source compatibility: 10 queries
Queries whose trace reads the same (same path, steps, scores and reason) share one entry: 14 entries below cover 21 queries.
A step marked "engine consolidated away" moved its query for the reason given under "Migration trade-offs" (Reality check).
0278ef630aad35db79d780cd92b66d45a9ef35980cfef327f7603fb84f92c510 on wordpress.wp_commentmeta: moved from DocumentDB to DynamoDB
SELECT COUNT ( * ) FROM wp_commentmeta WHERE meta_key = ? AND comment_id = ?
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (80), ahead of DynamoDB (77).
- Scores: Aurora MySQL 76; DocumentDB 80; DynamoDB 77; ElastiCache: missing a capability the query needs; OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to DynamoDB (80 to 77).
- Final engine: DynamoDB (77), as of version 2.
- Runner-up: Aurora MySQL was next at 76, 1 point behind DynamoDB (77).
19e8085f9593fd708942f6f18f918808f01597be3dd562297646e785e583b4a2 on wordpress.wp_comments: moved from DocumentDB to Aurora MySQL
SELECT SQL_CALC_FOUND_ROWS wp_comments . comment_ID FROM wp_comments WHERE ( comment_approved = ? ) AND commen…
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (75).
- Scores: Aurora MySQL 75; DocumentDB 78; DynamoDB: missing a capability the query needs; ElastiCache: missing a capability the query needs; OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 75).
- Final engine: Aurora MySQL (75), as of version 2.
- Runner-up: DynamoDB could not take the query: missing a capability the query needs.
2 queries: moved from DocumentDB to DynamoDB
Queries: 1c1e3f90, 65f7884e
Each of them has this trace; their full ids, tables and SQL are in the Assessment Data (JSON) and the UI's query history.
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (80), ahead of DynamoDB (77).
- Scores: Aurora MySQL 76; DocumentDB 80; DynamoDB 77; ElastiCache 46 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to DynamoDB (80 to 77).
- Final engine: DynamoDB (77), as of version 2.
- Runner-up: Aurora MySQL was next at 76, 1 point behind DynamoDB (77).
1da3b85858a9927d081eff8b87ba3c7309c5a07590628fd6de787e47ce4b792e on wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_groups: moved from DocumentDB to Aurora MySQL
SELECT a . * , g . slug AS group FROM wp_actionscheduler_actions a LEFT JOIN wp_actionscheduler_groups g…
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (83), ahead of Aurora MySQL (81).
- Scores: Aurora MySQL 81; DocumentDB 83; DynamoDB 75; ElastiCache 52 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (83 to 81).
- Final engine: Aurora MySQL (81), as of version 2.
- Runner-up: DynamoDB was next at 75, 6 points behind Aurora MySQL (81).
413c99e446984db35e1e4e8f3952ddb966d21a85a898e88235b61d26ea096e60 on wordpress.wp_options: moved from DocumentDB to DynamoDB
SELECT option_name , option_value FROM wp_options WHERE autoload = ?
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (77), ahead of DynamoDB (74).
- Scores: Aurora MySQL 54; DocumentDB 77; DynamoDB 74; ElastiCache 44 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to DynamoDB (77 to 74).
- Final engine: DynamoDB (74), as of version 2.
- Runner-up: Aurora MySQL was next at 54, 20 points behind DynamoDB (74).
4 queries: moved from DocumentDB to Aurora MySQL
Queries: 4ef12cb6, 4f645105, daf3cf85, f4fcc7f6
Each of them has this trace; their full ids, tables and SQL are in the Assessment Data (JSON) and the UI's query history.
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (76).
- Scores: Aurora MySQL 76; DocumentDB 78; DynamoDB: missing a capability the query needs; ElastiCache: missing a capability the query needs; OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 76).
- Final engine: Aurora MySQL (76), as of version 2.
- Runner-up: DynamoDB could not take the query: missing a capability the query needs.
4f2e27db25f4e21056244f37c0417b18eadcc826b5fd9b1a663c4fe91e126744 on wordpress.wp_comments: moved from DocumentDB to Aurora MySQL
SELECT comment_ID FROM wp_comments WHERE comment_post_ID = ? AND comment_parent = ? AND comment_approved != ?…
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (75).
- Scores: Aurora MySQL 75; DocumentDB 78; DynamoDB 74; ElastiCache 43 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 75).
- Final engine: Aurora MySQL (75), as of version 2.
- Runner-up: DynamoDB was next at 74, 1 point behind Aurora MySQL (75).
- Redesign key
wp_comments.comment_author: refused for an equality filter: a date, time, true/false, enum or category column, or one the statistics show low-cardinality. - Redesign key
wp_comments.comment_content: refused for an equality filter: a date, time, true/false, enum or category column, or one the statistics show low-cardinality.
59163c184972d1ec4ad95106a5fc20c95d19dd06d071f956bf50e0c51ce12bdf on wordpress.wp_actionscheduler_actions, wordpress.wp_actionscheduler_groups: moved from DocumentDB to Aurora MySQL
SELECT a . action_id FROM wp_actionscheduler_actions a LEFT JOIN wp_actionscheduler_groups g ON g . grou…
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (83), ahead of Aurora MySQL (81).
- Scores: Aurora MySQL 81; DocumentDB 83; DynamoDB: missing a capability the query needs; ElastiCache: missing a capability the query needs; OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (83 to 81).
- Final engine: Aurora MySQL (81), as of version 2.
- Runner-up: DynamoDB could not take the query: missing a capability the query needs.
4 queries: moved from DocumentDB to Aurora MySQL
Queries: 5ae79e00, 7a3e82dd, 8086e2e9, a423c74c
Each of them has this trace; their full ids, tables and SQL are in the Assessment Data (JSON) and the UI's query history.
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (75).
- Scores: Aurora MySQL 75; DocumentDB 78; DynamoDB 74; ElastiCache 43 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 75).
- Final engine: Aurora MySQL (75), as of version 2.
- Runner-up: DynamoDB was next at 74, 1 point behind Aurora MySQL (75).
68b75de2bd1bba434ddd42e76804623d41efa87a7a210df795c0459e548d083d on wordpress.wp_actionscheduler_groups: moved from DocumentDB to Aurora MySQL
SELECT group_id FROM wp_actionscheduler_groups WHERE slug = ?
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (84), ahead of Aurora MySQL (80).
- Scores: Aurora MySQL 80; DocumentDB 84; DynamoDB 78; ElastiCache 52 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (84 to 80).
- Final engine: Aurora MySQL (80), as of version 2.
- Runner-up: DynamoDB was next at 78, 2 points behind Aurora MySQL (80).
7bbaebf82fb7e67b8b3ffecae89c6bdfa7d64878141d173815fc371e94ffa39c on wordpress.wp_comments: moved from DocumentDB to Aurora MySQL
SELECT comment_approved FROM wp_comments WHERE comment_author = ? AND comment_author_email = ? AND comment_app…
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (75).
- Scores: Aurora MySQL 75; DocumentDB 78; DynamoDB 74; ElastiCache 43 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 75).
- Final engine: Aurora MySQL (75), as of version 2.
- Runner-up: DynamoDB was next at 74, 1 point behind Aurora MySQL (75).
- Redesign key
wp_comments.comment_author: refused for an equality filter: a date, time, true/false, enum or category column, or one the statistics show low-cardinality.
8c66eaee9125d49703cd068cdba72c305ac38bcbb8e1dab7f399e224cb40a7d6 on wordpress.wp_comments: moved from DocumentDB to Aurora MySQL
SELECT COUNT ( * ) FROM wp_comments WHERE comment_post_ID = ? AND comment_approved = ?
- Step 1, version 1 (first assignment, highest score): DocumentDB scored highest for this query (78), ahead of Aurora MySQL (75).
- Scores: Aurora MySQL 75; DocumentDB 78; DynamoDB 74; ElastiCache: missing a capability the query needs; OpenSearch 0
- Step 2, version 2 (engine consolidated away): Moved from DocumentDB to Aurora MySQL (78 to 75).
- Final engine: Aurora MySQL (75), as of version 2.
- Runner-up: DynamoDB was next at 74, 1 point behind Aurora MySQL (75).
d99618ea3724cae0b2ef0dda96a021dda2c50c6b3ba3847b9ccf307ad044ec67 on wordpress.wp_posts: moved from OpenSearch to Aurora MySQL
SELECT COUNT ( DISTINCTROW posts . id ) AS count , posts . post_date AS post_date FROM wp_posts AS posts…
- Step 1, version 1 (first assignment, highest score): OpenSearch scored highest for this query (82), ahead of Aurora MySQL (79).
- Scores: Aurora MySQL 79; DocumentDB 66; DynamoDB: missing a capability the query needs; ElastiCache: missing a capability the query needs; OpenSearch 82
- Step 2, version 2 (engine consolidated away): Moved from OpenSearch to Aurora MySQL (82 to 79).
- Final engine: Aurora MySQL (79), as of version 2.
- Runner-up: DynamoDB could not take the query: missing a capability the query needs.
- Redesign key
wp_posts.post_status: refused for an equality filter: a date, time, true/false, enum or category column, or one the statistics show low-cardinality.
1794daed36ce90ffb9eb06739fbec3cfb9bcf5edf81ee7ce3e74cce2ef520c26 on wordpress.wp_woocommerce_api_keys: stays on DynamoDB; settled tie
SELECT key_id , user_id , permissions , consumer_key , consumer_secret , nonces FROM wp_woocommerce_api_ke…
- Step 1, version 1 (first assignment, tie held for the customer's choice): DynamoDB tied with DocumentDB at 79; the engine already serving more of the settled workload holds it until the customer chooses.
- Scores: Aurora MySQL 54; DocumentDB 79; DynamoDB 79; ElastiCache 46 (cannot own a query that writes data (not used as a system of record in this plan)); OpenSearch 0
- Step 2, version 2 (tie settled): The tie with DocumentDB is settled: the query stays on DynamoDB.
- Final engine: DynamoDB (79), as of version 2.
- Runner-up: Aurora MySQL was next at 54, 25 points behind DynamoDB (79).
Assignments are deterministic. The complete machine-readable assessment is the Assessment Data (JSON) artifact.
Built from code commit 8f99214b1709.