Hi Andrew,
I would suggest you reach out to our Support team for details on how they can assist in turning this around. But you have certainly hit an issue that many of our customers have experienced during their scaling of their digital workers, and in fact a key factor that would grind your Blue Prism database to a halt.
We have a version of the house keeping script that can trim records based on a set number, to avoid locking up the database while performing archiving. This should be suitable to help with the sitaution you have on hand. Again, I would suggest you reach out to our support team so they can take you through the process.
Another key takeaway is that you should build plans to monitor the growth of various tables, with the session log table being the key. This will give you an idea on how newly introduced processes will affect the size of your database growth. In some instance, you may be able to catch processes that are doing excessive logging than they suppose to be. You should look at regularly reviewing your archiving process so it remains relevant to the increasing volume of data in the database.
Lastly, Blue Prism database is quite transactional, and the volume of data can be quite high. The requirement of having the data there does not necesasrily mean that the data must be hosted within the database. You can certainly consider piping the data out to a third party system, i.e., a dashboard solution, so that data can be made visible there instead. In many large customers, we have advised them keeping session log data for no longer than 2 weeks. This ensures the underlying database can be as performant as possible.
Hope the above helps.