G
Guest
I have a complex form with lots of popups and other data that is bound across
tables. Performance is JUST acceptable. On the current version of the form it
takes about 1 to 1.5 seconds to open the form.
One of the form elements is a subform that runs a query to find existing
inventory. I'm making a new version of this display that does grouping and
sorting a little differently. When I put this query into the subform it takes
about 2 to 3 seconds to open the form, just long enough to be annoying. So I
tried removing the subform, and that definitely speeds it back up, faster
even than the original.
But here's the thing, while the query in the subform is complex, but it's
not slow. If I run it with no WHERE it takes about 1 second to draw,
returning about 1200 rows. So basically even if my link wasn't working, it
still shouldn't make it run THAT much slower. But there is a working link,
and it filters out everything. If I add that WHERE to the SQL and run it in
Query Analyzer, it's instantaneous.
So there's the mystery... how is it that this subform is taking up so much
time to draw even though there's nothing in it and the query is instant?
Maury
tables. Performance is JUST acceptable. On the current version of the form it
takes about 1 to 1.5 seconds to open the form.
One of the form elements is a subform that runs a query to find existing
inventory. I'm making a new version of this display that does grouping and
sorting a little differently. When I put this query into the subform it takes
about 2 to 3 seconds to open the form, just long enough to be annoying. So I
tried removing the subform, and that definitely speeds it back up, faster
even than the original.
But here's the thing, while the query in the subform is complex, but it's
not slow. If I run it with no WHERE it takes about 1 second to draw,
returning about 1200 rows. So basically even if my link wasn't working, it
still shouldn't make it run THAT much slower. But there is a working link,
and it filters out everything. If I add that WHERE to the SQL and run it in
Query Analyzer, it's instantaneous.
So there's the mystery... how is it that this subform is taking up so much
time to draw even though there's nothing in it and the query is instant?
Maury