1. A method comprising: receiving a query directed to a database; identifying a plurality of files within the database to process in order to generate a response to the query; identifying a plurality of execution nodes available to process the plurality of files; creating a plurality of scansets and assigning each scanset thereof to a different node of the plurality of execution nodes based on a file assignment model, wherein each scanset of the plurality of scansets includes a different portion of the plurality of files and each file of the plurality of files is found somewhere within the plurality of scansets; processing, by the plurality of execution nodes, the multiple scansets in parallel; determining, during the processing, that a first execution node has finished processing all files in its assigned scanset of the plurality of scansets; responding to the determining by identifying an unprocessed file within a scanset of the plurality scansets that was assigned to a second execution node, and assigning the unprocessed file to the first execution node to be processed thereby; and generating, based on the processing, the response to the query.