Efficient assignment of percentile/rank in MYSQL
问题 I have a couple of very large tables (over 400,000 rows) that look like the following: +---------+--------+---------------+ | ID | M1 | M1_Percentile | +---------+--------+---------------+ | 3684514 | 3.2997 | NULL | | 3684515 | 3.0476 | NULL | | 3684516 | 2.6499 | NULL | | 3684517 | 0.3585 | NULL | | 3684518 | 1.6919 | NULL | | 3684519 | 2.8515 | NULL | | 3684520 | 4.0728 | NULL | | 3684521 | 4.0224 | NULL | | 3684522 | 5.8207 | NULL | | 3684523 | 6.8291 | NULL | +---------+--------+--------