Hi Guys,
Can some one tell me why there seems to be such a big speed difference between the following two code snippets.
and
The find using the of is a lot slower than the where and I was just curious as to why? main2 is the unique index on loadlsth and as u can see all fields exist in both tables??
Also, although the find using the where is much quicker than the of it is still adding a huge load to my routine and as mentioned above main2 is the unique index so i cannot see why it should slow things down so much???
Any ideas greatly appreciated!!
I'm using OE10.2b Service pack 3 in a windows 7 environment.
Cheers
Can some one tell me why there seems to be such a big speed difference between the following two code snippets.
Code:
find loadlsth of loadlstd no-lock no-error.
and
Code:
find loadlsth where
loadlsth.compno = loadlstd.compno and
loadlsth.plantno = loadlstd.plantno and
loadlsth.lh-number = loadlstd.lh-number and
loadlsth.times-picked = loadlstd.times-picked
use-index main2
no-lock no-error.
The find using the of is a lot slower than the where and I was just curious as to why? main2 is the unique index on loadlsth and as u can see all fields exist in both tables??
Also, although the find using the where is much quicker than the of it is still adding a huge load to my routine and as mentioned above main2 is the unique index so i cannot see why it should slow things down so much???
Any ideas greatly appreciated!!
I'm using OE10.2b Service pack 3 in a windows 7 environment.
Cheers