1: select all the file ID's of gorfs inodes/segments etc for each file and put them in the new nfs_data table 2: Add a column "batch_number" 3: Select 10000 rows from the nfs_data table and give them all the same batch number 4: Write some sql to select how many unique batch numbers there are so we know how many time the script will run.