Matteo Folin wrote in post #967435: > What is the best way to sync my rails model with an external database ?
What exactly is your use case for this? It's hard to give advice on a question that vague. > > I can use a callback on my model to update the external table. But in > the other direction, when the external db change some data and would > sync my activerecord model ? I can only think at a REST request of > update of some record. Or a cron sync script, problematic with large db. > There's better solutions ? > >From the little you've said, REST sounds like a good solution. But...why do you need to synchronize at all? Can you just query the external DB as necessary and avoid duplicating the data? > thanks. Best, -- Marnen Laibow-Koser http://www.marnen.org [email protected] -- Posted via http://www.ruby-forum.com/. -- 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

