Yeah, the simple mapping is definitely not optimal (need to scan more
long entries than necessary for the table is order by (lat,long)) but
much simpler to implement. You can guestimate the scan size based on
the size of scan BR, if it's not "too large", just use the simple
scan. It's possible to use only one addtional aux index tables to
facilitate large BR scans: (long, lat) from which you can construct
parallel scans on the main table. The performance will be probably
worse than properly implemented rtree, because the latter takes
advantage of storage locality better. Would love to see someone play
with it and come up with some benchmark :)