I have an android app which involves login to the app and it performs many CRUD operations. When user logins first time, it logs him/her quickly if there is any data available for that user that will be downloaded. But later on when re-login again, theprocess is very slow, sometimes it takes around 20 to 30mins. So, I read about using VACUUM to avoid free space created when the record is deleted.
I am bit confused when and how to use VACUUM, is it while opening the database that is when user login ? or some other time.
Any suggestions on this would be helpful. Thanks