Hi, This might be interesting to try for those working on MySQL optimizations in Drupal: http://www.arraystudio.com/as-workshop/mysql-get-total-number-of-rows-when-using-limit.html Gabor