This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
We've recently made an accessibility improvement to the community and therefore posts without any content are no longer allowed. Please use the spoiler feature or add a short message in the message body in order to submit your weekly challenge.
We are currently experiencing an issue with Email verification at this time and working towards a solution. Should you encounter this issue, please click on the "Send Verification Button" a second time and the request should go through. If the issue still persists for you, please email firstname.lastname@example.org for assistance.
@ryan-bush - in this case, we only need to compare the distance for owners and pets that belong to each other, so joining on Animal ID first and then doing the distance calc on just the ones that match is going to be much more efficient. There are 1,000 owners and 998 pets in the input data, but only 46 match each other, so we really only need to perform the distance calculation on those 46.
By using the trade area / spatial match, the workflow is having to compare all of the pets to all of the owners to see if they're within the trade area (plus, that gives you some owners matching to the wrong pets, just because they happened to be within 500 mi).