I am using async_observer plug-in.
I am having two models Listener and Webhits, in which Listener
webhits* is the association.
When I am deleting Listener It should delete all the webhits
to that Listener.
When the data is less every thing is fine and corresponding
Now In My Database each Listener is holding more than 2lakhs of records.
When I am trying to delete Listener I am getting ana error and Mysql is
*@listener *is my Listener object
In my Controller, destroy method I added the following line
@listener.async_send(:destroy). because I am using async_observer
But Its not deleting if the listener is having more records and Mysql
Can any one suggest me how to delete the records batch wise(10,000) from
DB so that Mysql might not hangs.
Thanks In advance.