On Sep 19, 8:59 pm, Marnen Laibow-Koser <li...@ruby-forum.com> wrote:
> Robert Pankowecki wrote:
> > I can see some other advantages.
> > You can easily split your application into multiple servers.
> Any decent DB server can do that with one DB.

I know. I meant the situation when there are so many data that you
want to split them into multiple databases. When you already have
multiple database then you just move them to a different server.
Otherwise a little more job is required. Not related to topic.

> > The code to write is easier because you do not have to think whole
> > time about the organization condition to add every to every sql query.
>
> That's what scopes are for.

You mean default_scope ?

How do you make a default_scope that applies to dynamic situation like
ex. query only things from the organization that currently logged user
belongs to ?

Robert Pankowecki

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to rubyonrails-t...@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to