DEV Community

Discussion on: Code Dojo #3: Low latency

Collapse
 
nchrisz profile image
Chris

Ah, should have explained it better. Think that the data is
low,high,country
0,9,France
10,19,UK
20,29,Ireland

So if a request is made of 9 the corresponding row would be returned i.e 0,9,France

Collapse
 
curtisfenner profile image
Curtis Fenner

So, you are looking up rows that match exactly in the second column?

Thread Thread
 
nchrisz profile image
Chris

I'm looking up rows that match the range the columns provide. The first column is lower end of a range, the second column is higher end of a range. When a request comes in, it will try to match which range it belongs to and return that data