Hi, e.g I build for my city an own Uber Eats App. I have 200 restaurants, and they all have dishes.
Users should be able to search for a dish within a restaurant, AND be able to search for a dish across all existing restaurants within 20 kilometres.
What would be the better practice:
• make a single “dishes” collection with all dishes, and a “restaurantId” field if you want to search for a dish within a restaurant
or
• make for every restaurant an own collection, and if you want to search across all restaurants for a dish, you do a federate search
https://github.com/typesense/typesense/issues/123
what would be the better practice?
tbh i’d just do both things for better performance, but that would cost more resources 😂😭🥲😅