Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
puthre
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
2 ms
·
1.
▲
by
puthre
6y ago
Can I install redis on it?
2.
▲
by
puthre
6y ago
Can you swap on it?
3.
▲
by
puthre
12y ago
1. Count N 2. compute p = n/N 3. select * from table where random()<p*(some lambda >1) order by random() limit n 4. Repeat 3 until you got n rows