Glen Stampoultzis
2006-Feb-07 10:53 UTC
[Rails] Is acts as nested set safe in a concurrent environment?
Hi I was wondering if acts_as_nested_set can be used safely with concurrently updates? The fact that so much of the tree needs to be rewritten on inserts concerns me. Is anyone actually using it. I noticed that the status of acts_as_nested_set was unclear at the time the rails book was written. Regards, Glen
Jan Prill
2006-Feb-07 12:57 UTC
[Rails] Is acts as nested set safe in a concurrent environment?
Hi, on a project of mine I''m messing around with b_prime_tree which is another nested_set implementation by the creators of hieraki. But I''ve got the same "bad feelings" about larger trees and their updates that you seem to have. I''ve already thought about building my trees in xml files, since xml feels a so much more natural choice for trees than sql is, but am not yet willing to trade the niceties of ar (and pure rdbms relationships in general) for my trees. keep us posted about your progress on trees. Best Regards Jan Prill 2006/2/7, Glen Stampoultzis <gstamp@gmail.com>:> > Hi I was wondering if acts_as_nested_set can be used safely with > concurrently updates? The fact that so much of the tree needs to be > rewritten on inserts concerns me. Is anyone actually using it. I > noticed that the status of acts_as_nested_set was unclear at the time > the rails book was written. > > Regards, > > Glen > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060207/cc82eb41/attachment.html
Alexander Horn
2006-Feb-15 14:47 UTC
[Rails] Re: Is acts as nested set safe in a concurrent environment?
Make sure you download the most recent copy of the b_prime_tree library. ( http://www.hieraki.org/trac/browser/trunk/app/models/wiki/b_prime_tree.rb ) Alex -- Posted via http://www.ruby-forum.com/.