Re: Improving the performance of joins

2005-05-17 Thread Rod Heyd
On 5/17/05, Jigal van Hemert <[EMAIL PROTECTED]> wrote: > From: "Rod Heyd" > > Tables Version_(1-5) > > > > -- > > > ID |PRODUCT_ID |DATA1 |DATA2 |DATA3 |.|DATA_N | > > -

Re: Improving the performance of joins

2005-05-17 Thread Brent Baisley
You should have a compound index in all your tables on ID+PRODUCT_ID, since that is what you are joining on. Ideally, you should also have an index on the DATA column that you will be using in the WHERE clause. But your structure does really lend itself to this. Going forward, you may think

Re: Improving the performance of joins

2005-05-17 Thread Jigal van Hemert
From: "Rod Heyd" > Tables Version_(1-5) > > -- > ID |PRODUCT_ID |DATA1 |DATA2 |DATA3 |.|DATA_N | > --

Improving the performance of joins

2005-05-16 Thread Rod Heyd
I have a question about joins. My situation is as follows: I have 5 tables identical in structure. Each table represents essentially the same data, however, the data in each table represents a different "version." The processing involved in generating the values stored in each table may have ch