optimize freeside-cdrd pending query, RT#29752
optimize package view with tons of packages, RT#28526