What's your opinion on way to go
Hi folks,
I am expanding an internal search engine (search based upon tables of characteristics such as size, color, etc.) from three to six possible search fields. The current search routine is one fairly long file that is a series of queries nested in a CFIF...ELSEIF...ENDIF structure, such as:
CFIF A eq 1 and B eq 2
Select all from tablex where A eq 1 and B eq 2
ELSEIF
select all from tablex
CFIF
Adding all the additional queries possible from the expansion from 3 to 6 search criteria could yield a file which is 3-4000 lines of code (the queries are pretty long and involve mutltiple tables). I am considering two options:
(1) One long file
(2) A shorter file containing the CFIF structure which then calls a query from a separate file, with each possibility having a query file, sort of like:
CFIF A eq 1 and B eq 2
CFhttp: query12,cfm
CFELSEIF
CFIF
What are your opnions/ suggestions regarding run-time speed and "user experience"?
Appreciate any and all opinions
