Panabee
2013-05-26 09:38:56 UTC
Hi there,
We're extremely frustrated and could use some advice. Mongo acts sluggish
when we attempt to return the games associated with a player. In our player
document, we store an array of game IDs.
The query returns an array of game documents based on these game IDs. We
were advised that fragmentation would not pose an issue in the player
collection as long as we only stored game IDs and didn't let the array
expand too much (i.e., cap around 1000 entries). We included output from
stats in case you're curious about fragmentation.
* Mongo log entries: https://gist.github.com/panabee/621e64fd3fa289dccc5b &
https://gist.github.com/panabee/944b607c0c53b928c0f9
* Query with explain: https://gist.github.com/panabee/479816fc457d00ec09d7
* Model: https://gist.github.com/panabee/908b9c024663a6e8dfa4
* Mongo stats: https://gist.github.com/panabee/1ece342e8b5b95040ac3
* Indices: https://gist.github.com/panabee/97a93649566f36b0e042
Can anyone help? We have tried everything but cannot improve performance.
Our database isn't even very large as the app isn't in full-scale
deployment. If we can't find a solution, we may need to rewrite everything
in MySQL, which we have more experience with, but obviously this is an
unattractive option.
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.
We're extremely frustrated and could use some advice. Mongo acts sluggish
when we attempt to return the games associated with a player. In our player
document, we store an array of game IDs.
The query returns an array of game documents based on these game IDs. We
were advised that fragmentation would not pose an issue in the player
collection as long as we only stored game IDs and didn't let the array
expand too much (i.e., cap around 1000 entries). We included output from
stats in case you're curious about fragmentation.
* Mongo log entries: https://gist.github.com/panabee/621e64fd3fa289dccc5b &
https://gist.github.com/panabee/944b607c0c53b928c0f9
* Query with explain: https://gist.github.com/panabee/479816fc457d00ec09d7
* Model: https://gist.github.com/panabee/908b9c024663a6e8dfa4
* Mongo stats: https://gist.github.com/panabee/1ece342e8b5b95040ac3
* Indices: https://gist.github.com/panabee/97a93649566f36b0e042
Can anyone help? We have tried everything but cannot improve performance.
Our database isn't even very large as the app isn't in full-scale
deployment. If we can't find a solution, we may need to rewrite everything
in MySQL, which we have more experience with, but obviously this is an
unattractive option.
Thanks!
--
--
You received this message because you are subscribed to the Google
Groups "mongodb-user" group.
To post to this group, send email to mongodb-user-/***@public.gmane.org
To unsubscribe from this group, send email to
mongodb-user+unsubscribe-/***@public.gmane.org
See also the IRC channel -- freenode.net#mongodb
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/***@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.