still not working
the code wasn't thread-safe; I fixed that and had to decrease the counter to 10k (from 100k) or the "read records one at a time" part would take too long