Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Activity (RSS)

Monday, April 28 2008
15 Figure out how to organize views for associations was updated
  • Yurii Rashkovskii
    Yurii Rashkovskii commented at 8:58 AM

    One of my concerns is that having N views to execute on each index update for N associations defined within database might be PIA

  • Yurii Rashkovskii
    • Title changed from Consider allowing unnamed views to Figure out how to organize views for associations
    by Yurii Rashkovskii at 8:45 AM

    The picture you're trying to describe is not clear for me.

    Here is an attempt to summarize:

    Lets say we have a view for all has_many associations:

    (the code...

  • Oleg Andreev
    Oleg Andreev commented at 8:27 AM

    There is no need in nslurl for container: it is identified by UUID in a key.

    For The Very Generic Has Many View, yes, we have to put a meta name along with it...

  • Yurii Rashkovskii
    Yurii Rashkovskii commented at 8:19 AM

    Please note that "{container}_has_many_{items}" will need to include nsurls for both container and items as well. Is that fine?

  • Oleg Andreev
    Oleg Andreev commented at 8:14 AM

    I think things get easier when you do name a view like "has_many_{items}" or "{container}_has_many_{items}".

    If we'd like to put all the "has_many" assocs int...

1 earlier change…
  • Yurii Rashkovskii
    Yurii Rashkovskii created the ticket at 6:37 AM

    The idea is to allow unnamed views. They should be quite useful for associations, something like

    User = Meta.new
      has_many :items
    end
    

    produces following ...

14 has_many association based on Views was updated
Merge branch 'master' into new-views ... was committed by Yurii Rashkovskii at 12:34 AM
fixed spec for Time encoding (microse... was committed by Yurii Rashkovskii at 12:34 AM
Merge branch 'master' into new-views ... was committed by Yurii Rashkovskii at 12:31 AM
fixed slot_spec http://github.com/yra... was committed by Yurii Rashkovskii at 12:30 AM
13 Views view (find view by name) was updated
slot_spec.rb: fuzzy matching with Tim... was committed by Yurii Rashkovskii at 12:14 AM
Sunday, April 27 2008
14 has_many association based on Views was updated
  • Yurii Rashkovskii
    • State changed from new to open
    by Yurii Rashkovskii at 11:59 PM

    started views-based-associations branch (http://github.com/yrashk/stroked...)

  • Yurii Rashkovskii
    Yurii Rashkovskii commented at 11:48 PM

    While it might be interesting to do a single view for comments, I think we should pay attention to this kind of special cases later — and as for now we only ne...

  • Yurii Rashkovskii
    • Assigned user set to Yurii Rashkovskii
    by Yurii Rashkovskii at 11:44 PM
  • Oleg Andreev
    Oleg Andreev created the ticket at 11:42 PM
    Article = Meta.new do
      has_many :comments
    end
    
    BlogPost = Meta.new do
      has_many :comments
    end
    

    produces =>

    View.define(:name => "has_many_comments") d...
0.0.4 was updated by Yurii Rashkovskii at 11:50 PM 1 more event
 
5 of 5 tickets remain in this milestone
0.0.3 was updated by Yurii Rashkovskii at 11:41 PM
 
6 of 32 tickets remain in this milestone
13 Views view (find view by name) was updated
  • Yurii Rashkovskii
    Yurii Rashkovskii commented at 11:26 PM

    do you mean that you want Views be a view itself? Willn't be easier to UUIDv5 views with their name and "view:" namespace?

  • Yurii Rashkovskii
    Yurii Rashkovskii commented at 11:12 PM

    What about something like

    class Views
      def [](name)
        # ...
      end
    end
    

    ?

  • Oleg Andreev
    Oleg Andreev created the ticket at 11:09 PM

    Views["some_view"] # => #<{View} name: "some_view" >

added class Views as a wrapper for Vi... was committed by Yurii Rashkovskii at 11:13 PM
Merge branch 'master' into new-views ... was committed by Yurii Rashkovskii at 10:56 PM
renamed skiplist benchmark to more sa... was committed by Yurii Rashkovskii at 10:56 PM
simple_skiplist benchmark updated htt... was committed by Yurii Rashkovskii at 10:56 PM
12 Figure out efficient skiplist serialization technique was updated
  • Oleg Andreev
    Oleg Andreev commented at 10:43 PM

    Some thoughts on skiplist serialization strategy:

    1) Skiplist must be mapped to memory.

    2) On modification we write to the end of "operation log".

    3) Time t...

fixed random bug with random uuids so... was committed by Yurii Rashkovskii at 9:39 PM
spec for view.find :key => ... added ... was committed by Yurii Rashkovskii at 9:31 PM
spec for view insertion & find http:/... was committed by Yurii Rashkovskii at 9:09 PM
updated views.txt http://github.com/y... was committed by Yurii Rashkovskii at 9:09 PM
fixed comments for default_key_encode... was committed by Yurii Rashkovskii at 8:17 PM
default_key_encoder: Time handling ht... was committed by Yurii Rashkovskii at 8:14 PM
Merge branch 'master' into new-views ... was committed by Yurii Rashkovskii at 8:14 PM
refactored dump prefix http://github.... was committed by Yurii Rashkovskii at 8:14 PM
added xmlschema serialization format ... was committed by Yurii Rashkovskii at 7:58 PM
removed stupid comments http://github... was committed by Yurii Rashkovskii at 7:22 PM
view.rb: changed API from View.find_o... was committed by Yurii Rashkovskii at 1:42 PM
dropped :on_duplicate_key option http... was committed by Yurii Rashkovskii at 1:42 PM
view_storage: fixed @skiplist var nam... was committed by Yurii Rashkovskii at 1:30 PM
view_storage.rb: renamed @skiplist ->... was committed by Yurii Rashkovskii at 1:30 PM
changed ViewStorage#find to work with... was committed by Yurii Rashkovskii at 1:30 PM
added specs for all SimpleSckiplist#s... was committed by Yurii Rashkovskii at 1:08 PM
view.rb: #update_head handles situati... was committed by Yurii Rashkovskii at 9:59 AM
storage-5 bug appears to be back http... was committed by Yurii Rashkovskii at 9:59 AM
moved stuff from SearchSkiplist to Si... was committed by Yurii Rashkovskii at 9:59 AM
Merge branch 'master' into new-views ... was committed by Yurii Rashkovskii at 9:59 AM
resolved conflict in a view_storage.r... was committed by Yurii Rashkovskii at 9:59 AM