Ankit Varshney
2010-Jan-08 09:20 UTC
Horizontal partitioning of database to scale the ROR application
I want to do horizontal partitioning of database to scale my application. Is there any way to do that Ruby on Rails application. -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ankur
2010-Jan-08 10:53 UTC
Re: Horizontal partitioning of database to scale the ROR application
Masochism can solve your problem definitely(An easy solution for Ruby on Rails applications to work in a replicated database environment) http://github.com/technoweenie/masochism ~ Ankur Gupta Hyderabad, India On Jan 8, 2:20 pm, Ankit Varshney <ankit.varsh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I want to do horizontal partitioning of database to scale my > application. Is there any way to do that Ruby on Rails application.-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Ankit Varshney
2010-Jan-08 10:58 UTC
Re: Re: Horizontal partitioning of database to scale the ROR application
That is good plugin but instead of based on the ActiveRecord method call I want to do it on the query type. If the query is insert/update/delete then query will execute on master database otherwise all the select query will execute on slave. On Fri, Jan 8, 2010 at 4:23 PM, Ankur <shank27-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Masochism can solve your problem definitely(An easy solution for Ruby > on Rails applications to work in a replicated database environment) > > http://github.com/technoweenie/masochism > > > ~ > Ankur Gupta > Hyderabad, India > > On Jan 8, 2:20 pm, Ankit Varshney <ankit.varsh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > I want to do horizontal partitioning of database to scale my > > application. Is there any way to do that Ruby on Rails application. > > -- > 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > > >-- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jan-08 15:29 UTC
Re: Horizontal partitioning of database to scale the ROR ap
Ankit Varshney wrote:> I want to do horizontal partitioning of database to scale my > application. Is there any way to do that Ruby on Rails application.Why not let the DB server do this? Most good DB servers have intelligent ways of splitting the DB and still letting it appear as one DB to the app. Check the docs for your server. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. --0015174760d8beb398047ca8db28 Content-Type: text/plain; charset=ISO-8859-1 -- 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-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. --0015174760d8beb398047ca8db28--