﻿<?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>Jeff Brown commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Seems odd to have to run CheckStatementForUnboundedResultSet if data is available and set up an event handler for ValuesRefreshed that does the same kind of this later on.
  
  
Why not model the process as adding a verification behavior to the statement scheduled to be performed when data becomes available (now or later).
  
  
In fact, you might want to separate two different parts of the lifecycle: setup of verification behaviors associated with statements, and deep execution / inspection of those statements later on.
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment7</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment7</guid><pubDate>Wed, 07 Jan 2009 09:50:08 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Stephen,
  
Parsing SQL and how NH does it are two separate issues.
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment6</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment6</guid><pubDate>Fri, 02 Jan 2009 15:22:39 GMT</pubDate></item><item><title>Stephen commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>I haven't used nhibernate to deeply, but I assume it has a provider model to it can understand different database implementations and how to at least generate query strings for it, if not also parse them..
  
  
I take it you aren't planning a providers model for the native query parsing (if the nhibernate providers aren't already expected to do this?).
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment5</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment5</guid><pubDate>Fri, 02 Jan 2009 15:18:51 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Parsing SQL is actually pretty easy, I already have to do this in order to get the pretty formatting working.
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment4</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment4</guid><pubDate>Sat, 27 Dec 2008 12:01:09 GMT</pubDate></item><item><title>Konstantin commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Ayende,
  
Parsing SQL looks like smell because it was generated by NHibernate and you could have access to it's object implementation... But I guess you are doing this because you can't actually access it via mechanism you have chosen (custom logger), right?
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment3</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment3</guid><pubDate>Sat, 27 Dec 2008 08:30:12 GMT</pubDate></item><item><title>Ayende Rahien commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Konstantin,
  
I am not aiming for 100% correctness here, but this can be dealt with using SQL parsing, which I am already doing.
  
  
As for CountOfRows being nullable. This means the count of rows returned, so CUD statements has no such thing.
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment2</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment2</guid><pubDate>Sat, 27 Dec 2008 05:06:29 GMT</pubDate></item><item><title>Konstantin commented on NH Prof Deep Dive: Implemented the Unbounded Result Set warning</title><description>Hey Ayende,
  
  
I especially liked the trick with boolean addedAction in closure to make sure that you do checks until you add suggestion or realize it is not required.
  
  
IndexOf you use to find limitKeword looks ugly.
  
What will happen if RawSql contains column named "top_time_limit_offset"? Your code will not detect Unbounded Result Set in this case. Looks like a major bug in this feature to me.
  
  
Why is your statement.CountOfRows nullable? Any query always deals with zero or more rows.
</description><link>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment1</link><guid>http://ayende.com/3773/nh-prof-deep-dive-implemented-the-unbounded-result-set-warning#comment1</guid><pubDate>Sat, 27 Dec 2008 04:06:12 GMT</pubDate></item></channel></rss>