The section parameter "Do you have unpublished records?" became obsolet with method CStatistics::hasUnPublished.
On the other hand, if we purely rely on the section parameter and change CStatistics::hasUnPublished, we can get rid of 1 SQL query per list page and more importantly we can remove the idx_published index. #__js_res_record has too many indices anyway, which slows down encoding/updating/importing of records. I believe this index will only be chosen for this particular query in CStatistics::hasUnPublished.
A nice function for this section parameter would be a check and indicator if unpublished records exist (even display a list for quick access to either delete or publish them again if needed)
The section parameter "Do you have unpublished records?" became obsolet with method CStatistics::hasUnPublished.
On the other hand, if we purely rely on the section parameter and change CStatistics::hasUnPublished, we can get rid of 1 SQL query per list page and more importantly we can remove the idx_published index. #__js_res_record has too many indices anyway, which slows down encoding/updating/importing of records. I believe this index will only be chosen for this particular query in CStatistics::hasUnPublished.
A nice function for this section parameter would be a check and indicator if unpublished records exist (even display a list for quick access to either delete or publish them again if needed)