ileitch / rapns

MOVED TO https://github.com/rpush/rpush
MIT License
289 stars 92 forks source link

Best practise for maintaining rapns_notifications table. #203

Open jimishjoban opened 9 years ago

jimishjoban commented 9 years ago

Hello,

Is there a way to auto-erase (configurable) successful notification sent... So rapns_notifications table does not grow in size...

I just realised that my rapns_notifications table had grown to 22030769 rows and hence becoming increasingly slow...

Do you suggest to write a background job to clean up successful notifications or is there a better way to manage?

Thanks!