I have a file with 60 million records.
System is V5R3.
Which is better.
1. Create a keyed logical file that excludes 30 million records.
2. Create a keyed join logical that excludes 45 million records.
3. Create a SQL index over everything and do where + join to get the correct records.
Key/index wold be store number/date. Processing will be to read all records for store x beginning with y date. There are 275 stores. Dates will be random, but generally in the range of today minus 30 to 180 days.
A. Write in in SQL RPGIV
B. Write in good old setll and chain.
System is V5R3.
Which is better.
1. Create a keyed logical file that excludes 30 million records.
2. Create a keyed join logical that excludes 45 million records.
3. Create a SQL index over everything and do where + join to get the correct records.
Key/index wold be store number/date. Processing will be to read all records for store x beginning with y date. There are 275 stores. Dates will be random, but generally in the range of today minus 30 to 180 days.
A. Write in in SQL RPGIV
B. Write in good old setll and chain.
Comment