Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is it still faster to use fields versus Node/teaser row style? That's the truth with using regular views, but is that the case with Solr views? Is node_load being executed for each row?
Comments
Comment #1
Scott Reynolds CreditAttribution: Scott Reynolds commentedNode load is not used on every row.
Comment #2
iamfratty CreditAttribution: iamfratty commentedSo is there any performance difference between fields style and node style with solr views?
Comment #3
Scott Reynolds CreditAttribution: Scott Reynolds commentedOf course there is a performance difference. node_load, as your ticket hinted at, is expensive unless you have patched Drupal 6 to do caching like Drupal 7. So a node style will do a node_load where field style doesn't.
thus, field style should be faster.
BUT, milage varies. If you create a view with fields that does some awful thing (or you just use standard CCK ironically on a large system) you can create a very bad query and thus be slower then a bunch of node loads.
But there is no right or wrong answer. node style can be faster then field style and field style can be faster then node style.