Ah yes -- take a look at Octopus as a starting point. Sequel has similar
functionality built in at the library level.

https://github.com/tchandy/octopus

-p

On Tue, Jan 17, 2012 at 11:34 AM, Tom <[email protected]> wrote:

> Does anyone know the best way to do this? I posted on Stackoverflow
> with my use-case:
>
> Heroku's database followers are pretty cool. They allow you to create
> a separate database that automatically keeps in sync with your master
> DB.
>
> I want to use this technology to access my follower database instead
> of my master database for expensive read operations (but obviously I
> always want to write to my master database)
>
> Is it possible to access both databases (the master for writing and
> the follower for reading) while I'm in my production environment? My
> ideal API would be something like Post.use_db(:follower).find(1) or
> Post.find(1, :use_db => :follower)?
>
> http://stackoverflow.com/questions/8900570
>
> --
> You received this message because you are subscribed to the Google Groups
> "Heroku" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/heroku?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to