views:

19

answers:

1

I have a website which useses a mysql database for its whole operation . But for a new requirement i need to query a external oracle database( used by other component) and compile a list of items and display in a page in the website. How is it possible to connect to a external database just for rendering a single page.

And is it possible to cache the queried result for say 1 month before invalidating the cache and get the updated list of items. i dont want query the external oracle db for each request.

A: 

Why not a monthly job that just copies the data from the Oracle database into the MySQL database ?

Gary
my doubt is, how will i connect to the oracle from my rails application. i do not want that oracle db details in the database.yml file. Just create a connection from a ruby file and query the oracle database. And monthly job from the rails app possible?
railscoder