Added a comment to note that a resource is indexed
multiple times.
Cache the all_tags property on resources.
Add a decorator for tracking MongoDB usage in views.
Don't assume we have a resource, because Mongo.