My test database has about 25,000 rows in the resource_params table, and the migration takes 1.7 seconds. So even if we're an order of magnitude beyond that, it shouldn't be too bad!