Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/lazy evaluation #27

Merged
merged 10 commits into from
Jun 23, 2024
Merged

Feature/lazy evaluation #27

merged 10 commits into from
Jun 23, 2024

Conversation

parkervg
Copy link
Owner

@parkervg parkervg commented Jun 22, 2024

On queries like benchmarks/national_parks/q05.sql:

SELECT {{ImageCaption('parks::Image')}} as "Image Description" FROM parks LIMIT 1

We apply the LIMIT clause (and any other surrounding filters) prior to calling the ImageCaption ingredient

Benchmark Results:

Before:

Task Average Runtime # Unique Queries
financials 0.0402491 7
rugby 0.323255 4
national_parks 2.07314 5
1966_nba_draft 0.119926 2

After:

Task Average Runtime # Unique Queries
financials 0.040797 7
rugby 0.319473 4
national_parks 0.865904 5
1966_nba_draft 0.115434 2

@parkervg parkervg merged commit 0337b1d into main Jun 23, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant