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

Counting posts per feed is slow/uses too much memory #33

Open
bbengfort opened this issue Apr 7, 2016 · 0 comments
Open

Counting posts per feed is slow/uses too much memory #33

bbengfort opened this issue Apr 7, 2016 · 0 comments

Comments

@bbengfort
Copy link
Member

The method:

baleen.models.Feed.count_posts

Is too slow on the deployment server. It seems that:

Post.objects(feed=self).count()

is going through the entire collection and filtering, which is bad.

Need to figure out a better way to do this.

Index?

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

1 participant