TUniquery vs TUnistoreproc
Posted: Mon 10 Jun 2013 09:09
hello,
I have a store procedure at postgresql
CREATE OR REPLACE FUNCTION "GETINVOICENO"
RETURNS SETOF AS
'Select "INVOICENO" from "sales"
LANGUAGE sql VOLATILE
COST 100
ALTER FUNCTION "GETINVOICENO"
OWNER TO postgres;
unistoreproc.close;
unistoreproc.open;
uniquery.close;
uniquery.sql.clear;
uniquery.sql.add('select invoiceno from sales');
uniquery.open;
which one is more effective and speed to use it, unistoreproc or uniquery to get all invoiceno?
thanks a lot
I have a store procedure at postgresql
CREATE OR REPLACE FUNCTION "GETINVOICENO"
RETURNS SETOF AS
'Select "INVOICENO" from "sales"
LANGUAGE sql VOLATILE
COST 100
ALTER FUNCTION "GETINVOICENO"
OWNER TO postgres;
unistoreproc.close;
unistoreproc.open;
uniquery.close;
uniquery.sql.clear;
uniquery.sql.add('select invoiceno from sales');
uniquery.open;
which one is more effective and speed to use it, unistoreproc or uniquery to get all invoiceno?
thanks a lot