Closed GoogleCodeExporter closed 8 years ago
Project that reproduces this issue has been uploaded to
http://code.google.com/p/mvc-mini-profiler/issues/detail?id=43
Original comment by randomse...@gmail.com
on 24 Jul 2011 at 6:17
Yeah ... found it ... weird bug ... try latest
Original comment by sam.saff...@gmail.com
on 25 Jul 2011 at 8:20
This issue isn't actually fixed in the latest checkin.
Still using that sample project I sent you, I still get duplicates, though less
so.
And there appears to be some confusion in the profiler about which query the
SQL belongs to. The sample project sends 4 queries, each of which performs
exactly 1 SQL statement querying on a different field, so I'd expect each
profiler entry to have "1 sql" with the corresponding statement underneath.
However, very often a SQL query from one AJAX request will end up under another
entry, so there'll be a request that has no sql statements and one with 2.
Not sure I've explained that clearly enough - are you seeing this as well?
Original comment by randomse...@gmail.com
on 25 Jul 2011 at 8:57
I also see duplicates sometimes with ajax requests, say my page makes an ajax
request at the bottom of the page just after the mini profiler code loads, I
will sometimes see a) the ajax request is missing in the results, or b) I see
duplicate results, I find that adding something like a setTimeout for 50 or
100ms before my ajax load at the end of the page it will work properly.
This is without any sql profiling either. It seems as though it loads a GUID's
results twice.
Original comment by stefan.s...@gmail.com
on 25 Jul 2011 at 9:08
yeah my guess is that the javascript include is cached in your browser ... can
you try it in anon mode ... the fix is:
http://code.google.com/p/mvc-mini-profiler/source/diff?spec=svn9ae6f19a344f537c6
f3a6edcf6369069080af433&r=9ae6f19a344f537c6f3a6edcf6369069080af433&format=side&p
ath=/MvcMiniProfiler/UI/Includes.js please review
Original comment by sam.saff...@gmail.com
on 25 Jul 2011 at 10:32
My apologies, trying in a different browser fixed the duplicates issue.
However, the other problem of SQL statements occasionally being attached to the
wrong profiler result still remains. Should I open a new issue for that as the
duplicates one appears to be fixed?
Thanks again for the quick fixes :)
Original comment by randomse...@gmail.com
on 25 Jul 2011 at 11:04
yes please .. that is a harder one to solve
Original comment by sam.saff...@gmail.com
on 25 Jul 2011 at 11:25
Suspected it might be! :)
Original comment by randomse...@gmail.com
on 25 Jul 2011 at 11:29
Sam fix looks good, what I was thinking, keep
Track of ids we are fetching. What does this have to do with cache though? You
mean the 2nd request never hits the server? And happens to just return the
results again instead of I assume a 2nd request for an Id would return an error
or empty result.
Original comment by stefan.s...@gmail.com
on 25 Jul 2011 at 12:41
Original issue reported on code.google.com by
randomse...@gmail.com
on 22 Jul 2011 at 3:53