Using News aggregator or Views/Block
public
group: High performance
gdtechindia - Thu, 2008-05-01 03:03
I have a quick question for Drupal Performance Experts.
We wish to show stories from a particular section, Say Health, on all our pages.
The plan is to show the latest stories from that section as a Block on every page of the site.
What will be better way is terms of performance ?
Using RSS feed of that section in News aggregator ?
Or making a view to fetch Stories from that section and to display them on the pages ? (i guess this will use more resources)
Please help.
Thanks
Dhaliwal



This group is about
This group is about scalability and performance optimisations for very high load sites, whereas your question seems more about general site configuration and is more of a support question. However:
If you're already using views, use that, or write a custom query in a small module implementing hook_block if you're currently using neither and don't intend to otherwise. I wouldn't recommend using aggregator for a number of reasons.
More to the point, the easiest way to deal with block performance is to cache them - using block_cache module in Drupal 5, or in core for Drupal 6 - any of these methods are going to be minimally expensive (although if you're enabling modules just for one block then you'll overhead simply from module bloat) so it's a fairly minor consideration how the block itself is generated when dealing with a simple list of nodes.
thanks for commenting. I
thanks for commenting. I posted the issue here as it was concerning the use of idea on a high traffic website which is usually under overloading due to many modules being used and many views already generated.
We are using blockcache.
my 2 cents..
I think that is correct, in terms of being a question on what is more scalable method..
However for me it depends on what page you install it on. then how many queries, blocks, modules being used on that page.