This patch speeds up SQL requests with a radius calculation (in my case 800ms -> 50ms on average) by adding a rectangular bounding box to all within calls on acts_as_mappable objects. This used to be the default for Rails 3, it seems to have been lost in the conversion to ARel. Here it is again.
This patch speeds up SQL requests with a radius calculation (in my case 800ms -> 50ms on average) by adding a rectangular bounding box to all
within
calls onacts_as_mappable
objects. This used to be the default for Rails 3, it seems to have been lost in the conversion to ARel. Here it is again.