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.
I have just implemented Views PHP for a view where I had to perform a calculation and test the result of 4 fields.. The PHP is very simple..
Subtract val1 from val2.. Subtract val3 from val4.. If result of either calculation is between -600 and 600 then filter it..
In order to get the filter to work at all I had to use the "$node = node_load($data->nid);"...
The result of adding this filter means that the query execute time is nearly 70 seconds..
Is there a way to speed this up significantly?
Comments
Comment #1
Liam MorlandIt is acknowledged that views_php is slow. You are better off using Views plugins. It is possible that the current version is faster.