Article complete

AWS Turns to DuckDB to Speed Up Data Queries for AI Agents

The integration brings faster, lower-cost querying to Amazon Athena, with AWS planning to extend DuckDB support to EMR and Redshift.

aws duckdb

Key takeaways

  • AWS has integrated DuckDB into Amazon Athena to enhance data query speeds and reduce costs for AI applications.
  • DuckDB-powered Athena queries can be up to twice as fast and offer significant cost savings for large data sets.
  • The updated Athena service is in preview and allows querying data in Amazon S3 without requiring separate database infrastructure.
  • AWS plans to extend DuckDB support to additional services like Amazon EMR and Amazon Redshift.

Takeaways drafted with AI from the article text.

Amazon Web Services (AWS) has integrated the open-source analytics engine DuckDB into Amazon Athena, its service for querying data stored in Amazon S3. The company said the change would help AI agents run queries faster and at lower cost. It also plans to bring DuckDB to Amazon EMR and Amazon Redshift.

AWS said Athena queries powered by DuckDB ran up to twice as fast as those using Athena engine version 3. For queries involving 100 GB or more of data, the company claimed cost reductions of up to 50%.

The updated Athena service is currently available in preview. Customers can query data stored in Amazon S3 without setting up or maintaining separate database infrastructure.

AWS said AI agents place different demands on analytics systems because they can run multiple queries simultaneously and follow up on individual results. Traditional systems were designed to distribute queries across several servers to handle large datasets. AWS argued that improvements in server performance have made single-server processing a viable option for many analytical workloads.

DuckDB is designed to run analytical queries on a single server, reducing the need to distribute routine workloads across multiple machines. AWS said this architecture accounts for the performance and cost improvements in Athena.

For larger workloads, AWS introduced DuckDB Scales, a plugin that distributes a single query across multiple servers running DuckDB. Athena can run routine queries on a single server and distribute larger workloads across multiple servers. AWS said the feature can process datasets spanning tens of terabytes in seconds.

DuckDB Scales is available in preview. AWS plans to open-source it alongside the general availability launch of DuckDB-powered Athena in 2027.

AWS also plans to bring DuckDB to Amazon EMR, where it will run alongside existing tools, and integrate it directly into Amazon Redshift. The company expects to extend it to more analytics services throughout 2027.

The integrations will also introduce DuckDB SQL across these services. AWS said customers could write queries once and run them across different environments, reducing the need to adjust queries for different SQL implementations.

The question of how existing databases handle the demands of AI agents has emerged in discussions around the limitations of enterprise databases in agentic workflows.

Published

Spotted an error? Tell our editors. Read our editorial standards and corrections.

Selling to AI teams? Put your brand in front of the 5M+ people who read AIM every month. Plan a campaign

About the author

Senior Journalist

Mukundan covers Indian IT, enterprise AI and the AI startup ecosystem for AIM. Reach him at mukundan.sivaraj@aimmediahouse.com.

All stories
Belamy · Daily

The day’s AI news, before your first meeting.