DEV Community

Discussion on: Advanced SQL: Mastering Query Optimization and Complex Joins

Collapse
 
andatki profile image
Andrew Atkinson • Edited

Hi Bilel. Nice post! I’ve recently written a PostgreSQL book that covers advanced SQL, query planning, index design, and uses a Ruby on Rails app for examples and exercises.

After reading through your examples, I’ve realized we didn’t cover recursive CTEs (non recursive CTEs are covered) or lateral joins. I’ll save your post and link to as you introduce those topics nicely.

You did a great job of boiling down all of these topics into short descriptions with examples.

As you mentioned in Postgres we’ve got native materialized views that can be refreshed concurrently and indexed. In the extension ecosystem, there are even extensions to incrementally update materialized views.

Thanks for writing the post!

Collapse
 
bilelsalemdev profile image
bilel salem

You are welcome, Thank you .