this post was submitted on 18 Aug 2023
1 points (100.0% liked)
Lemmy PostgreSQL
33 readers
2 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
And the difference between logged-in JOIN vs. anonymous logged-out JOIN count when the Rust code builds the query....
"If I remove any single one of the joins, the query time goes from 500ms to 1ms. With EXPLAIN I was able to see that Postgres is doing index only scans when joining 8 tables, but with 9 tables it starts doing sequential scans."