i have a bunch of variables in a library right now; discount rate, sales email address, tax rate, taxable state, etc....
would it be faster and more efficient to make one call to a table that had one row with many columns for all the info or many calls to the same table with different rows for each variable?
ex 1.
select * from options;
query;
fetch array
row = sales_email;
row = tax_rate
row = taxable state;
etc....
OR:
ex 2.
select var form options where id = 1
fetch array
row = sales email
select var form options where id = 2
fetch array
row = tax rate
select var form options where id = 3
fetch array
row = taxable state
etc....
i would think the first example would be fastest. but i figured i would run it by you.
thanks