I have partitioned by date (timestamp with simple index) table with ~1000000 rows.
I need to get rows by date range + other optional columns criteria.
Can I use subquery somehow for speed optimization?
For example: select rows by date range (it will be quite fast by index) at first in subquery, and after that select rows by other criteria from result temp table.