﻿<?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>Afif commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>and what if you wish to populate properties on a reduce result at query time? how can this be done with one round trip to the database</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment7</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment7</guid><pubDate>Fri, 08 Mar 2013 01:57:27 GMT</pubDate></item><item><title>Barry Hagan commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>This is really nice and clean.  Especially on the Load&lt;TR, T&gt; calls to get a partial document directly from the database - I think a lot of people have been looking for that one.</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment6</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment6</guid><pubDate>Fri, 08 Mar 2013 00:32:18 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>Sean,
This is a 2.5 feature.</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment5</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment5</guid><pubDate>Thu, 07 Mar 2013 14:37:21 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>Johanne,
Yes, we are deprecating the TransformResults. And there is NO perf difference between the two.
Both of those happened at _query time_, not at indexing time.
And doing projections on the client side is only useful if you need the entire document. If you want to get just some of the data out, it is probably easier with result transformer.</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment4</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment4</guid><pubDate>Thu, 07 Mar 2013 14:37:00 GMT</pubDate></item><item><title>Sean Feldman commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>Is this in v2.0? http://ravendb.net/docs/2.0/ doesn't mention this...</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment3</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment3</guid><pubDate>Thu, 07 Mar 2013 14:31:48 GMT</pubDate></item><item><title>Matt Warren commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>@Johannes

No the existing TR aren't materialised, they are only applied at query time. The new TR will work in the same way, but they difference is that they are de-coupled from an index, i.e they can be re-used by different indexes, you can use the same index with/without a TR etc.

To materialise you need to use Store in the index. That puts the fields into the index where they can be fetched from, rather than having to go an get the entire doc from the doc store. See "Field Options" on http://ravendb.net/docs/client-api/querying/static-indexes/configuring-index-options

With regards to TR v Loading and Include, it makes most sense to use a TR if  you want to cut-down on network bandwidth. Loading via Include will pull back entire docs</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment2</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment2</guid><pubDate>Thu, 07 Mar 2013 12:19:06 GMT</pubDate></item><item><title>Johannes Rudolph commented on Rob&amp;rsquo;s Sprint: Result Transformers</title><description>Does that mean TranformResults on idexes will be deprecated? Whats the cost of an index result transform vs these new standalone result tranforms? I thought (but may be wrong) that TransformResults as part of an index is materialized, so it's blazingly fast. 

Also, when in general would you advice using ResultTransformers vs. Loading a related document via .Include and the projecting viewmodels on the client? 

</description><link>http://ayende.com/161346/rob-s-sprint-result-transformers#comment1</link><guid>http://ayende.com/161346/rob-s-sprint-result-transformers#comment1</guid><pubDate>Thu, 07 Mar 2013 11:20:11 GMT</pubDate></item></channel></rss>