Off-line
- Assign each distinct primitive query (PQ) a unique
location (a vector and offset in that vector).
- Replace the query with a version that references the
vector contents instead of the PQ.
- Optionally, compile each set of 1000 queries into a C
procedure and generate a driver program to call all of these
procedures.