﻿<?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>Ayende Rahien commented on Reviewing CommunityCourses: A RavenDB application</title><description>Dave,
  
See my blog for previous code reviews that touched on that.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment15</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment15</guid><pubDate>Sat, 31 Jul 2010 09:18:20 GMT</pubDate></item><item><title>Dave commented on Reviewing CommunityCourses: A RavenDB application</title><description>What is the problem with the account service?  Is it just too complicated?  The way I see it, it is necessary to implement them as a service so that they can be mocked later.  I suppose though, you will probably not be unit testing the controllers directly and in isolation since they have to inherit from the base asp.net controller class.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment14</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment14</guid><pubDate>Sat, 31 Jul 2010 07:36:11 GMT</pubDate></item><item><title>tobi commented on Reviewing CommunityCourses: A RavenDB application</title><description>That is true.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment13</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment13</guid><pubDate>Thu, 29 Jul 2010 12:19:40 GMT</pubDate></item><item><title>Ayende Rahien commented on Reviewing CommunityCourses: A RavenDB application</title><description>Tobi,
  
The problem is that you'll have to go to the server multiple times.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment12</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment12</guid><pubDate>Thu, 29 Jul 2010 11:15:32 GMT</pubDate></item><item><title>tobi commented on Reviewing CommunityCourses: A RavenDB application</title><description>I don't thinks so because the indexes are materialized (as I understood it). Reading from them should be cheap. The difference is just that the indexes are maintained automatically at write time instead of manually at write time. Am I correct with this?
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment11</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment11</guid><pubDate>Thu, 29 Jul 2010 11:10:06 GMT</pubDate></item><item><title>Ayende Rahien commented on Reviewing CommunityCourses: A RavenDB application</title><description>Tobi,
  
The problem is that you shift the burden to the read time, rather than the write time.
  
That make it more expensive to work with.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment10</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment10</guid><pubDate>Thu, 29 Jul 2010 07:04:43 GMT</pubDate></item><item><title>Soe Moe commented on Reviewing CommunityCourses: A RavenDB application</title><description>Just curious, LogOff action's httpmethod should be POST or GET?
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment9</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment9</guid><pubDate>Thu, 29 Jul 2010 03:10:14 GMT</pubDate></item><item><title>tobi commented on Reviewing CommunityCourses: A RavenDB application</title><description>I would try to store the very most of the data normalized and define indexes en masse. That would save the development effort of maintaining the denormalized documents and seemingly has no disadvantages.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment8</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment8</guid><pubDate>Wed, 28 Jul 2010 19:31:23 GMT</pubDate></item><item><title>Alex Simkin commented on Reviewing CommunityCourses: A RavenDB application</title><description>Never mind.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment7</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment7</guid><pubDate>Wed, 28 Jul 2010 15:59:12 GMT</pubDate></item><item><title>Alex Simkin commented on Reviewing CommunityCourses: A RavenDB application</title><description>Still no luck - first 5 indexes are OK, but then:
  
  
{"{\r\n  \"Url\": \"//indexes/AllStudents\",\r\n  \"Error\": \"System.InvalidOperationException: Could not understand query: \\r\\n-- line 3 col 9: \\\")\\\" expected\\r\\n\\r\\n   at Raven.Database.Linq.QueryParsingUtils.GetVariableDeclarationForLinqMethods(String query)\\r\\n   at Raven.Database.Linq.DynamicViewCompiler.TransformMapDefinitionFromLinqMethodSyntax(String&amp; entityName)\\r\\n   ...
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment6</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment6</guid><pubDate>Wed, 28 Jul 2010 15:55:15 GMT</pubDate></item><item><title>Ayende Rahien commented on Reviewing CommunityCourses: A RavenDB application</title><description>Uncomment the CreateIndexes in the Global.asax
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment5</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment5</guid><pubDate>Wed, 28 Jul 2010 15:41:57 GMT</pubDate></item><item><title>Alex Simkin commented on Reviewing CommunityCourses: A RavenDB application</title><description>How to initialize the database in this application? All am getting after login is "There is no index named: AllPeople".
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment4</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment4</guid><pubDate>Wed, 28 Jul 2010 14:47:23 GMT</pubDate></item><item><title>Roland commented on Reviewing CommunityCourses: A RavenDB application</title><description>It would be great if the original sample could be updated integrating Ayende's comments.
  
  
I am thinking of what Ayende said about the embedded references in the sample model (among other things).
  
  
Ayende, in an upcoming post, could you inform us of the availability of the updated community course sample?
  
  
Thanks a lot :)
  
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment3</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment3</guid><pubDate>Wed, 28 Jul 2010 12:45:23 GMT</pubDate></item><item><title>Andy Long commented on Reviewing CommunityCourses: A RavenDB application</title><description>@Martin yes, you would have to update all the other roots which contain the denormalized data. Raven does support set operations
  
  
Good read :) some nice ideas in the original code and your suggestions for making improvements.
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment2</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment2</guid><pubDate>Wed, 28 Jul 2010 10:18:06 GMT</pubDate></item><item><title>Martin commented on Reviewing CommunityCourses: A RavenDB application</title><description>"Instead of pulling all of this data at read time (very expensive), we are going to denormalize the data at write time, leading to a document that looks like this"
  
  
(haven't used RavenDB yet, so sorry if this is a stupid question) How do you handle updates of the denormalized data in that case? E.g. in the above example, if the person's name changes, would you have to update all documents which contain this (denormalized) data?
</description><link>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment1</link><guid>http://ayende.com/4564/reviewing-communitycourses-a-ravendb-application#comment1</guid><pubDate>Wed, 28 Jul 2010 10:09:44 GMT</pubDate></item></channel></rss>