{
  "apiVersion": "1.1",
  "schemaVersion": 1,
  "engineVersion": 1,
  "asOf": "2026-11-24",
  "currency": "USD",
  "pair": {
    "slug": "cloudflare-d1-vs-turso",
    "canonicalSlug": "cloudflare-d1-vs-turso",
    "isCrossCategory": false,
    "categoryA": {
      "id": "database",
      "name": "Databases"
    },
    "categoryB": {
      "id": "database",
      "name": "Databases"
    }
  },
  "citationUrl": "https://costroast.com/vs/cloudflare-d1-vs-turso?usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "canonicalUrl": "https://costroast.com/vs/cloudflare-d1-vs-turso",
  "markdownUrl": "https://costroast.com/vs/cloudflare-d1-vs-turso.md?usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "calculationUrl": "https://costroast.com/api/v1/calculate?a=cloudflare-d1&b=turso&usage=%7B%22egressGb%22%3A10%2C%22rowsRead%22%3A100000000%2C%22rowsWritten%22%3A1000000%2C%22storageGb%22%3A5%7D",
  "verdict": {
    "summary": "Turso costs $5.00 less per month than Cloudflare D1 at this workload. This compares modeled charges, not overall product quality.",
    "cheaperProduct": "B",
    "costDeltaMonthlyUsd": 5,
    "costPercentDelta": 100,
    "crossoverSummary": "Holding other usage fields fixed, Cloudflare D1 becomes the lower-cost option near 500,000,001 rows / month. This is a modeled price transition, not a migration payback calculation."
  },
  "crossCategoryBridge": null,
  "productA": {
    "id": "cloudflare-d1",
    "name": "Cloudflare D1",
    "planId": "d1-paid",
    "planName": "Workers Paid + D1",
    "eligible": true,
    "monthlyCostUsd": 5,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://developers.cloudflare.com/d1/platform/pricing/",
    "checkedAt": "2026-11-01",
    "warnings": [
      "Includes the required $5 Workers subscription. If Workers is already in your stack, that subscription is shared. Free daily row limits are not modeled."
    ],
    "exclusions": [
      "Worker request/CPU usage to call the database and sharding across multiple databases."
    ],
    "usage": {
      "rowsRead": 100000000,
      "rowsWritten": 1000000,
      "storageGb": 5,
      "egressGb": 10
    },
    "workloadFields": [
      {
        "id": "rowsRead",
        "label": "Rows read",
        "unit": "rows / month",
        "min": 0,
        "max": 1000000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 100000000
      },
      {
        "id": "rowsWritten",
        "label": "Rows written",
        "unit": "rows / month",
        "min": 0,
        "max": 10000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "storageGb",
        "label": "Database storage",
        "unit": "GB / month",
        "min": 0,
        "max": 10000,
        "step": 0.1,
        "integer": false,
        "defaultValue": 5
      },
      {
        "id": "egressGb",
        "label": "Database data transfer",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      }
    ],
    "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 5,
        "amount": 5
      },
      {
        "label": "Rows read (25,000,000,000 included)",
        "quantity": 0,
        "unit": "million rows",
        "rate": 0.001,
        "amount": 0
      },
      {
        "label": "Rows written (50,000,000 included)",
        "quantity": 0,
        "unit": "million rows",
        "rate": 1,
        "amount": 0
      },
      {
        "label": "Stored data (5 included)",
        "quantity": 0,
        "unit": "GB-month",
        "rate": 0.75,
        "amount": 0
      }
    ],
    "priceVersionId": "d1-paid:873ea353fcc7718c883791d4e96109118966a89bf9cc4b0ebaa6b0a84f5f472d",
    "modelHash": "e40cbda3aa5fc337395b2c83ccaa158f20b338439a0d5166ef4dab8d4245bd4d",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "database",
        "name": "Databases",
        "description": "Understand database storage, row operations and compute costs.",
        "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
        "primaryField": "rowsRead",
        "fields": [
          {
            "id": "rowsRead",
            "label": "Rows read",
            "unit": "rows / month",
            "description": "Rows scanned, not the number of SQL requests. Include indexes and full scans.",
            "defaultValue": 100000000,
            "min": 0,
            "max": 1000000000000,
            "step": 100000
          },
          {
            "id": "rowsWritten",
            "label": "Rows written",
            "unit": "rows / month",
            "description": "Inserts, updates, deletes and index maintenance.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 10000000000,
            "step": 1000
          },
          {
            "id": "storageGb",
            "label": "Database storage",
            "unit": "GB / month",
            "description": "Average stored data plus indexes.",
            "defaultValue": 5,
            "min": 0,
            "max": 10000,
            "step": 0.1
          },
          {
            "id": "egressGb",
            "label": "Database data transfer",
            "unit": "GB / month",
            "description": "Uncached outbound transfer. Embedded-replica synchronization is excluded.",
            "defaultValue": 10,
            "min": 0,
            "max": 1000000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "relational_sql",
            "label": "Relational SQL",
            "description": "ACID transactions and SQL query interface."
          },
          {
            "id": "edge_replicas",
            "label": "Edge read replicas",
            "description": "Low-latency read replicas across distributed global regions."
          }
        ],
        "presets": [
          {
            "id": "read_heavy",
            "name": "Read-Heavy Content",
            "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
            "usage": {
              "egressGb": 50,
              "rowsRead": 500000000,
              "rowsWritten": 5000000,
              "storageGb": 20
            }
          },
          {
            "id": "balanced_crud",
            "name": "Balanced SaaS CRUD",
            "description": "Standard application workload with active reads and writes",
            "usage": {
              "egressGb": 25,
              "rowsRead": 100000000,
              "rowsWritten": 10000000,
              "storageGb": 15
            }
          },
          {
            "id": "data_intensive",
            "name": "High Storage & Write",
            "description": "Event ingestion and large relational datasets",
            "usage": {
              "egressGb": 200,
              "rowsRead": 1000000000,
              "rowsWritten": 100000000,
              "storageGb": 250
            }
          }
        ]
      },
      "product": {
        "id": "cloudflare-d1",
        "name": "Cloudflare D1",
        "categoryId": "database",
        "vendorId": "cloudflare",
        "tagline": "Managed SQLite with row-based metering.",
        "website": "https://developers.cloudflare.com/d1/",
        "pricingUrl": "https://developers.cloudflare.com/d1/platform/pricing/",
        "color": "#f6821f",
        "plans": [
          {
            "id": "d1-paid",
            "name": "Workers Paid + D1",
            "basePrice": 5,
            "meters": [
              {
                "label": "Rows read",
                "quantity": {
                  "field": "rowsRead"
                },
                "unit": "million rows",
                "included": 25000000000,
                "unitSize": 1000000,
                "rate": 0.001
              },
              {
                "label": "Rows written",
                "quantity": {
                  "field": "rowsWritten"
                },
                "unit": "million rows",
                "included": 50000000,
                "unitSize": 1000000,
                "rate": 1
              },
              {
                "label": "Stored data",
                "quantity": {
                  "field": "storageGb"
                },
                "unit": "GB-month",
                "included": 5,
                "unitSize": 1,
                "rate": 0.75
              }
            ],
            "limits": [
              {
                "quantity": {
                  "field": "storageGb"
                },
                "max": 10,
                "reason": "A single D1 database is limited to 10 GB. Sharding is not modeled."
              }
            ],
            "warnings": [
              "Includes the required $5 Workers subscription. If Workers is already in your stack, that subscription is shared. Free daily row limits are not modeled."
            ],
            "exclusions": [
              "Worker request/CPU usage to call the database and sharding across multiple databases."
            ],
            "source": {
              "url": "https://developers.cloudflare.com/d1/platform/pricing/",
              "checkedAt": "2026-11-01",
              "title": "D1 paid usage pricing"
            },
            "sharedSubscription": {
              "id": "workers-paid",
              "amount": 5,
              "assumption": "Workers, D1, and Vectorize share one Cloudflare account subscription."
            },
            "capabilities": [
              "relational_sql"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-01",
      "sourceUrl": "https://developers.cloudflare.com/d1/platform/pricing/"
    }
  },
  "productB": {
    "id": "turso",
    "name": "Turso",
    "planId": "turso-free",
    "planName": "Free",
    "eligible": true,
    "monthlyCostUsd": 0,
    "billingInterval": "month",
    "annualCommitmentUsd": null,
    "sourceUrl": "https://turso.tech/pricing?frequency=monthly",
    "checkedAt": "2026-11-01",
    "warnings": [
      "Remote database calls only; no embedded replica sync."
    ],
    "exclusions": [
      "Embedded replica synchronization and enterprise features."
    ],
    "usage": {
      "rowsRead": 100000000,
      "rowsWritten": 1000000,
      "storageGb": 5,
      "egressGb": 10
    },
    "workloadFields": [
      {
        "id": "rowsRead",
        "label": "Rows read",
        "unit": "rows / month",
        "min": 0,
        "max": 1000000000000,
        "step": 100000,
        "integer": true,
        "defaultValue": 100000000
      },
      {
        "id": "rowsWritten",
        "label": "Rows written",
        "unit": "rows / month",
        "min": 0,
        "max": 10000000000,
        "step": 1000,
        "integer": true,
        "defaultValue": 1000000
      },
      {
        "id": "storageGb",
        "label": "Database storage",
        "unit": "GB / month",
        "min": 0,
        "max": 10000,
        "step": 0.1,
        "integer": false,
        "defaultValue": 5
      },
      {
        "id": "egressGb",
        "label": "Database data transfer",
        "unit": "GB / month",
        "min": 0,
        "max": 1000000,
        "step": 1,
        "integer": false,
        "defaultValue": 10
      }
    ],
    "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
    "lineItems": [
      {
        "label": "Monthly subscription",
        "quantity": 1,
        "unit": "month",
        "rate": 0,
        "amount": 0
      }
    ],
    "priceVersionId": "turso-free:5db6ad0bbeb1816b0c6b86255308497f72d4d6467f983609e5d099c4d343fdb6",
    "modelHash": "72a046d51c15be3400ff3972a1e978171aab98acea4591d52bc8c6de8741e363",
    "modelSnapshot": {
      "schemaVersion": 1,
      "engineVersion": 1,
      "category": {
        "id": "database",
        "name": "Databases",
        "description": "Understand database storage, row operations and compute costs.",
        "scope": "One database without replication or embedded sync. D1 and Turso use SQLite-compatible engines; Supabase uses PostgreSQL. These are cost alternatives, not interchangeable runtimes. Supabase models one Micro instance; its performance is not inferred from row counts.",
        "primaryField": "rowsRead",
        "fields": [
          {
            "id": "rowsRead",
            "label": "Rows read",
            "unit": "rows / month",
            "description": "Rows scanned, not the number of SQL requests. Include indexes and full scans.",
            "defaultValue": 100000000,
            "min": 0,
            "max": 1000000000000,
            "step": 100000
          },
          {
            "id": "rowsWritten",
            "label": "Rows written",
            "unit": "rows / month",
            "description": "Inserts, updates, deletes and index maintenance.",
            "defaultValue": 1000000,
            "min": 0,
            "max": 10000000000,
            "step": 1000
          },
          {
            "id": "storageGb",
            "label": "Database storage",
            "unit": "GB / month",
            "description": "Average stored data plus indexes.",
            "defaultValue": 5,
            "min": 0,
            "max": 10000,
            "step": 0.1
          },
          {
            "id": "egressGb",
            "label": "Database data transfer",
            "unit": "GB / month",
            "description": "Uncached outbound transfer. Embedded-replica synchronization is excluded.",
            "defaultValue": 10,
            "min": 0,
            "max": 1000000,
            "step": 1
          }
        ],
        "capabilities": [
          {
            "id": "relational_sql",
            "label": "Relational SQL",
            "description": "ACID transactions and SQL query interface."
          },
          {
            "id": "edge_replicas",
            "label": "Edge read replicas",
            "description": "Low-latency read replicas across distributed global regions."
          }
        ],
        "presets": [
          {
            "id": "read_heavy",
            "name": "Read-Heavy Content",
            "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
            "usage": {
              "egressGb": 50,
              "rowsRead": 500000000,
              "rowsWritten": 5000000,
              "storageGb": 20
            }
          },
          {
            "id": "balanced_crud",
            "name": "Balanced SaaS CRUD",
            "description": "Standard application workload with active reads and writes",
            "usage": {
              "egressGb": 25,
              "rowsRead": 100000000,
              "rowsWritten": 10000000,
              "storageGb": 15
            }
          },
          {
            "id": "data_intensive",
            "name": "High Storage & Write",
            "description": "Event ingestion and large relational datasets",
            "usage": {
              "egressGb": 200,
              "rowsRead": 1000000000,
              "rowsWritten": 100000000,
              "storageGb": 250
            }
          }
        ]
      },
      "product": {
        "id": "turso",
        "name": "Turso",
        "categoryId": "database",
        "vendorId": "turso",
        "tagline": "SQLite-compatible databases priced by stored data and row operations.",
        "website": "https://turso.tech/",
        "pricingUrl": "https://turso.tech/pricing?frequency=monthly",
        "color": "#34d399",
        "plans": [
          {
            "id": "turso-free",
            "name": "Free",
            "basePrice": 0,
            "meters": [],
            "limits": [
              {
                "quantity": {
                  "field": "rowsRead"
                },
                "max": 500000000,
                "reason": "Free includes 500 million rows read."
              },
              {
                "quantity": {
                  "field": "rowsWritten"
                },
                "max": 10000000,
                "reason": "Free includes 10 million rows written."
              },
              {
                "quantity": {
                  "field": "storageGb"
                },
                "max": 5,
                "reason": "Free includes 5 GB storage."
              }
            ],
            "warnings": [
              "Remote database calls only; no embedded replica sync."
            ],
            "exclusions": [
              "Embedded replica synchronization and enterprise features."
            ],
            "source": {
              "url": "https://turso.tech/pricing?frequency=monthly",
              "checkedAt": "2026-11-01",
              "title": "Turso monthly pricing"
            },
            "capabilities": [
              "edge_replicas",
              "relational_sql"
            ]
          }
        ]
      }
    },
    "evidence": {
      "kind": "catalog_assertion",
      "observedAt": "2026-11-01",
      "sourceUrl": "https://turso.tech/pricing?frequency=monthly"
    }
  },
  "scenarios": [
    {
      "name": "Read-Heavy Content",
      "description": "High read-to-write ratio for blogs, catalogs, and public APIs",
      "costA": null,
      "costB": 14.24,
      "winner": "unknown"
    },
    {
      "name": "Balanced SaaS CRUD",
      "description": "Standard application workload with active reads and writes",
      "costA": null,
      "costB": 10.49,
      "winner": "unknown"
    },
    {
      "name": "High Storage & Write",
      "description": "Event ingestion and large relational datasets",
      "costA": null,
      "costB": 142,
      "winner": "unknown"
    }
  ],
  "reproducibility": "Replay the selected public model snapshots with schema1/engine1 and the returned effective usage and asOf. This response is not a persisted historical receipt.",
  "calculationId": "6004a7d676e0f2d18287280594465b9d9f4d0f2fd85b87dfffc2834e7fc566a7"
}