I am new to Ruby on Rails. I am using PostgreSQL
database with Ruby
and Rails 3.2.13
. We already created 200K
rows of records in PostgreSQL
database. I need to send the same 200K records to another standalone windows application
.I created a ROR REST API for this purpose. Currently the REST API takes long time to process the data and gets time out after 3 mins.
I am sending 1000 records at a time so that the API will send 1 - 1000 then 1001 - 2000 and so on. This is avoiding the time out. Is this a good approach in handling bulk data.
Do ROR have any build in function to handle this type of operation. Please help me.
Thanks
Aucun commentaire:
Enregistrer un commentaire