| 6 | db.events.find( {"aggregate":[{"$geoNear":{"near":[-112.45500183105469,33.638301849365234],"distanceField":"distance","distanceMultiplier":3963.2,"maxDistance":0.006308033911990311,"spherical":true,"query":{"start":{"$gte":"MongoDate(0.00000000 1764914400)"}}}},{"$sort":{"start":1,"id":1}},{"$group":{"_id":{"title":"$title","venue_name":"$venue_name","city":"$city","state":"$state"},"id":{"$first":"$_id"},"city":{"$first":"$city"},"cvent_id":{"$first":"$cvent_id"},"cvent_status":{"$first":"$cvent_status"},"date_string":{"$first":"$date_string"},"time_string":{"$first":"$time_string"},"distance":{"$first":"$distance"},"end":{"$first":"$end"},"event_id":{"$first":"$event_id"},"featured":{"$first":"$featured"},"geo":{"$first":"$geo"},"group_key":{"$first":"$group_key"},"image_url":{"$first":"$image_url"},"location_string":{"$first":"$location_string"},"repeat_id":{"$first":"$repeat_id"},"search_text":{"$first":"$search_text"},"sef_tail":{"$first":"$sef_tail"},"start":{"$first":"$start"},"state":{"$first":"$state"},"tags":{"$first":"$tags"},"title":{"$first":"$title"},"town_sef_url":{"$first":"$town_sef_url"},"venue_name":{"$first":"$venue_name"},"dates":{"$push":{"start":"$start","date_string":"$date_string","sef_tail":"$sef_tail"}}}},{"$sort":{"start":1,"id":1}},{"$sort":{"start":1,"id":1}},{"$skip":0},{"$limit":3}]}, [] ).sort( {"start":1,"id":1} ).limit( 3 ).skip( 0 ) | | 0 | 3 | 9 |
| 9 | db.events_cache.insert( {"_id":"805b8f47e0d1c5098641802f787815c1","data":[{"Event":{"_id":{"title":"Pinnacle Peak Farmers Market","venue_name":"Deer Valley Towne Center","city":"Phoenix","state":"AZ"},"id":ObjectId ("68793917384bf9134e0264fd"),"city":"Phoenix","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Dec 6, 2025 at 9:00am","time_string":"9:00 AM","distance":19.320898926860863,"end":"MongoDate(0.00000000 1765029600)","event_id":75571020,"featured":"","geo":[-112.1212061,33.6668769],"group_key":"3212648","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Phoenix, AZ","repeat_id":"3212648","search_text":"Pinnacle Peak Farmers Market, Deer Valley Towne Center, 2805 W Agua Fria Fwy, Phoenix, season year roundmarket hoursevery saturday pmlocation deer valley towne center agua fria fwy phoenix","sef_tail":"\/event\/pinnacle-peak-farmers-market-2025-12-06-phoenix-az.html","start":"MongoDate(0.00000000 1765011600)","state":"AZ","tags":["farmers-market","step-outside","aarp","clubs-and-organizations"],"title":"Pinnacle Peak Farmers Market","town_sef_url":"phoenix-az","venue_name":"Deer Valley Towne Center","dates":{"1":{"start":"MongoDate(0.00000000 1765616400)","date_string":"Saturday, Dec 13, 2025 at 9:00am","sef_tail":"\/event\/pinnacle-peak-farmers-market-2025-12-13-phoenix-az.html"},"2":{"start":"MongoDate(0.00000000 1766221200)","date_string":"Saturday, Dec 20, 2025 at 9:00am","sef_tail":"\/event\/pinnacle-peak-farmers-market-2025-12-20-phoenix-az.html"},"3":{"start":"MongoDate(0.00000000 1766826000)","date_string":"Saturday, Dec 27, 2025 at 9:00am","sef_tail":"\/event\/pinnacle-peak-farmers-market-2025-12-27-phoenix-az.html"}}}},{"Event":{"_id":{"title":"Anthem's Market in the Park","venue_name":"Anthem Community Park","city":"Anthem","state":"AZ"},"id":ObjectId ("68793916384bf9134e026410"),"city":"Anthem","cvent_id":null,"cvent_status":null,"date_string":"Sunday, Dec 7, 2025 at 9:00am","time_string":"9:00 AM","distance":24.014786839622197,"end":"MongoDate(0.00000000 1765116000)","event_id":75570254,"featured":"","geo":[-112.13700103759766,33.86330032348633],"group_key":"3212603","image_url":"https:\/\/cdn-step.americantowns.com\/img\/generic-icon.jpg","location_string":"Anthem, AZ","repeat_id":"3212603","search_text":"Anthem's Market in the Park, Anthem Community Park, 41703 North Gavilan Peak Parkway, Anthem, season year roundmarket hoursjanuary may october december st sunday month am pmlocation community park gavilan peak parkway","sef_tail":"\/event\/anthems-market-in-the-park-2025-12-07-anthem-az.html","start":"MongoDate(0.00000000 1765098000)","state":"AZ","tags":["farmers-market","step-outside","aarp","clubs-and-organizations"],"title":"Anthem's Market in the Park","town_sef_url":"anthem-az","venue_name":"Anthem Community Park","dates":{"1":{"start":"MongoDate(0.00000000 1766307600)","date_string":"Sunday, Dec 21, 2025 at 9:00am","sef_tail":"\/event\/anthems-market-in-the-park-2025-12-21-anthem-az.html"}}}},{"Event":{"_id":{"title":"Ducks Unlimited - West Valley Dinner (Peoria)","venue_name":"","city":"Peoria","state":"AZ"},"id":ObjectId ("687942f37db01079a505e607"),"city":"Peoria","cvent_id":null,"cvent_status":null,"date_string":"Saturday, Dec 13, 2025 at 5:00pm","time_string":null,"distance":11.608150607824172,"end":"","event_id":null,"featured":"","geo":[-112.2656955,33.5808003],"group_key":null,"image_url":"https:\/\/cdn-step.americantowns.com\/img\/ducks.png","location_string":"Moose Lodge #2243","repeat_id":null,"search_text":"Ducks Unlimited - West Valley Dinner (Peoria) Moose Lodge #2243","sef_tail":"\/du-event\/west-valley-dinner-peoria-108518.html","start":"MongoDate(0.00000000 1765645200)","state":"AZ","tags":["ducks"],"title":"Ducks Unlimited - West Valley Dinner (Peoria)","town_sef_url":"peoria-az","venue_name":"","dates":[]}}],"params":"{\"show\":3,\"max-miles\":\"25\",\"max-days\":\"120\",\"keyword\":\"\",\"radius\":25,\"limit\":15,\"page\":1,\"sef\":\"\",\"tags\":\"\",\"tags_logical\":\"\",\"terms\":\"\",\"show_limit\":3,\"sort\":\"\",\"days\":\"120\",\"images\":\"yes\",\"message\":\"\",\"min\":20,\"title\":\"\",\"prompt\":\"\",\"height\":\"\",\"width\":\"\",\"more\":\"yes\",\"autoshowmore\":\"no\",\"link\":\"\",\"showdesc\":\"yes\",\"rankby\":\"distance\",\"type\":\"\",\"ad_slots\":\"\",\"see-more-title\":\"\",\"searchdate\":\"\",\"lat\":33.638301849365234,\"lng\":-112.45500183105469,\"latlng\":\"33.638301849365,-112.45500183105\",\"count\":1}","modified":"MongoDate(0.72800000 1764974469)","created":"MongoDate(0.72800000 1764974469)"} , true) | | 0 | 0 | 2 |