![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
[This is a repost. Looks like my first post never hit the group] These damned things just keep getting worse. I now have an index on a combined field using the following correlative... A1 28(MR%5))...and I have the same correlative in an attribute defining item called CLDATE. If I try the following select... SELECT AR.HIST WITH CLDATE "SH8813155" ...I get an instant response. However, if I try this... SELECT AR.HIST WITH CLDATE >= "SH8813150" AND <= "SH8813180" ...the damned thing starts passing through the entire file! How lame is that? I've given a starting and ending point with a b-tree index, and there are no other complicating factors, yet ACCESS is too stoopid to optimise this select via the the index. I suppose I can get away with this... SELECT AR.HIST WITH CLDATE "SH8813150" "SH8813151" "SH8813152" ... ...but why should I have to? And what if I wanted to select an entire year's worth of data for a given client? This is pathetic. I mean seriously pathetic. Luke |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Luke, You still haven't shared wich version of D3/NT you are using - there are "caveats" with when indices will beused in a query ... later versions are "better", but you may still have to jump through some hoops. |
|
I would imagine that ou get a "quick" response with SELECT AR.HIST WITH CLDATE "SH88]" You can then use the results of this query (assuming there are any) to feed a "normal" query using your original fields for customer code (?) and transaction date |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
...and I have the same correlative in an attribute defining item called CLDATE. If I try the following select... SELECT AR.HIST WITH CLDATE "SH8813155" ...I get an instant response. However, if I try this... SELECT AR.HIST WITH CLDATE >= "SH8813150" AND <= "SH8813180" ...the damned thing starts passing through the entire file! How lame is that? I've given a starting and ending point with a b-tree index, and there are no other complicating factors, yet ACCESS is too stoopid to optimise this select via the the index. I suppose I can get away with this... SELECT AR.HIST WITH CLDATE "SH8813150" "SH8813151" "SH8813152" ... ...but why should I have to? And what if I wanted to select an entire year's worth of data for a given client? This is pathetic. I mean seriously pathetic. Luke |
![]() |
| Thread Tools | |
| Display Modes | |
| |