I have an inventory input page that I am working on and I am running into an issue where I need to create more than 10k records. The problem here is that all the information needed is not stored in an object but captured on the web page. Inventory numbers are entered and difference calculations are done to determine how many records to create. A record is created for each number in between 2 numbers the user inputs. The case I just tried and hit the limitation on attempted to create 27,500 records.
I assumed that I could use Batch processing but I can only find information related to querying for records and the Start method needs to return a Database.QueryLocator object.
Another option I am considering is breaking the lists into chunks less than 10k per list and calling a series of future methods - this would allow me to insert 100k records. The information could be passed in as a JSON string and broken down on the otherside.
Is anyone aware of something else that I can use to insert this many records with information collected during one execution context?