Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
one rails, multiple DBs
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Marcelo Barbudas  
View profile  
 More options Feb 10 2010, 10:56 am
From: Marcelo Barbudas <nos...@gmail.com>
Date: Wed, 10 Feb 2010 07:56:50 -0800 (PST)
Local: Wed, Feb 10 2010 10:56 am
Subject: one rails, multiple DBs
Hi.

I'm in a situation where I have to provide a hosted Rails App
solution. I'm running Apache with passenger in the backend.

What is the proper way to change the DB depending on the subdomain?
Should I use data_fabric?

--
R.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marnen Laibow-Koser  
View profile  
 More options Feb 10 2010, 11:05 am
From: Marnen Laibow-Koser <li...@ruby-forum.com>
Date: Wed, 10 Feb 2010 17:05:59 +0100
Local: Wed, Feb 10 2010 11:05 am
Subject: Re: one rails, multiple DBs

Marcelo Barbudas wrote:
> Hi.

> I'm in a situation where I have to provide a hosted Rails App
> solution. I'm running Apache with passenger in the backend.

> What is the proper way to change the DB depending on the subdomain?
> Should I use data_fabric?

Generally, you don't need a separate DB for each subdomain.  One big DB
is usually better.

> --
> R.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo Barbudas  
View profile  
 More options Feb 10 2010, 12:58 pm
From: Marcelo Barbudas <nos...@gmail.com>
Date: Wed, 10 Feb 2010 09:58:43 -0800 (PST)
Local: Wed, Feb 10 2010 12:58 pm
Subject: Re: one rails, multiple DBs
Hi,

> Generally, you don't need a separate DB for each subdomain.  One big DB
> is usually better.

It's a high volume app, that's written as a standalone service.
Extending it as a hosted solution and keeping updates nice is a big
part of what the project is about.

--
Cheers,
M.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marnen Laibow-Koser  
View profile  
 More options Feb 10 2010, 1:02 pm
From: Marnen Laibow-Koser <li...@ruby-forum.com>
Date: Wed, 10 Feb 2010 19:02:48 +0100
Local: Wed, Feb 10 2010 1:02 pm
Subject: Re: one rails, multiple DBs

Marcelo Barbudas wrote:
> Hi,

>> Generally, you don't need a separate DB for each subdomain. One big DB
>> is usually better.

> It's a high volume app, that's written as a standalone service.
> Extending it as a hosted solution and keeping updates nice is a big
> part of what the project is about.

And all of that would be easier with one big DB, at least as far as
you've described.

> --
> Cheers,
> M.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
mar...@marnen.org
--
Posted via http://www.ruby-forum.com/.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcelo Barbudas  
View profile  
 More options Feb 10 2010, 1:34 pm
From: Marcelo Barbudas <nos...@gmail.com>
Date: Wed, 10 Feb 2010 10:34:18 -0800 (PST)
Local: Wed, Feb 10 2010 1:34 pm
Subject: Re: one rails, multiple DBs
Hi.

> > It's a high volume app, that's written as a standalone service.
> > Extending it as a hosted solution and keeping updates nice is a big
> > part of what the project is about.

> And all of that would be easier with one big DB, at least as far as
> you've described.

You are right, it would definitely be easier if this App was written
with a hosted version in mind. Unfortunately it isn't.

Still, the volume of traffic and DB size of the app means that if
someone grows bigger we want to be able to quickly move it to
something dedicated.

--
Cheers,
R.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
myobie  
View profile  
 More options Feb 10 2010, 1:51 pm
From: myobie <myo...@gmail.com>
Date: Wed, 10 Feb 2010 10:51:05 -0800 (PST)
Local: Wed, Feb 10 2010 1:51 pm
Subject: Re: one rails, multiple DBs
DataMapper out of the box will let you use multiple databases,
although these need to be known at app boot time.

For ActiveRecord, this article might lead you somewhere:
http://tomayko.com/writings/rails-multiple-connections

Nathan

On Feb 10, 1:34 pm, Marcelo Barbudas <nos...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »