# Faster Queries on Nested Data

DevFeed: [Faster Queries on Nested Data](<https://devfeed.tech/articles/faster-queries-on-nested-data-8648.md>)

Original publisher: [Read original article](<https://trino.io/blog/2020/08/14/dereference-pushdown.html>)

Author: Pratham Desai (LinkedIn), James Taylor (Lyft)

Published: 2020-08-14T00:00:00Z

Content type: article

Language: en

Sources: [Trino](<https://devfeed.tech/sources/trino-blog.md>)

Topics: [presto](<https://devfeed.tech/topics/presto.md>), [database-optimization](<https://devfeed.tech/topics/database-optimization.md>)

Tags: [etl](<https://devfeed.tech/tags/etl.md>), [execution](<https://devfeed.tech/tags/execution.md>), [fields](<https://devfeed.tech/tags/fields.md>), [nested](<https://devfeed.tech/tags/nested.md>), [optimization](<https://devfeed.tech/tags/optimization.md>), [performance](<https://devfeed.tech/tags/performance.md>), [presto](<https://devfeed.tech/tags/presto.md>), [query](<https://devfeed.tech/tags/query.md>)

## AI overview

Presto 334 improves queries on nested struct columns by pushing dereference expressions down so execution can prune structural data early and extract only the fields a query needs. Without this optimization, Presto scans and shuffles whole columns before projection, increasing CPU, memory use, and latency, especially for wide or deeply nested data. LinkedIn and Lyft report that the change lets them serve nested data for analytics without flattening it into separate top-level columns, reducing ingestion overhead and preserving schema consistency. The excerpt ends as an example begins, so it does not provide further implementation details or measurements.

## Source excerpt

Presto 334 adds significant performance improvements for queries accessing nested fields inside struct columns. They have been optimized through the pushdown of dereference expressions. With this feature, the query execution prunes structural data eagerly, extracting the necessary fields.