1 comment

[ 2.6 ms ] story [ 9.4 ms ] thread
I think the actual lesson here is to use a real database, on a server. Counting 200K rows, even with long keys, takes less than a millisecond on a low-end MySQL instance.