Our system has a large number of stock records for items that when they reach a count of 0, aren’t likely to be used again for months or years. We have an SQL statement to find these records and remove them from our stock table to clean it up so we don’t have thousands of empty rows to search through when running other queries. Rather than directly modifying a crucial table like ‘stock’ we opted to add them in a T-Table called ‘t_stock’ with the delete modifier. We then run a T-Import to delete these rows as a safer alternative, and also to trigger any business rules when they are modified.
We are able to schedule the SQL query to run on a set schedule say, every night at 11pm.
Is it possible to schedule a T-Import for this table to run at a similar time so it doesn’t have to be manually run? What other solutions might be possible when working with such a critical table?