A reader asks -- how does My Records filter work?
So I've been reviewing the code this morning and the flow is:
* query for records of a type within the geo bounds
* filter out by owner
* filter out by other criteria (type, industry)
* display on a map
In testing, it appears that the My Records filter has something goofy on it. It's probably related to the fact that's its using post filtering instead of query based filtering.
If you have the code the controller in question is FindNearbyMap.cls and the method is "Search".
The refactor we likely need is something that does a better job filtering the data at the query level.