Sorry, I meant UNION ALL
The goal is to speed up the queries. Right now we have a system that partitions the data per month. So January 2010 has it’s own table, February 2010 has it’s own table, and so forth. When we query over a 2 month span, we use UNION ALL to combine the 2 tables. The problem is that even the monthly tables get quite large (the April 2010 table is 90 million rows). When we do a query for 1 or 2 days only, we have to look at this 90 million row table. If we were to Split it into day tables, we would only look at a fraction of the rows (2 tables of about 3 million rows).
The question is, if I pick a large date range (from April 1st to April 30th, for example), would the unions cause any slow downs, or would the performance be around the same as querying one big monthly table?
Let me know if my explanation is clear…