We have a very simple query that executes instantly in SSMS, returning about 45,000 rows. Whenever I run the same query on a CFM page it takes about 47 seconds to execute.
I've tried reindexing, turning it into a stored procedure, etc.. but nothing seems to help. My other queries are also running a little slower, but not nearly as noticeable because they are smaller queries.
I have an additional CF10 server that seems to run the query perfectly fine on a test page.
The query is pretty much this:
Select X,Y,Z
FROM TABLE
WHERE BLAH BLAH BLAH
Can someone offer me some advice on what can cause this or how to find the issue?
Thanks!