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