Also a billion rows of data isn't really so much, depending on what you're storing.
(I'm trying to get 250 million rows (of 1 character) into a db to see how fast it counts when in memory. Still inserting)
Edit: TSQL, counting 268 million rows all mem resident, 7-year old CPU, forcing it to use 1 core is 12 secs, allowing it to parallelise over 2 cores (all I have) is 8 secs.
This is for comparison to "I did a simple test with five TiKV nodes, one TiFlash node, and one table with 250 million rows of data. I tried to count the table records. When I queried by index in TiKV, it took me more than 40 seconds to get the result. But when I queried in a single TiFlash node, it took only 10 seconds."
I used single bytes per row but I know from prior testing that fat rows and thin rows count about the same speed.