<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,4 @@
 Parts of this are taken or inspired by Geoffrey Grosenbach's travel_app which is part of his CouchDB screencast.
 
-Jan Lehnardt got me started on doing this.
\ No newline at end of file
+Jan Lehnardt - got me started on doing this.
+Brian Candler - contributed performance patches
\ No newline at end of file</diff>
      <filename>CREDITS</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,8 @@
-* generate real uuids when using couchdb &lt; 0.9
\ No newline at end of file
+* generate real uuids when using couchdb &lt; 0.9 (or just don't support &lt; 0.9. probably the way to go)
+* solve sorting (see sorting branch)
+* #{name}= on has_many collections should do #{name}.clear
+before adding items, to be consistent with ActiveRecord
+(&quot;collection=objects: Replaces the collections content by deleting and
+adding objects as appropriate.&quot;)
+* view storage could be reduced by not emitting the doc, but using
+ include_docs=true at query time
\ No newline at end of file</diff>
      <filename>TODO</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,8 @@ module CouchPotato
         self.name = name
         accessors =  &lt;&lt;-ACCESSORS
           def #{name}
-            @#{name} || @#{name}_id ? #{item_class_name}.find(@#{name}_id) : nil
+            return @#{name} if instance_variable_defined?(:@#{name})
+            @#{name} = @#{name}_id ? #{item_class_name}.find(@#{name}_id) : nil
           end
           
           def #{name}=(value)
@@ -20,8 +21,8 @@ module CouchPotato
           end
           
           def #{name}_id=(id)
+            remove_instance_variable(:@#{name}) if instance_variable_defined?(:@#{name})
             @#{name}_id = id
-            @#{name} = nil if id.nil?
           end
         ACCESSORS
         owner_clazz.class_eval accessors</diff>
      <filename>lib/couch_potato/persistence/belongs_to_property.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>dc45f4eb235044253a07a725a40ad539b4b11b3f</id>
    </parent>
  </parents>
  <author>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </author>
  <url>http://github.com/langalex/couch_potato/commit/6146776dee7fef5a31f464ee1c83906394edc1d0</url>
  <id>6146776dee7fef5a31f464ee1c83906394edc1d0</id>
  <committed-date>2009-02-03T15:15:24-08:00</committed-date>
  <authored-date>2009-02-03T15:15:24-08:00</authored-date>
  <message>more performance improvements for belongs_to associations</message>
  <tree>2111a17d42d8ae6256e4a090f041bb94c04cbe95</tree>
  <committer>
    <name>Alexander Lang</name>
    <email>alex@upstream-berlin.com</email>
  </committer>
</commit>
