# Allow creating a log of queries that take more than x ms to execute

**URL:** <https://community.miniprofiler.com/t/allow-creating-a-log-of-queries-that-take-more-than-x-ms-to-execute/156>\
**Category:** uncategorized\
**Created:** [April 28, 2012, 7:04am UTC](https://community.miniprofiler.com/t/allow-creating-a-log-of-queries-that-take-more-than-x-ms-to-execute/156 "2012-04-28T07:04:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo\_Molteni](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/eduardo_molteni/32/1040_2.png) [@Eduardo\_Molteni](https://community.miniprofiler.com/u/Eduardo_Molteni)\
**Post date:** [April 28, 2012, 7:04am UTC](https://community.miniprofiler.com/t/allow-creating-a-log-of-queries-that-take-more-than-x-ms-to-execute/156/1 "2012-04-28T07:04:50Z")

</div>

We have several system with several pages each and sometimes you can’t know where are the bottlenecks unless the user complaints.

It would be wonderful if we let MiniProfiler run in the app logging to queries and/or pages that take long to respond.

---

<div class="post-metadata">

**Author:** ![Eduardo\_Molteni](https://sea2.discourse-cdn.com/flex016/user_avatar/community.miniprofiler.com/eduardo_molteni/32/1040_2.png) [@Eduardo\_Molteni](https://community.miniprofiler.com/u/Eduardo_Molteni)\
**Post date:** [May 11, 2012, 1:50am UTC](https://community.miniprofiler.com/t/allow-creating-a-log-of-queries-that-take-more-than-x-ms-to-execute/156/2 "2012-05-11T01:50:16Z")

</div>

I didn’t know that you can log the results the the DB to retrieve later.  
In this article ([http://antonvishnyak.wordpress.com/2011/09/07/building-an-mvc-mini-profiler-dashboard/](http://antonvishnyak.wordpress.com/2011/09/07/building-an-mvc-mini-profiler-dashboard/)) the author does that and then display a dashboard with the worst results.
