Hi Krit,
Since there are no such things as ofset and limit functions, you need to do this yourself.
E.G. you could end the loop using the break statement after creating 5.000 instances (find a suitable number working for your situation) and thus have the remaining instances unprocessed.
Then repeat calling the MDR until no instances remain.
Hope to help,
Ludger