We are doing the cleanup activity, where the old nodes(custom) are being deleted from each user profiles. since this is affecting huge number of nodes, we implemented a scheduler to take input as "/home/users/A" and start deleting the nodes which falls under some date criteria.
Scheduler is working for 2 to 3 times (deleting 20000 nodes each time). after that it is throwing session timeout error.
we tried following approaches but no luck.
1. indexing the properties
2. removing session.logout() from the code
2. used session.refresh(1)
Any advise will be helpful.
Thanks in advance
Solved! Go to Solution.