어제 질문글 올렸다가 정리가 안된느낌이라 다시 질문 드립니다.
mytable을 created_at 기준 월별로 쪼갰을때
select * from mytable where created_at >= '2024-01-01' 과 같은 쿼리는 지양하는 편인가요?
아래처럼 파티셔닝 된 테이블에 union 하여 직접 붙는게 맞을지요
select * from mytable_01 where created_at >= '2024-01-01'
union all
select * from mytable_02 where created_at >= '2024-01-01'
union all
....