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

Optimize: _s_categorized_blog #445

Merged
merged 2 commits into from
Mar 24, 2014
Merged

Optimize: _s_categorized_blog #445

merged 2 commits into from
Mar 24, 2014

Conversation

mjangda
Copy link
Member

@mjangda mjangda commented Mar 24, 2014

Make the cool cats faster.

There are two small optimizations made here to _s_categorized_blog to reduce the amount of data we fetch via get_categories since the end result is just a bool value, which we can get with a pretty small subset.

mjangda added 2 commits March 24, 2014 16:43
We don't really care much about the returned; all we want is the count
so there's no point in fetching all the category data.
We only need to know if there is more than one category so only fetch a
maximum of two categories. The rest of the categories are all gravy.
obenland added a commit that referenced this pull request Mar 24, 2014
_s: Optimize `_s_categorized_blog()`.
@obenland obenland merged commit 7dc0ed3 into master Mar 24, 2014
@obenland obenland deleted the speedy-cool-cats branch March 25, 2014 21:40
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

Successfully merging this pull request may close these issues.

2 participants