Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6169

Multiple near opration

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: 01112017-cleanup
    • Component/s: None
    • Environment:
    • Last comment by Customer:
      true

      Description

      A user has two addresses (one "pickup address" and one "delivery address").
      The user wants to find other users which have similar pickup AND delivery addresses (this is why I need two $geoNear).

      Example data (simplified):

      User, pickup address, delivery address:
      User 1, Germany, USA
      User 2, France, Spain
      User 3, Germany, USA
      User 4, Germany, France
      User 5, Canada, USA
      User 6, Germany, USA

      If user 1 wants to find other users, user 3 and user 6 have to be shown (because only there both addresses are "near").

      In my real project the data is a bit more complex and of course I have real addresses (with latitude and longitude).

      If two $geoNear are not possible, I could go first for the pickup address, then for the delivery address. However I fear a bad performance here because I have millions of addresses.

      Need more details? Please let me know.

        Attachments

          Activity

            People

            Assignee:
            sev.kozak Sev Kozak
            Reporter:
            xgen-internal-docs Docs Collector User
            Participants:
            Last commenter:
            Jonathan Dahl Jonathan Dahl
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since reply:
              5 years, 18 weeks, 2 days ago
              Date of 1st Reply: