优化地图搜索
This commit is contained in:
@@ -26,7 +26,8 @@
|
|||||||
WHERE
|
WHERE
|
||||||
ST_Distance_Sphere ( POINT ( #{request.cLng} , #{request.cLat} ), POINT ( lng, lat ) ) <= #{request.distance}
|
ST_Distance_Sphere ( POINT ( #{request.cLng} , #{request.cLat} ), POINT ( lng, lat ) ) <= #{request.distance}
|
||||||
ORDER BY
|
ORDER BY
|
||||||
distance;
|
distance
|
||||||
|
limit 10;
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user