﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Dmitry commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>@Sosh,
  
  
NHibernate is by far the easiest ORM to implement logging. For unit testing you just add the configuration property &lt;property name="show_sql"&gt;true&lt;/property&gt; into the Web.Config/App.config file.
  
  
If you want to configure log4net to log into event log, DB, etc, here is the link: 
[nhforge.org/.../...et-for-use-with-nhibernate.aspx](http://nhforge.org/wikis/howtonh/configure-log4net-for-use-with-nhibernate.aspx)  
  
Entity Framework was a different story. It required a provider wrapper that sits between the object context and the database provider.
  
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment6</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment6</guid><pubDate>Thu, 18 Jun 2009 19:28:51 GMT</pubDate></item><item><title>Sosh commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>@Dmitry,
  
  
Could you give a quick example of how you would do that with say NHibernate?  Thanks
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment5</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment5</guid><pubDate>Thu, 18 Jun 2009 12:28:57 GMT</pubDate></item><item><title>Chris Missal commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>This is a really good idea, but why stop there, maybe we can speed it up by using:
  
  
"waitfor delay '-0:0:0.5'"
  
  
What do you think?? ;)
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment4</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment4</guid><pubDate>Sat, 30 May 2009 06:27:43 GMT</pubDate></item><item><title>Dmitry commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>I always output (and inspect) queries into the console/debug stream for database tests. It's fairly easy to do with any ORM that implements a unit-of-work pattern and with log4net.
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment3</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment3</guid><pubDate>Sat, 30 May 2009 00:18:54 GMT</pubDate></item><item><title>Neil commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>I always thought that each db call should make the workstation beep, or make a systray thingee blink.   I never got around to implementing anything like that, though.
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment2</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment2</guid><pubDate>Fri, 29 May 2009 20:50:58 GMT</pubDate></item><item><title>Markus Zywitza commented on Poor man’s guide to database optimization - by the Marquis de Sade</title><description>Just an idea: Wouldn't such a thing be a good idea to simulate load on the DB server?
</description><link>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment1</link><guid>http://ayende.com/4039/poor-man-s-guide-to-database-optimization-by-the-marquis-de-sade#comment1</guid><pubDate>Fri, 29 May 2009 20:36:25 GMT</pubDate></item></channel></rss>