Subject | Re: [IBO] faster lookups ? |
---|---|
Author | lester@lsces.co.uk |
Post date | 2002-01-20T06:28:33Z |
Answering in reverse order
memory - so there should be no problem.
thing like
SELECT TITLE FROM LOOKUP WHERE ID = :ID
and just set the ParamByName
a problem, will not cause too many problems.
The method I use everywhere for these sorts of lookup is to
put it in the SQL of the query, so the above example becomes
( SELECT TITLE FROM LOOKUP WHERE ID = TABLE_A.ID ) AS
LOOKUPA_TITLE
so you can dump all the extra code to create it.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services
> Or maybe I shouldn't worry ?Set AutoFetchAll on the lookup queries, and they will be in
memory - so there should be no problem.
> Is there a quick alternative way to do lookups ?As a quick fix, you could change the lookup query to some
thing like
SELECT TITLE FROM LOOKUP WHERE ID = :ID
and just set the ParamByName
> I am worried that retaining this code could make the application too slow.Once you have it working, changing the slow bit, if they are
a problem, will not cause too many problems.
The method I use everywhere for these sorts of lookup is to
put it in the SQL of the query, so the above example becomes
( SELECT TITLE FROM LOOKUP WHERE ID = TABLE_A.ID ) AS
LOOKUPA_TITLE
so you can dump all the extra code to create it.
--
Lester Caine
-----------------------------
L.S.Caine Electronic Services