taylormade
Member
This is very basic but so am I.
I have a table "A" with 100,000 header records.
The detail table "B" has 350,000 detail records.
I'm looking for all records (headers and detail) with "datafield" >= yesterday.
My script:
for each A where A_date >= (today - 1) no-lock:
for each B where B_nbr = A_nbr no-lock.
display
A_nbr B_nbr A_inv_date
with 1 col side-labels down.
I also tried:
for each A where A_date >= (today - 1) no-lock:
find B where B_nbr = A_nbr no-error.
display
A_nbr B_nbr A_inv_date
with 1 col side-labels down.
Still I can't get any speed out of this.
Is there a programming trick or two I could try.
(I have a couple if indexes on the tables but using them didn't seem to speed them up at all)
I have a table "A" with 100,000 header records.
The detail table "B" has 350,000 detail records.
I'm looking for all records (headers and detail) with "datafield" >= yesterday.
My script:
for each A where A_date >= (today - 1) no-lock:
for each B where B_nbr = A_nbr no-lock.
display
A_nbr B_nbr A_inv_date
with 1 col side-labels down.
I also tried:
for each A where A_date >= (today - 1) no-lock:
find B where B_nbr = A_nbr no-error.
display
A_nbr B_nbr A_inv_date
with 1 col side-labels down.
Still I can't get any speed out of this.
Is there a programming trick or two I could try.
(I have a couple if indexes on the tables but using them didn't seem to speed them up at all)