Skip to content

Search through countries is not so effective, as it may be #301

Description

@StanisLove

Hi, there are methods defined in Carmen::Country class

    def self.all
      World.instance.subregions
    end
    
    def self.query_collection
      all
    end

and all finders use it in a such way query_collection.find

But what if I knowingly would like to search only through European countries, and the other part of the World is not my business?

I think the ability to set a desired scope of countries may be an option, or to prioritize this list, to have the most needed countries at the top. But the worst case would be still more expensive than could be in the second option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions