▲ | sgarland a day ago | |
Why not use the native functions [0] of the DB? Presumably they're going to be faster. For example, computing the median of a table `nums` with columns `id` and `num` can be done like this:
[0]: https://www.sqlite.org/lang_corefunc.html |