Reputation: 1026
My current project I am pulling data from a remote database and saving it locally. During some stress test we are seeing horrible results with writing to a database. To give you some perspective:
I'm not sure what's fast/slow, but obviously we can't let the web-page hang around like that. My next thought would be a CRON job, but heroku only allows 1 cron job an hour. That would be a start but we could eventually need more.
The way I'm pulling the data from the remote is:
Maybe theres a faster way with ruby?
Upvotes: 1
Views: 295
Reputation: 53921
There are also other ways of doing this. All databases have a bulk export utility: mysqldump/load data infile comes to mind for mysql. If you are just copying data from one database to another, this is definitely the preferred way. Going through the app is bound to be slow.
Upvotes: 1