Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
StanisLove opened this issue Feb 18, 2022 · 0 comments
Open

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

StanisLove opened this issue Feb 18, 2022 · 0 comments

Comments

@StanisLove
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant