I currently have two SOA applications (soa1 and soa2), each with their own database. I would like to create a third application (report1) which somehow merges these databases and provides reports. I was thinking, if I could get soa1 and soa2 to use WAL-E, then report1 could potentially become a read slave and I could use a multi-tenant solution.
I want to join data across soa1 and soa2, so it's important that I have access to both in a single query.
There are three ways I think I can do this
- Take my databases off of heroku, setup three databases on my own (ick)
- Magically have one database instance on heroku follow soa1 and soa2
- Leave everything as it is and inject data into queries, using CTE (also ick)
I don't even know if I can have two separate WALs read into a database, under different schemas... But if I can, I assume I'll have to go with option 1, because I assume heroku doesn't support what I want to do...
Barring all of that, does anyone have any other thoughts on how this could be accomplished?