Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more

Before moving data from D1 into Durable Objects, list the queries that use it and identify which room or other entity owns each record. Queries confined to one owner may fit that object’s storage; queries that span owners need a separate design, because one Durable Object cannot directly query another object’s private storage.

Why query scope changes the migration decision

D1 is a SQL database. Durable Objects are uniquely addressed, stateful compute instances with attached storage, suited to coordinating activity around an entity such as a chat room, collaborative document, game, or notification stream. Cloudflare describes these as different levels of abstraction: D1 offers database-management features, while Durable Objects give application code more control over routing and behavior. See Cloudflare’s D1 and Durable Objects comparison and Durable Objects overview.

Each Durable Object’s attached storage belongs to that unique object. Its storage is strongly consistent, but another object cannot directly read it. That means a query that currently joins or aggregates records from several rooms cannot simply run across all their object databases. Before moving those records, decide how the feature will obtain its cross-room view. Cloudflare documents the storage boundary in SQLite-backed Durable Object Storage.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Build an inventory that exposes ownership and query shape

Create one row per query or query family, including operations hidden inside ORM methods, scheduled work, and background jobs. The inventory is an engineering aid, not a Cloudflare-provided migration checklist.

#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.
  • Feature and caller: name the application feature and the Worker route, scheduled task, or job that issues the query.
  • Query: record the SQL or ORM operation, tables touched, filters, joins, sorting, and aggregation.
  • Data shape: note whether it reads or writes, expected rows returned or changed, and relevant indexes.
  • Workload: estimate frequency, burst behavior, concurrency, and whether the operation needs a transaction.
  • Ownership: identify the room, user, document, match, or other entity that could own each record.
  • Scope: mark whether the operation touches one proposed owner or combines multiple owners.

For example, “load the latest messages for room 42” may be room-local if all relevant messages belong to that room. “Show unread counts across every room for this user” crosses room ownership if those counts live in separate room objects. The SQL alone does not settle the question: map the records it touches to the proposed ownership boundary.

Classify each query before choosing a destination

Object-local reads and writes

These use data owned by one room or entity. They are candidates for that owner’s object storage when the object is also the natural authority for the feature. Confirm that the object can serve the required reads, writes, and transaction semantics; a local query is a potential fit, not an automatic reason to move the data.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Cross-object reads and writes

These combine data owned by multiple objects. Choose an explicit pattern before migration: fan out to objects, maintain a derived summary, use another shared data store, change the feature’s read path, or keep the relevant data in D1. Compare the consequences for freshness, consistency, latency, and operational complexity. There is no built-in cross-object SQL query implied by Durable Object storage.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Relational and reporting queries

Queries that depend on flexible joins, broad filtering, or analytics across many entities may be more costly to redesign than to leave in a SQL database. Include reporting and administrative use, not just user-facing request paths, in this decision.

Rank #3
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Coordination state

Durable Objects are a natural candidate when multiple clients need one authoritative state boundary for a room or other coordinated entity. Cloudflare lists chat, collaborative editing, multiplayer interactions, and live notifications among the use cases. That fit does not imply that unrelated or broadly relational application data should move with the coordinated state.

Compare the responsibilities you would be taking on

Decision area D1 Durable Objects with SQLite storage
Query scope SQL database for relational queries; assess the actual schema and query needs. Storage is attached to one unique object; cross-owner access needs an application-level design.
Ownership and routing Application queries a D1 database through its Worker binding. A front-end Worker routes requests to a uniquely addressed object, which owns its state.
Management features Cloudflare describes schema management, data import/export, and query insights. A lower-level building block with more routing and behavior responsibility in application code.
SQL and recovery Use D1’s SQL and migration interfaces. SQLite-backed Durable Objects provide SQL and point-in-time recovery APIs; the SQL API is limited to SQLite-backed classes.

These product distinctions are described in Cloudflare’s D1 and Durable Objects comparison, Durable Object storage guidance, and SQLite storage API documentation. Cloudflare says SQL query pricing and limits are intended to be identical between D1 and SQLite in Durable Objects; that does not make their APIs, routing, or management responsibilities interchangeable. Verify current limits, availability, and billing for your plan and workload.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Account for D1’s documented query guidance

Cloudflare’s D1 FAQ, checked in 2026, describes an indexed lookup such as finding a name by ID as taking “less than a millisecond” of SQL duration as a rough guideline, not a latency guarantee. It describes writes such as INSERT or UPDATE as taking “several milliseconds,” depending on rows written. Treat these figures as Cloudflare guidance, not application-level end-to-end performance promises. The FAQ also says one Worker invocation can open up to six simultaneous D1 connections. See the D1 FAQ.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For large changes, Cloudflare recommends batching UPDATE or DELETE work. Its FAQ gives roughly 1,000 rows at a time as an example and warns that a single query affecting hundreds of thousands of rows or hundreds of megabytes may exceed limits. The appropriate batch size depends on the operation and current platform constraints; capture indexes, result sizes, and concurrency rather than assuming a move to object storage will solve a query-shape problem. See the D1 FAQ for the guidance.

Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Use the inventory to stage a safer move

  1. Capture the baseline. Record the current schema and the complete query inventory, including ORM-generated queries, scheduled tasks, and background jobs. Cloudflare documents SQL migration files and configuration in D1 migrations.
  2. Assign proposed owners. Group records by the Durable Object that would own them. Mark every query that crosses those ownership groups, including reports and secondary views.
  3. Choose a design for each cross-owner feature. Decide whether it will use fan-out, a maintained summary, a different shared store, a changed read path, or D1. Write down the acceptable freshness and consistency, and the expected latency and operational work.
  4. Prototype a representative object. Check that Worker routes reach the intended object and compare its read and write behavior with the existing D1 behavior. Verify that results preserve the feature’s required semantics, not merely that the data can be loaded.
  5. Plan data movement and recovery separately. Specify export, load, verification, and rollback steps. Use batches for large D1 changes. Cloudflare documents D1 migrations and Durable Object storage separately; its documentation does not establish a turnkey command to convert D1 data into Durable Objects. See D1 migrations and SQLite-backed Durable Object Storage.

When to keep data in D1

Keeping data in D1 is a reasonable choice when important features depend on joins or broad queries across the records you would otherwise split among objects, or when the management features of a SQL database outweigh the value of per-entity coordination. You can also split responsibilities: keep relational or reporting data in D1 while a Durable Object owns the state that needs coordination for one room or entity. Decide from the complete query inventory rather than moving every table because one feature is a good fit for an object.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.