Yes, the underlying tables do have indexes. The WHERE clause can contain up to 15 items although that is unlikely.
I have created this form to offer many options when it comes to searching. The user has the option to search for an exact match, a match that starts with their criteria, or a match that contains the criteria. The FIELD = VAR that results from the supplied criteria can take different forms (ie. FIELD = VAR, FIELD == VAR, VAR $ FIELD)
Main Topics
Browse All Topics





by: jgbreedenPosted on 2009-06-26 at 17:18:39ID: 24725717
To me, the question is not whether views or tables are faster, it is how complex does the WHERE clause get, and do the underlying tables have indexes that will take advantage of each condition in the Where.
Do you have indexes on the tables?