Is this simply a case of doing 10k sequential inserts in 10k sequential transactions? That's expected to be slow.