Current ranking is currently in-memory, and can not be used together with Space to sort naturally sort all spaces by ranking, by default.
By moving this ranking to a table, we could use JOIN when fetching spaces, and always sort spaces by popularity DESC if not sort filter is specified.
This will also avoid the use of 2 queries when showing spaces on the v1 homepage, and v2 explore page