back to top

DuneSQL Migration – Second Update (Blog Post)

Dune Analytics Announces Phase II of DuneSQL Migration – Key Dates, Restrictions, and What to Expect

July 4, 2024 – Dune Analytics

The Dune Analytics team released its second migration brief for the transition from the legacy SparkSQL and PostgreSQL query engines to the newly‑released DuneSQL platform. The update outlines a tightened timeline, a series of functional freezes, and new support tools aimed at helping query authors move their “spells” (saved queries) to the next‑generation engine. Below is a concise rundown of the most important changes, an analysis of their impact on the DeFi developer community, and the key take‑aways for anyone building on Dune.


Timeline & Operational Restrictions

Date Action
July 5 Extension of the “Spellbook freeze” – no new pull requests for SparkSQL spells.
July 15 Disabling of query creation and editing for both SparkSQL and PostgreSQL.
July 30 Final deprecation of the legacy engines – all remaining SparkSQL and PostgreSQL functionality will be shut down.

During the freeze, existing SparkSQL spells are placed into a maintenance‑only mode; new contributions must be made on DuneSQL once the migration is complete. The team also stopped ingesting data for all non‑Ethereum PostgreSQL instances and halted new data ingestion for both SparkSQL and PostgreSQL pipelines.


What Is Being Disabled?

  • Query creation for PostgreSQL (all new queries) and SparkSQL (except for contributors to the Spellbook repository).
  • Query edits for PostgreSQL and SparkSQL (again, with the same limited exception for Spellbook maintainers).
  • Query execution on both legacy engines, effectively rendering any remaining un‑migrated spells inert.
  • Data ingestion for non‑Ethereum PostgreSQL sources and for all SparkSQL pipelines.

Migration Support & New Features

To smooth the transition, Dune Analytics introduced a set of migration utilities that allow developers to:

  1. Export existing spells and import them into DuneSQL with minimal manual re‑work.
  2. Validate compatibility, flagging syntax or function calls that need adjustment for the new engine.
  3. Leverage performance improvements: early benchmarks suggest DuneSQL offers up to 30 % faster query execution and better resource isolation.

The roadmap also flags several high‑traffic spells that have already been moved, such as nft.trades, dex.trades, and labels. The team promises a phased migration for the remaining spells, with individual freezes announced on both GitHub and Discord as each batch is transferred.

All technical details, FAQs, and migration instructions are available in Dune’s documentation portal under “Old Query Engines”, and an ongoing discussion can be followed on the Spellbook GitHub discussion thread.


Analysis: What This Means for DeFi Builders

Short‑term disruption, long‑term gains – The most immediate effect is a forced pause on any development that relies on the legacy engines. Teams that still host critical dashboards on SparkSQL or PostgreSQL must either fast‑track their migration or risk downtime after July 30. The July 15 freeze gives a narrow window for final edits; missing this deadline could result in queries that no longer execute.

On the upside, DuneSQL promises a more robust and scalable query environment. Early adopters have reported reduced latency on complex analytics, such as on‑chain NFT trade tracking or DEX volume aggregation. The migration tools mitigate the workload, and Dune’s support channels (email and community forums) are positioned to answer technical questions.

From a strategic perspective, consolidating the analytics stack onto DuneSQL reduces operational overhead for DuneAnalytics and aligns the platform with industry‑standard SQL extensions that are better suited for blockchain‑specific data types. This should accelerate the rollout of upcoming features—such as native token‑price feeds and richer indexing—while improving overall platform stability.


Key Takeaways

  • Extended freeze: Spellbook contributions on SparkSQL are halted until July 5; afterwards, all new work must target DuneSQL.
  • Hard deadline: Legacy SparkSQL and PostgreSQL engines will be fully deprecated on July 30.
  • July 15 cutoff: No further query creation or edits will be allowed on the old engines.
  • Migration tools: Dune provides utilities for exporting, validating, and importing spells to DuneSQL.
  • Performance boost: Early metrics indicate DuneSQL delivers faster execution and higher reliability.
  • Community support: Ongoing updates will be posted on GitHub and Discord; developers can contact Dune via the provided support email.
  • Action required: Teams with active SparkSQL/PostgreSQL queries should prioritize migration now to avoid service interruptions.

Conclusion

The Phase II migration update marks a decisive move toward a single, modern analytics engine for Dune’s user base. While the near‑term restrictions will require quick action from developers, the promised performance improvements and streamlined tooling are poised to enhance the analytical capabilities of DeFi projects, NFT marketplaces, and other blockchain data consumers.

For detailed migration instructions, visit Dune’s documentation, join the GitHub discussion, or reach out directly to the support email listed in the official announcement.



Source: https://dune.com/blog/dunesql-migration-update-ii

spot_img

More from this stream

Recomended