Skip to content

MongoengineConnectionField paging is SLOW! #125

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

Closed
usmcamp0811 opened this issue Feb 5, 2020 · 3 comments
Closed

MongoengineConnectionField paging is SLOW! #125

usmcamp0811 opened this issue Feb 5, 2020 · 3 comments

Comments

@usmcamp0811
Copy link

I just stood up a MongoDB and started using Graphene-Mongo to serve up the data but am finding MongoengineConnectionField queries to be very slow! They work but lets say I want to do:

{
    users(first: 10){
         edges{
             node{
                  username
                  full_name
                 }
           }
     }
}

That will take probably 5 minutes to execute. If I make my own resolver and just do something like:

Users.objects.limit(5)

It will be completed in milliseconds.

Did I miss something in the documentation? Or is this a known issue and I just have to make my own revolvers for everything?

TIA

@sostholm
Copy link
Contributor

sostholm commented Mar 23, 2020

I've created a pull request that fixes this issue: #143

@abawchen
Copy link
Collaborator

@usmcamp0811 : Would you please try with the updated master? I have merged #143
@sostholm 👍

@IdrisMiles
Copy link

Was also experiencing this issue, the changes in master did the trick for me, thanks!

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

No branches or pull requests

4 participants