﻿<?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>Damian Hickey commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Cool. Created the issue: http://issues.hibernatingrhinos.com/issue/RavenDB-969</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment21</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment21</guid><pubDate>Fri, 01 Mar 2013 14:27:21 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Damian,
We have 2K+ tests, most of them with some form of indexes.
We run them a LOT. any saving there would be useful in general.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment20</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment20</guid><pubDate>Fri, 01 Mar 2013 13:05:47 GMT</pubDate></item><item><title>Damian Hickey commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Actually, that may be a nice-to-have from a production pov. An index that is deleted and then re-created, assuming it is exactly the same, would be slightly faster. Don't know how often that would happen though really.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment19</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment19</guid><pubDate>Fri, 01 Mar 2013 12:41:46 GMT</pubDate></item><item><title>Damian Hickey commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Yeah, that sounds good too. Generate a hash from the source, use it as the CompilerParameters.OutputAssemblyName and if the assembly already exists on disk (in a location that will exist between test sessions i.e. users temp dir) load it. 

Or something like that :)</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment18</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment18</guid><pubDate>Fri, 01 Mar 2013 12:37:59 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Damian,
In that case, how about implementing on disk caching for this?</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment17</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment17</guid><pubDate>Fri, 01 Mar 2013 12:24:04 GMT</pubDate></item><item><title>Damian Hickey commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Yes, the cost per test run, where I am run _one test at a time_, in the usual TDD(-ish) scenario. The index compilation caching (which is great) only kicks in when I run 2 or more tests per session. http://i.imgur.com/38DF0fc.png - second test benefits from the caching.

My other approach is to be able to supply a predicate to my application so the test fixture can configure it to only create indexes that are going to be used. But that means my acceptance test fixtures need to know what indexes may be required which I find to be leaky. (I take a different approach with my unit tests, no problems there)

Yes, it's a development pain and not a production issue. I may be an edge case though.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment16</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment16</guid><pubDate>Fri, 01 Mar 2013 12:16:32 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Oh, you are talking about the cost _per test run_, right?
I was thinking about production runs, actually.
In that case, can't you handle this via the index compilation caching that we already have?</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment15</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment15</guid><pubDate>Fri, 01 Mar 2013 11:52:35 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Damian,
There is really no cost in doing the compilation (it happens once, and that is it.)</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment14</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment14</guid><pubDate>Fri, 01 Mar 2013 11:51:40 GMT</pubDate></item><item><title>Damian Hickey commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>RavenDB already caches compiled indexes ( https://github.com/ayende/ravendb/blob/master/Raven.Database/Linq/QueryParsingUtils.cs#L334 , discussion https://groups.google.com/d/msg/ravendb/hsMc4lLnaXU/h0WRLOYog9EJ ) which makes second and subsequent test runs that use create that index much faster.

I'm wondering if it would be possible to configure the indexes to be lazily compiled? That is, compiled and loaded when first queried?

Am currently doing system acceptance tests where we have an increasing number of indexes and am experiencing some time pain (20-30s +) on single test runs.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment13</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment13</guid><pubDate>Fri, 01 Mar 2013 11:48:29 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Alex,
In other words, anything that you can do through the UI can be done in code, and pretty easily, at that.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment12</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment12</guid><pubDate>Fri, 01 Mar 2013 07:18:38 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Alex,
ALL of RavenDB functionality is exposed via REST interface, and you can do absolutely everything the studio does.
After all, the studio just uses HTTP to talk to RavenDB himself, it is not a privileged client.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment11</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment11</guid><pubDate>Fri, 01 Mar 2013 07:18:23 GMT</pubDate></item><item><title>Alex Spence commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>In my still limited experience with Raven, specifically trying to work with bundles like replication and versioning.  I have noticed that its not very straightforward to accomplish certain functionality without using the studio. 

This specific feature is not that big of a deal to us, but we would really love to see functionality like this be configurable without going through the UI.
</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment10</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment10</guid><pubDate>Fri, 01 Mar 2013 01:18:44 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Alex,
No, you can't do that at creation, but you can do that immediately after.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment9</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment9</guid><pubDate>Fri, 01 Mar 2013 00:07:05 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Configurator,
And the reason we wait for 10 minutes on inactivity is that we don't want to get into: "we have 1 second of rest, let us start indexing all the idle indexes, which can be VERY expensive".
</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment8</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment8</guid><pubDate>Fri, 01 Mar 2013 00:06:25 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Configurator,
You can force an index to not go into idle / abandoned mode. But in general, if you have an index that is queried weekly, you can afford to wake it up and then wait for it to catch up.</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment7</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment7</guid><pubDate>Fri, 01 Mar 2013 00:05:33 GMT</pubDate></item><item><title>Ayende Rahien commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Patrik,
This is already available at: http://hibernatingrhinos.com/builds/ravendb-unstable-v2.5</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment6</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment6</guid><pubDate>Fri, 01 Mar 2013 00:04:23 GMT</pubDate></item><item><title>Alex Spence commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Can we get a way to set these flags on the index creators as well?  </description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment5</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment5</guid><pubDate>Thu, 28 Feb 2013 23:33:58 GMT</pubDate></item><item><title>Rob Ashton commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Chris - while not covered explicitly in the entry above, there is a flag to "force idle" and this will be exposed in the studio</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment4</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment4</guid><pubDate>Thu, 28 Feb 2013 15:42:42 GMT</pubDate></item><item><title>Chris Marisic commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>"An index that was automatically set to idle will be set to normal on its first query."

What if you want the index to always be an idle index? Like a reporting index that pulls tons of things together, or a crazy reporting map/reduce that is not relevant to OLTP functionality at all?

</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment3</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment3</guid><pubDate>Thu, 28 Feb 2013 14:45:39 GMT</pubDate></item><item><title>configurator commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>"an abandoned index is one that hasn’t been queried in 72 hours" - so a weekly report will never be up to date?

Also, why do idle indexes wait for 10 minutes of inactivity instead of just working only when all other indexes are up to date?</description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment2</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment2</guid><pubDate>Thu, 28 Feb 2013 14:32:29 GMT</pubDate></item><item><title>Patrik Potocki commented on Rob&amp;rsquo;s Sprint: Idly indexing</title><description>Cool,

When will you push it into the unstable branch so we can test it out? </description><link>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment1</link><guid>http://ayende.com/161218/rob-s-sprint-idly-indexing#comment1</guid><pubDate>Thu, 28 Feb 2013 12:12:27 GMT</pubDate></item></channel></rss>