I love how there's only one comment on this video. My search exactly for this topic and I found this video just started to watch looks good so far thanks for making this content.
when i update the geolocation column with ST_MakePoint it only saves the lat long like this "POINT (-49.1162121 -26.9281947)" it doesnt save as it is shown on the video. Anyone else had this problem too?
Lateral joins are quite good , if you need data quickly , but it’s ok to stream the results over a period of time , especially loading the db data into memory cache
select a.name, ST_Distance(a.geolocation, b.geolocation) as distance from addresses a left join addresses b on (a.id <> b.id) where b.name = 'Hashrocket JAX' --and ST_Distance(a.geolocation, b.geolocation) < 1000 order by distance;
2 года назад
1:28 At this point I wasn't thinking of doing the limit -- but rather slicing the array, I believe in postgres is with [:5] notation. What would you think is better performant? Thank you for the great explanation