Other than being quite expensive the whole thing, you will be able to get all your entities right away.
Note that iterating through millions of entities will require to use Tasks and if that is not enough, since they have a deadline of 10 minutes, you should consider using Backends.