Delete multiple records from 'sys_user_grmember'
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-24-2024 11:44 PM
Hi Folks,
I am trying to delete record from "sys_user_grmember" table if user is not active but still part of active group. Below is the scheduled job i am trying with but its taking time to remove the records form "sys_user_grmember" table however this table has 600 records.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 12:11 AM
Hello @Vijay Baokar
Is this one time activity?
If yes, the same script can be executed via Fix script where you can see progress workers and know the status.
This will take around same time even if you do it manually from front end.
Please mark this answer as helpful and correct if helped
Kind Regards,
Ravi Chandra.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 12:25 AM
Hi @Ravi Chandra_K What if we want to run the same script during weekend for cleanup data? Just to make sure we don't have irrelevant data in the system.
But parallelly we have a BR as well which will run whenever user is moved from active True to active false then the same thing we are doing in BR as well, deleing records from sys_user_grmember.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 12:32 AM
If it's regular cleanup data, then scheduled job. Much better if it's weekend for better system performance. On the amount of time for this activity, I don't think there's any way for quick cleanup as it takes the same amount of time to delete the records from database. (either from any script or manual activity).
Please mark this answer as helpful and correct if helped. This helps both community and me
Kind Regards,
Ravi Chandra