﻿<?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>Ramon Smits commented on NHibernate Futures</title><description>Very nice feature! I see lots of scenerio's in a code base where I didn't make use of multi criteria (as I was more experimenting with nhibernate back then) and this will make it very easy to refactor that code for optimalisation.
</description><link>http://ayende.com/3979/nhibernate-futures#comment20</link><guid>http://ayende.com/3979/nhibernate-futures#comment20</guid><pubDate>Tue, 28 Apr 2009 11:17:06 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Cali,
  
Batch size is for updates, futures or multi query is for reads
</description><link>http://ayende.com/3979/nhibernate-futures#comment19</link><guid>http://ayende.com/3979/nhibernate-futures#comment19</guid><pubDate>Tue, 28 Apr 2009 09:10:10 GMT</pubDate></item><item><title>CaliCoder commented on NHibernate Futures</title><description>versus setting a default batch size?
</description><link>http://ayende.com/3979/nhibernate-futures#comment18</link><guid>http://ayende.com/3979/nhibernate-futures#comment18</guid><pubDate>Tue, 28 Apr 2009 08:54:59 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Stephen,
  
NHibernate also supply a FutureValue() method, which you _can_ use to get an int sometimes in the future.
  
And no, you cannot use a future inside another query (but you can used a detached criteria inside another criteria)
</description><link>http://ayende.com/3979/nhibernate-futures#comment17</link><guid>http://ayende.com/3979/nhibernate-futures#comment17</guid><pubDate>Mon, 27 Apr 2009 16:21:26 GMT</pubDate></item><item><title>Stephen commented on NHibernate Futures</title><description>Is it even possible to do this transparently? for example returning an int wouldn't be possible to defer, the Future instance is important as it lets you declare 'interest' in a value before actually wanting it.
  
  
Ayende, is it possible to use a future in another query? like I could get a future of int, and use that as a value in another query?
  
  
(I'm guessing not).
</description><link>http://ayende.com/3979/nhibernate-futures#comment16</link><guid>http://ayende.com/3979/nhibernate-futures#comment16</guid><pubDate>Mon, 27 Apr 2009 16:16:42 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Alberto &amp; Kork,
  
NHibernate tries hard not to make too much magic.
</description><link>http://ayende.com/3979/nhibernate-futures#comment15</link><guid>http://ayende.com/3979/nhibernate-futures#comment15</guid><pubDate>Mon, 27 Apr 2009 13:12:18 GMT</pubDate></item><item><title>Ian Nelson commented on NHibernate Futures</title><description>A clear explanation of a great feature. Thanks Ayende.
</description><link>http://ayende.com/3979/nhibernate-futures#comment14</link><guid>http://ayende.com/3979/nhibernate-futures#comment14</guid><pubDate>Mon, 27 Apr 2009 13:06:51 GMT</pubDate></item><item><title>alberto commented on NHibernate Futures</title><description>I was going to ask the same as korkl. Is there any reason why nhibernate doesn't do it transparently (when supported)? Or, put in other words, is there any scenario you would not want to use this feature?
</description><link>http://ayende.com/3979/nhibernate-futures#comment13</link><guid>http://ayende.com/3979/nhibernate-futures#comment13</guid><pubDate>Mon, 27 Apr 2009 13:06:18 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>MutiCrietria / MultiQuery  will throw if you are not supporting the feature
  
Future is a way to utilize this feature if it is needed.
</description><link>http://ayende.com/3979/nhibernate-futures#comment12</link><guid>http://ayende.com/3979/nhibernate-futures#comment12</guid><pubDate>Mon, 27 Apr 2009 13:01:19 GMT</pubDate></item><item><title>korkl commented on NHibernate Futures</title><description>what i mean is that for me it's more easy and clean from an api poin of view that client code will always use multicriteria, so if later there's a change from/to a db that support "future" feature there's no need to change the code becouse the switch between future/multicriteria is made internally by nhibernate code.
  
  
my question was if that was not done becouse it was too hard or impossible to introduce in current nhiebernate code or if it is so only becouse you and other nh developers prefer this api (a.k.a. it's only for nh developers taste :) ).
  
  
</description><link>http://ayende.com/3979/nhibernate-futures#comment11</link><guid>http://ayende.com/3979/nhibernate-futures#comment11</guid><pubDate>Mon, 27 Apr 2009 12:57:49 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Junior,
  
Not following, but probably the answer is no.
  
  
Kork,
  
Future is simpler, _much_ simpler.
</description><link>http://ayende.com/3979/nhibernate-futures#comment10</link><guid>http://ayende.com/3979/nhibernate-futures#comment10</guid><pubDate>Mon, 27 Apr 2009 12:18:30 GMT</pubDate></item><item><title>kork commented on NHibernate Futures</title><description>there's some problems by design to not simply use always multicriteria that internally will use "future" implementation if the currently used db allows it?
</description><link>http://ayende.com/3979/nhibernate-futures#comment9</link><guid>http://ayende.com/3979/nhibernate-futures#comment9</guid><pubDate>Mon, 27 Apr 2009 11:22:13 GMT</pubDate></item><item><title>junior programmer commented on NHibernate Futures</title><description>ayende, was it implemented using c# expression?
</description><link>http://ayende.com/3979/nhibernate-futures#comment8</link><guid>http://ayende.com/3979/nhibernate-futures#comment8</guid><pubDate>Mon, 27 Apr 2009 11:03:58 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Stephen,
  
Yes, that is how it basically works.
  
  
About declarative, you can do it, for the very simple stuff, but it does't really work for the real world
</description><link>http://ayende.com/3979/nhibernate-futures#comment7</link><guid>http://ayende.com/3979/nhibernate-futures#comment7</guid><pubDate>Mon, 27 Apr 2009 09:36:35 GMT</pubDate></item><item><title>Stephen commented on NHibernate Futures</title><description>Thats cool, I guess the Future call essentially registers itself in a set associated to that session and when you first try and get the value of any of the futures, it triggers nhibernate to multiquery the lot?
  
  
I always wondered if this was possible more passively, like if you had a declarative binding to the data (like xaml for example) you could infer the same deferred execution.. but my interest was purely just to see if you could, I think theres some inherant flaws with the concept.
</description><link>http://ayende.com/3979/nhibernate-futures#comment6</link><guid>http://ayende.com/3979/nhibernate-futures#comment6</guid><pubDate>Mon, 27 Apr 2009 09:28:08 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Currently?
  
  
MS Sql Server
  
MySQL
  
PostGreSQL
  
SQLite
  
Microsoft SQL CE
  
  
</description><link>http://ayende.com/3979/nhibernate-futures#comment5</link><guid>http://ayende.com/3979/nhibernate-futures#comment5</guid><pubDate>Mon, 27 Apr 2009 09:06:25 GMT</pubDate></item><item><title>configurator commented on NHibernate Futures</title><description>What databases support it?
</description><link>http://ayende.com/3979/nhibernate-futures#comment4</link><guid>http://ayende.com/3979/nhibernate-futures#comment4</guid><pubDate>Mon, 27 Apr 2009 08:00:11 GMT</pubDate></item><item><title>Dave the Ninja commented on NHibernate Futures</title><description>Excellent Ayende!
  
  
I will be trying this out at lunch!
  
  
Ninja
</description><link>http://ayende.com/3979/nhibernate-futures#comment3</link><guid>http://ayende.com/3979/nhibernate-futures#comment3</guid><pubDate>Mon, 27 Apr 2009 07:52:01 GMT</pubDate></item><item><title>Ayende Rahien commented on NHibernate Futures</title><description>Jason,
  
No, not really.
  
But Future will automatically fail over to use standard queries if the feature is not supported on the database you are using
</description><link>http://ayende.com/3979/nhibernate-futures#comment2</link><guid>http://ayende.com/3979/nhibernate-futures#comment2</guid><pubDate>Mon, 27 Apr 2009 07:39:39 GMT</pubDate></item><item><title>Jason commented on NHibernate Futures</title><description>So other than the change of interface, is there any difference in using this than what we've been doing up to now with MultiCriteria?
</description><link>http://ayende.com/3979/nhibernate-futures#comment1</link><guid>http://ayende.com/3979/nhibernate-futures#comment1</guid><pubDate>Mon, 27 Apr 2009 06:35:01 GMT</pubDate></item></channel></rss>