xvszero
10-21-2008, 12:46 PM
My experience with indexes is usually do this...
create index indexnamehere on tablenamehere(columnnamehere)
on the fields I am joining to other tables and voila, everything works fine.
But now I have to do a join between a table with a 10 million+ records and another with about 250k. And they have to be joined on two different columns, which combine to create one "unique" identifier. I set up the indexes the way I usually do, but when I actually try to do the selection everything just stalls up.
Any ideas?
create index indexnamehere on tablenamehere(columnnamehere)
on the fields I am joining to other tables and voila, everything works fine.
But now I have to do a join between a table with a 10 million+ records and another with about 250k. And they have to be joined on two different columns, which combine to create one "unique" identifier. I set up the indexes the way I usually do, but when I actually try to do the selection everything just stalls up.
Any ideas?