What are effective ways of writing faster queries specifically in Postgres?
Please do not include generally good database practices (eg use indexes or normalization). I’m looking for hints like derived tables work faster than subqueries or using python string functions seems faster than the pgsql string functions. Ideally, this list would include real-world examples and advice. Thanks.